:root {
    --bg: #0D0D0D;
    --card: #161616;
    --card-hover: #1C1C1C;
    --border: #2A2A2A;
    --text-main: #FFFFFF;
    --text-sec: #A1A1A1;
    --accent: #F24E1E;
    --accent-glow: rgba(242, 78, 30, 0.25);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .25;
  pointer-events: none;
  z-index: -1;
}

.bg-glow {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(255, 114, 98, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    padding: 2rem;
    overflow-x: hidden;
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    width: 92%;
    max-width: 1400px;
    margin: 0 auto;
    margin-bottom: 2rem;
}

.logo {
    width: 220px;
    display: block;
}

.status-indicator {
    font-size: 0.8rem;
    color: var(--text-sec);
    margin-right: 1.5rem;
}

#btn-help {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.8rem;
    margin-right: 0.5rem;
    color: var(--text-sec);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}
#btn-help:hover,
#btn-settings:hover,
#btn-notifications:hover {
    background: var(--card-hover);
    border-color: var(--text-sec);
    color: var(--accent);
    transform: translateY(-2px);
}

#btn-settings,
#btn-notifications {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.8rem;
    margin-right: 0.5rem;
    color: var(--text-sec);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

/* Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    gap: 1.5rem;
    width: 92%;
    max-width: 1400px;
    margin: 0 auto;
}

.bento-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition);
}

.bento-item:hover {
    border-color: #3f3f3f;
}

/* Grid Assignment */
.panel-services { grid-column: span 4; grid-row: span 5; }
.panel-quote { grid-column: span 5; grid-row: span 5; min-height: 600px; display: flex; flex-direction: column; }
.panel-client { grid-column: span 3; }
.panel-stats { grid-column: span 3; display: flex; gap: 1rem; }
.panel-summary { grid-column: span 3; }
.panel-notes { grid-column: span 3; grid-row: span 1; }

/* Responsive Grid */
@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-item { grid-column: span 2 !important; }
}

@media (max-width: 640px) {
    body {
        padding: 1rem;
    }

    .main-header {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
        width: 100%;
        margin-bottom: 1.5rem;
    }

    .logo {
        width: 180px;
    }

    .header-actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
    }

    .status-indicator {
        width: 100%;
        text-align: center;
        margin-right: 0;
        font-size: 0.75rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
    }

    .bento-item {
        grid-column: span 1 !important;
        grid-row: auto !important;
        padding: 1rem;
    }

    .panel-quote {
        min-height: auto;
    }

    .panel-stats {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    #btn-new,
    #btn-export {
        flex: 1;
        text-align: center;
        margin: 0 !important;
    }

    #btn-new .fa-file-medical,
    #btn-export .fa-file-pdf {
        margin-right: 0.25rem;
    }

    .input-row {
        flex-direction: column;
        gap: 0;
    }

    .quote-item {
        padding: 0.75rem;
        gap: 0.4rem;
    }

    .quote-item-reorder {
        display: flex;
    }

    .btn-move {
        width: 24px;
        height: 22px;
        font-size: 0.6rem;
    }
}

/* UI Elements */
h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-sec);
    margin-bottom: 1.2rem;
}

/* --- Global Input & Form Styles --- */
input[type="text"],
input[type="number"],
input[type="email"],
textarea {
    background: #1a1a1a;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-main);
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
    width: 100%;
}

input:focus, 
textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: #1f1f1f;
    box-shadow: 0 0 0 3px var(--accent-glow);
}

input::placeholder,
textarea::placeholder {
    color: #555;
}

/* Estilo para inputs de tipo "flat" (línea inferior refinada) */
.input-flat {
    background: transparent !important;
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 10px 0 !important;
    margin-bottom: 1rem;
}

.input-flat:focus {
    border-bottom-color: var(--accent) !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Validación Visual */
.invalid {
    border-color: #ff4444 !important;
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.2) !important;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

/* Estilo para inputs pequeños (cantidades, impuestos) */
.input-mini {
    width: 80px !important;
    padding: 8px 12px !important;
    text-align: center;
    font-weight: 600;
}

/* Search and Headers */
.header-with-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-sec);
    font-size: 0.9rem;
}

#service-search {
    padding: 10px 10px 10px 35px;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-sec);
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
}

.btn-icon:hover {
    color: var(--accent);
}

.btn-primary {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary.full-width {
    width: 100%;
    margin-top: 1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--accent-glow);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid var(--border);
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    margin-right: 0.5rem;
}

.btn-secondary:hover {
    background: var(--card-hover);
    border-color: var(--text-sec);
    transform: translateY(-2px);
}

/* Service Cards */
.service-card {
    background: #1e1e1e;
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    cursor: grab;
    position: relative;
    transition: var(--transition);
}

/* Ensure quote-items fills the available space in panel-quote and manages its children */
#quote-items {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    background: var(--card-hover);
    border-color: var(--accent);
}

.service-card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover .service-card-actions {
    opacity: 1;
}

.service-card-actions .btn-icon {
    color: var(--text-sec);
}

.btn-add-service {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    background: rgba(242, 78, 30, 0.1);
    color: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: var(--transition);
    display: none;
}

.btn-add-service:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.1);
}

@media (max-width: 640px) {
    .btn-add-service {
        display: flex;
    }
}

.service-card .category {
    font-size: 0.7rem;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
}

/* Dropzone Items */
.quote-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    background: #1a1a1a;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 0.8rem;
    border: 1px solid var(--border);
}

.quote-item-reorder {
    display: none;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
}

.btn-move {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-sec);
    width: 28px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    transition: var(--transition);
    padding: 0;
    line-height: 1;
}

.btn-move:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(242, 78, 30, 0.1);
}

.btn-move:disabled {
    opacity: 0.2;
    cursor: default;
}

.btn-remove {
    color: #ff4444 !important;
    font-size: 0.9rem;
}

/* Placeholder slots para el presupuesto */
.quote-placeholder {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-sec);
    font-size: 0.9rem;
    transition: var(--transition);
}

textarea {
    height: 120px;
    resize: none;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 90%;
    max-width: 400px;
    background: var(--card);
    border: 1px solid var(--border);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-help-content {
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.modal-help-content::-webkit-scrollbar {
    width: 6px;
}

.modal-help-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-help-content::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.modal-help-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-sec);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.input-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-sec);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.stat-card { flex: 1; }

.quote-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(242, 78, 30, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

/* Category Chips */
.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.chip {
    background: #1a1a1a;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-sec);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.chip:hover {
    border-color: var(--accent);
    color: var(--text-main);
}
.chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-sec);
}
.empty-state i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}
.empty-state p {
    font-size: 0.85rem;
}

/* Drag Feedback */
.dropzone.drag-over {
    border: 2px dashed var(--accent);
    border-radius: var(--radius);
    background: rgba(242, 78, 30, 0.05);
}
.dropzone.drag-over .quote-placeholder {
    border-color: var(--accent);
    color: var(--accent);
}

.input-apply-group {
    display: flex;
    gap: 6px;
    align-items: center;
}
.btn-apply {
    background: var(--card-hover);
    border: 1px solid var(--border);
    color: var(--text-sec);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.75rem;
}
.btn-apply:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(242, 78, 30, 0.1);
}
.btn-apply.applied {
    border-color: #10b981;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

/* Help Modal */
.help-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.help-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.75rem;
    background: #1a1a1a;
    border-radius: 10px;
    border: 1px solid var(--border);
}
.help-step-num {
    background: var(--accent);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}
.help-step strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 2px;
    color: var(--text-main);
}
.help-step p {
    font-size: 0.8rem;
    color: var(--text-sec);
    line-height: 1.5;
    margin: 0;
}
.help-step em {
    color: var(--accent);
    font-style: normal;
    font-weight: 600;
}

/* Confirm Modal Actions */
#confirm-cancel,
#confirm-yes {
    margin: 0 !important;
}

/* --- Notifications Toast --- */
#toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
}

.toast.active {
    transform: translateX(0);
}

.toast i { font-size: 1.1rem; }

.toast.success { border-left: 4px solid #10b981; }
.toast.error { border-left: 4px solid #ef4444; }
.toast.info { border-left: 4px solid var(--accent); }

.toast.success i { color: #10b981; }
.toast.error i { color: #ef4444; }
.toast.info i { color: var(--accent); }

.toast.undo { border-left: 4px solid var(--accent); }
.toast.undo i { color: var(--accent); }

.btn-undo {
    background: var(--accent);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    margin-left: auto;
    transition: var(--transition);
}

.btn-undo:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

/* --- Diseño de Documento para Exportación (Print) --- */
@media print {
    @page {
        margin: 10mm;
    }

    .bg-grid,
    .bg-glow,
    .header-actions,
    .panel-services,
    .panel-stats,
    .btn-icon,
    .btn-apply,
    .modal-overlay,
    #toast-container,
    .instruction,
    .quote-placeholder,
    .service-card-actions,
    #btn-new,
    #btn-export,
    .notifications-panel,
    .notifications-overlay,
    .main-footer-attribution {
        display: none !important;
    }

    .main-header {
        display: flex !important;
        align-items: center;
        justify-content: center !important;
        width: 100%;
        background: #0D0D0D !important;
        margin: 0 0 10mm 0 !important;
        padding: 10mm 0 !important;
    }

    .logo-contenedor {
        display: block !important;
    }

    .logo {
        width: 180px !important;
    }

    body {
        background: white !important;
        background-image: none !important;
        color: black !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .bento-grid {
        display: flex !important;
        flex-direction: column !important;
        max-width: 100% !important;
        gap: 0 !important;
    }

    .panel-client { order: 1; }
    .panel-quote { order: 2; }
    .panel-summary { order: 3; }
    .panel-notes { order: 4; }

    .bento-item,
    .quote-item {
        background: white !important;
        border: none !important;
        border-bottom: 1px solid #eee !important;
        border-radius: 0 !important;
        padding: 12px 0 !important;
        margin-bottom: 0 !important;
        page-break-inside: avoid;
        color: black !important;
    }

    .quote-item div div {
        color: #666 !important;
    }

    h3, .stat-label, .summary-row span {
        color: #666 !important;
    }

    .stat-value, .summary-row.total, #summary-total {
        color: black !important;
        font-size: 1.2rem !important;
    }

    input, textarea {
        border: none !important;
        background: transparent !important;
        color: black !important;
        padding: 0 !important;
        appearance: none;
    }

    .input-mini {
        width: auto !important;
        display: inline !important;
        font-weight: 600 !important;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .panel-quote { min-height: auto !important; }

    .panel-summary .summary-row:nth-child(3),
    .panel-summary .summary-row:nth-child(4) {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        border-bottom: 1px solid #eee !important;
        padding: 12px 0 !important;
        color: black !important;
    }

    .panel-summary .summary-row:nth-child(3) span,
    .panel-summary .summary-row:nth-child(4) span {
        color: #666 !important;
    }

    .panel-summary .summary-row:nth-child(3) .input-mini,
    .panel-summary .summary-row:nth-child(4) .input-mini {
        font-weight: 600 !important;
        width: auto !important;
        display: inline !important;
        text-align: right !important;
    }
}

/* Footer de Atribución */
.main-footer-attribution {
    text-align: center;
    margin-top: 3rem;
    font-size: 0.85rem;
    color: var(--text-sec);
}

.main-footer-attribution a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

/* Settings Modal */
.settings-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.setting-row:last-child {
    border-bottom: none;
}

.setting-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.setting-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.setting-label i {
    width: 20px;
    color: var(--accent);
}

.setting-desc {
    font-size: 0.75rem;
    color: var(--text-sec);
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #333;
    border-radius: 24px;
    transition: var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.setting-select {
    background: #1a1a1a;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    padding: 8px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    min-width: 120px;
}

.setting-select:focus {
    outline: none;
    border-color: var(--accent);
}

/* Notifications Panel */
.notifications-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 360px;
    height: 100vh;
    background: var(--card);
    border-left: 1px solid var(--border);
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.notifications-panel.open {
    transform: translateX(0);
}

.notifications-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.notifications-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.notifications-header h3 {
    margin: 0;
}

.notifications-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #1a1a1a;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border);
}

.notification-item .notif-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8rem;
}

.notification-item .notif-icon.success { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.notification-item .notif-icon.error { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.notification-item .notif-icon.info { background: rgba(242, 78, 30, 0.1); color: var(--accent); }
.notification-item .notif-icon.undo { background: rgba(242, 78, 30, 0.1); color: var(--accent); }

.notification-item .notif-content {
    flex: 1;
    min-width: 0;
}

.notification-item .notif-text {
    font-size: 0.85rem;
    color: var(--text-main);
    line-height: 1.4;
}

.notification-item .notif-time {
    font-size: 0.7rem;
    color: var(--text-sec);
    margin-top: 2px;
}

.notifications-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-sec);
}

.notifications-empty i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.notifications-empty p {
    font-size: 0.85rem;
}

/* Notifications bell badge */
#btn-notifications {
    position: relative;
}

.notif-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    display: none;
}

.notif-badge.has-notifs {
    display: block;
}
