/* =====================================================
   NOTIFICATION SYSTEM — Styles
   ===================================================== */

/* --- Bell Icon --- */
.notif-bell {
    position: relative;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s;
}
.notif-bell:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
    transform: scale(1.05);
}
.notif-bell.has-unread {
    animation: bellPulse 2s ease infinite;
}
.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 6px rgba(239,68,68,0.4);
}
@keyframes bellPulse {
    0%, 100% { transform: scale(1); }
    10% { transform: scale(1.12) rotate(8deg); }
    20% { transform: scale(1.12) rotate(-8deg); }
    30% { transform: scale(1); }
}

/* --- Hover Toast (brief notification popup) --- */
.notif-hover-toast {
    position: fixed;
    top: 80px;
    right: 24px;
    background: linear-gradient(135deg, rgba(30,35,55,0.97), rgba(20,25,40,0.98));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 14px 18px;
    max-width: 340px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
    z-index: 90000;
    animation: notifSlideIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
    cursor: pointer;
}
.notif-hover-toast.hiding {
    animation: notifSlideOut 0.3s ease forwards;
}
.notif-hover-toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}
.notif-hover-toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(230,81,0,0.2), rgba(255,183,77,0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffb74d;
    font-size: 14px;
    flex-shrink: 0;
}
.notif-hover-toast-text {
    flex: 1;
    min-width: 0;
}
.notif-hover-toast-text strong {
    display: block;
    font-size: 12px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 2px;
}
.notif-hover-toast-text span {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@keyframes notifSlideIn {
    from { opacity: 0; transform: translateX(60px) scale(0.9); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes notifSlideOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(80px); }
}

/* --- Notification Log Popup --- */
.notif-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    z-index: 95000;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 70px 16px 16px;
    animation: kpiFadeIn 0.3s ease;
}
.notif-panel {
    background: linear-gradient(135deg, rgba(28,32,50,0.98), rgba(18,22,38,0.99));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    width: 400px;
    max-width: 95vw;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
    animation: kpiSlideUp 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.notif-panel-header {
    padding: 20px 20px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.notif-panel-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.notif-panel-header h3 i { color: #ffb74d; font-size: 14px; }
.notif-panel-close {
    background: rgba(255,255,255,0.06);
    border: none;
    color: rgba(255,255,255,0.5);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: 0.2s;
}
.notif-panel-close:hover {
    background: rgba(255,60,60,0.15);
    color: #ff6b6b;
}
.notif-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.notif-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255,255,255,0.3);
    font-size: 13px;
}
.notif-empty i { font-size: 32px; margin-bottom: 12px; display: block; opacity: 0.3; }

/* --- Notification Item --- */
.notif-item {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 6px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.04);
    transition: 0.2s;
    cursor: default;
}
.notif-item:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.08);
}
.notif-item.unread {
    border-left: 3px solid #ffb74d;
    background: rgba(230,81,0,0.05);
}
.notif-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.notif-item-sender {
    font-size: 12px;
    font-weight: 600;
    color: #ffb74d;
}
.notif-item-time {
    font-size: 10px;
    color: rgba(255,255,255,0.3);
}
.notif-item-message {
    font-size: 12.5px;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
    word-break: break-word;
}
.notif-item-deadline {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(239,68,68,0.1);
    font-size: 10px;
    color: #fca5a5;
}
.notif-item-target {
    margin-top: 4px;
    font-size: 10px;
    color: rgba(255,255,255,0.25);
}

/* --- Create Message Button --- */
.notif-create-btn {
    margin: 8px 12px 12px;
    padding: 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(230,81,0,0.15), rgba(255,183,77,0.1));
    border: 1px solid rgba(230,81,0,0.2);
    color: #ffb74d;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.2s;
}
.notif-create-btn:hover {
    background: linear-gradient(135deg, rgba(230,81,0,0.25), rgba(255,183,77,0.15));
    transform: translateY(-1px);
}

/* --- Create Message Modal --- */
.notif-create-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    z-index: 96000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: kpiFadeIn 0.3s ease;
}
.notif-create-modal {
    background: linear-gradient(135deg, rgba(28,32,50,0.98), rgba(18,22,38,0.99));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    width: 480px;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px 24px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.6);
    animation: kpiSlideUp 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.notif-create-modal h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.notif-create-modal h3 i { color: #ffb74d; }
.notif-form-group {
    margin-bottom: 16px;
}
.notif-form-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    margin-bottom: 6px;
    display: block;
}
.notif-textarea {
    width: 100%;
    min-height: 100px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 12px 14px;
    color: #fff;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    transition: 0.2s;
}
.notif-textarea:focus {
    outline: none;
    border-color: rgba(230,81,0,0.4);
    background: rgba(255,255,255,0.06);
}
.notif-select {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 10px 14px;
    color: #fff;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
}
.notif-select option { background: #1e2337; color: #fff; }

/* --- Multi-select User Picker --- */
.notif-user-picker {
    display: none;
}
.notif-user-picker.visible { display: block; }
.notif-user-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 42px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 8px 10px;
    align-items: center;
    cursor: text;
}
.notif-user-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(230,81,0,0.15);
    border: 1px solid rgba(230,81,0,0.25);
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 11px;
    color: #ffb74d;
    font-weight: 500;
}
.notif-user-tag-x {
    cursor: pointer;
    font-size: 13px;
    color: rgba(255,183,77,0.5);
    margin-left: 2px;
    transition: 0.15s;
}
.notif-user-tag-x:hover { color: #ff6b6b; }
.notif-user-input {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 12px;
    outline: none;
    min-width: 120px;
    flex: 1;
}
.notif-user-input::placeholder { color: rgba(255,255,255,0.25); }
.notif-user-dropdown {
    max-height: 160px;
    overflow-y: auto;
    background: rgba(20,24,38,0.98);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    margin-top: 4px;
    display: none;
}
.notif-user-dropdown.visible { display: block; }
.notif-user-option {
    padding: 8px 12px;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: 0.15s;
}
.notif-user-option:hover {
    background: rgba(230,81,0,0.1);
    color: #ffb74d;
}

/* --- Deadline Checkbox --- */
.notif-deadline-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.notif-deadline-check {
    width: 18px;
    height: 18px;
    accent-color: #e65100;
    cursor: pointer;
}
.notif-deadline-fields {
    display: none;
    gap: 10px;
    margin-top: 10px;
}
.notif-deadline-fields.visible { display: flex; }
.notif-date-input, .notif-time-input {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 8px 12px;
    color: #fff;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
}
.notif-date-input:focus, .notif-time-input:focus {
    outline: none;
    border-color: rgba(230,81,0,0.4);
}

/* --- Send Button --- */
.notif-send-btn {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e65100, #ff8f00);
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s;
    margin-top: 8px;
}
.notif-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(230,81,0,0.3);
}
.notif-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* --- Deadline Banner Container (stacked, max 3) --- */
.deadline-banner-container {
    display: none;
    flex-direction: column;
    gap: 4px;
    max-width: 360px;
    min-width: 200px;
}
.deadline-banner-container.visible { display: flex; }

/* Individual deadline banner */
.deadline-banner {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    cursor: pointer;
}
.deadline-banner.visible { display: flex; }
.deadline-banner:hover { transform: scale(1.02); }
.deadline-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    z-index: 0;
    opacity: 0.08;
}
.deadline-banner-content {
    flex: 1;
    min-width: 0;
    text-align: center;
    z-index: 1;
}
.deadline-banner-msg {
    font-size: 10px;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.deadline-banner-countdown {
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

/* Pastel colors for deadline banners */
.deadline-color-0 { --dl-color: rgba(139,92,246,0.15); border-color: rgba(139,92,246,0.25); }
.deadline-color-0::before { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.deadline-color-1 { --dl-color: rgba(59,130,246,0.15); border-color: rgba(59,130,246,0.25); }
.deadline-color-1::before { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.deadline-color-2 { --dl-color: rgba(16,185,129,0.15); border-color: rgba(16,185,129,0.25); }
.deadline-color-2::before { background: linear-gradient(135deg, #10b981, #34d399); }
.deadline-color-3 { --dl-color: rgba(245,158,11,0.15); border-color: rgba(245,158,11,0.25); }
.deadline-color-3::before { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.deadline-color-4 { --dl-color: rgba(236,72,153,0.15); border-color: rgba(236,72,153,0.25); }
.deadline-color-4::before { background: linear-gradient(135deg, #ec4899, #f472b6); }
.deadline-color-5 { --dl-color: rgba(230,81,0,0.15); border-color: rgba(230,81,0,0.25); }
.deadline-color-5::before { background: linear-gradient(135deg, #e65100, #ff8f00); }

.deadline-banner-more {
    text-align: center;
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 6px;
    transition: 0.2s;
}
.deadline-banner-more:hover {
    color: #ffb74d;
    background: rgba(255,255,255,0.05);
}

/* --- Detail Popup Modal --- */
.notif-detail-modal {
    background: linear-gradient(135deg, rgba(28,32,50,0.98), rgba(18,22,38,0.99));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    width: 480px;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.6);
    animation: kpiSlideUp 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.notif-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.notif-detail-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.notif-detail-header h3 i { color: #ffb74d; }
.notif-detail-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.notif-detail-sender {
    font-size: 13px;
    font-weight: 600;
    color: #ffb74d;
    display: flex;
    align-items: center;
    gap: 6px;
}
.notif-detail-sender i { font-size: 11px; opacity: 0.7; }
.notif-detail-time {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    display: flex;
    align-items: center;
    gap: 4px;
}
.notif-detail-message {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    word-break: break-word;
    padding: 14px 16px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.04);
    margin-bottom: 12px;
}
.notif-detail-deadline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(239,68,68,0.08);
    font-size: 12px;
    color: #fca5a5;
    font-weight: 600;
    margin-bottom: 8px;
}
.notif-detail-target {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    margin-bottom: 8px;
}
.notif-detail-source {
    font-size: 11px;
    color: rgba(255,255,255,0.25);
    margin-bottom: 8px;
    font-style: italic;
}
.notif-detail-countdown-big {
    text-align: center;
    padding: 14px;
    margin: 12px 0;
    background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(59,130,246,0.1));
    border: 1px solid rgba(139,92,246,0.15);
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    color: #a78bfa;
    font-variant-numeric: tabular-nums;
}

/* --- Action Buttons (Edit / Delete) --- */
.notif-detail-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.notif-detail-btn {
    flex: 1;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: 0.2s;
    border: 1px solid transparent;
}
.notif-detail-btn.edit {
    background: rgba(59,130,246,0.1);
    border-color: rgba(59,130,246,0.2);
    color: #60a5fa;
}
.notif-detail-btn.edit:hover {
    background: rgba(59,130,246,0.2);
    transform: translateY(-1px);
}
.notif-detail-btn.delete {
    background: rgba(239,68,68,0.08);
    border-color: rgba(239,68,68,0.15);
    color: #f87171;
}
.notif-detail-btn.delete:hover {
    background: rgba(239,68,68,0.15);
    transform: translateY(-1px);
}

/* Light mode adjustments — COMPREHENSIVE */
[data-theme="light"] .notif-bell {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.1);
    color: #475569;
}
[data-theme="light"] .notif-bell:hover {
    background: rgba(0,0,0,0.08);
    color: #1e293b;
}

/* Panel & Modal */
[data-theme="light"] .notif-panel,
[data-theme="light"] .notif-create-modal {
    background: linear-gradient(135deg, #fff, #f8fafc);
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 24px 64px rgba(0,0,0,0.15);
}
[data-theme="light"] .notif-panel-header {
    border-bottom-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .notif-panel-header h3 { color: #1e293b; }
[data-theme="light"] .notif-panel-close {
    background: rgba(0,0,0,0.04);
    color: #64748b;
}
[data-theme="light"] .notif-panel-close:hover {
    background: rgba(239,68,68,0.1);
    color: #ef4444;
}
[data-theme="light"] .notif-empty { color: #94a3b8; }

/* Items */
[data-theme="light"] .notif-item {
    background: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .notif-item:hover {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .notif-item.unread {
    background: rgba(230,81,0,0.04);
    border-left-color: #e65100;
}
[data-theme="light"] .notif-item-sender { color: #c2410c; }
[data-theme="light"] .notif-item-time { color: #94a3b8; }
[data-theme="light"] .notif-item-message { color: #334155; }
[data-theme="light"] .notif-item-target { color: #94a3b8; }
[data-theme="light"] .notif-item-deadline { background: rgba(239,68,68,0.08); color: #dc2626; }

/* Create Button */
[data-theme="light"] .notif-create-btn {
    background: linear-gradient(135deg, rgba(230,81,0,0.08), rgba(255,183,77,0.06));
    border-color: rgba(230,81,0,0.15);
    color: #c2410c;
}

/* Create Modal — Form Elements */
[data-theme="light"] .notif-create-modal h3 { color: #1e293b; }
[data-theme="light"] .notif-form-label { color: #475569; }
[data-theme="light"] .notif-textarea {
    background: #f1f5f9;
    border-color: rgba(0,0,0,0.1);
    color: #1e293b;
}
[data-theme="light"] .notif-textarea::placeholder { color: #94a3b8; }
[data-theme="light"] .notif-textarea:focus {
    background: #fff;
    border-color: #e65100;
}
[data-theme="light"] .notif-select {
    background-color: #f1f5f9;
    border-color: rgba(0,0,0,0.1);
    color: #1e293b;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='rgba(0,0,0,0.4)' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}
[data-theme="light"] .notif-select option { background: #fff; color: #1e293b; }

/* User Picker */
[data-theme="light"] .notif-user-tags {
    background: #f1f5f9;
    border-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .notif-user-input { color: #1e293b; }
[data-theme="light"] .notif-user-input::placeholder { color: #94a3b8; }
[data-theme="light"] .notif-user-tag {
    background: rgba(230,81,0,0.08);
    border-color: rgba(230,81,0,0.2);
    color: #c2410c;
}
[data-theme="light"] .notif-user-dropdown {
    background: #fff;
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
[data-theme="light"] .notif-user-option { color: #334155; }
[data-theme="light"] .notif-user-option:hover {
    background: rgba(230,81,0,0.06);
    color: #c2410c;
}

/* Deadline Fields */
[data-theme="light"] .notif-date-input,
[data-theme="light"] .notif-time-input {
    background: #f1f5f9;
    border-color: rgba(0,0,0,0.1);
    color: #1e293b;
}
[data-theme="light"] .notif-deadline-row label { color: #334155; }

/* Hover Toast */
[data-theme="light"] .notif-hover-toast {
    background: #fff;
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}
[data-theme="light"] .notif-hover-toast-text strong { color: #1e293b; }
[data-theme="light"] .notif-hover-toast-text span { color: #64748b; }

/* Deadline Banner */
[data-theme="light"] .deadline-banner {
    background: rgba(255,255,255,0.85);
    border-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .deadline-banner-msg { color: #334155; }
[data-theme="light"] .deadline-banner-countdown { color: #1e293b; }

/* Light mode — Detail Popup */
[data-theme="light"] .notif-detail-modal {
    background: linear-gradient(135deg, #fff, #f8fafc);
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 24px 64px rgba(0,0,0,0.15);
}
[data-theme="light"] .notif-detail-header {
    border-bottom-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .notif-detail-header h3 { color: #1e293b; }
[data-theme="light"] .notif-detail-sender { color: #c2410c; }
[data-theme="light"] .notif-detail-time { color: #94a3b8; }
[data-theme="light"] .notif-detail-message {
    color: #334155;
    background: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .notif-detail-deadline {
    background: rgba(239,68,68,0.06);
    color: #dc2626;
}
[data-theme="light"] .notif-detail-target { color: #94a3b8; }
[data-theme="light"] .notif-detail-countdown-big {
    background: linear-gradient(135deg, rgba(139,92,246,0.06), rgba(59,130,246,0.06));
    border-color: rgba(139,92,246,0.1);
    color: #7c3aed;
}
[data-theme="light"] .notif-detail-actions {
    border-top-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .notif-detail-btn.edit {
    background: rgba(59,130,246,0.06);
    border-color: rgba(59,130,246,0.15);
    color: #2563eb;
}
[data-theme="light"] .notif-detail-btn.delete {
    background: rgba(239,68,68,0.05);
    border-color: rgba(239,68,68,0.1);
    color: #dc2626;
}
[data-theme="light"] .deadline-banner-more { color: #94a3b8; }
[data-theme="light"] .deadline-banner-more:hover { color: #c2410c; background: rgba(0,0,0,0.03); }

/* Overlay */
[data-theme="light"] .notif-overlay {
    background: rgba(0,0,0,0.3);
}
[data-theme="light"] .notif-create-overlay {
    background: rgba(0,0,0,0.4);
}

@media (max-width: 768px) {
    .notif-panel { width: 100%; max-width: 100vw; border-radius: 16px 16px 0 0; }
    .notif-overlay { padding: 60px 0 0; align-items: flex-end; }
    .deadline-banner { max-width: 200px; }
    .deadline-banner-container { max-width: 220px; }
    .notif-detail-modal, .notif-create-modal { width: 95vw; padding: 20px 16px; }
}

