/* Toast Notification Styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background-color: #ffffff;
    color: #374151;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 450px;
    border-left: 4px solid #3b82f6;
    /* Default info color */
    pointer-events: auto;
    animation: toastSlideIn 0.3s ease-out forwards;
    transition: all 0.3s ease;
}

.toast.hiding {
    animation: toastSlideOut 0.3s ease-in forwards;
}

.toast-success {
    border-left-color: #10b981;
}

.toast-error {
    border-left-color: #ef4444;
}

.toast-warning {
    border-left-color: #f59e0b;
}

.toast-info {
    border-left-color: #3b82f6;
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    color: #10b981;
}

.toast-error .toast-icon {
    color: #ef4444;
}

.toast-warning .toast-icon {
    color: #f59e0b;
}

.toast-info .toast-icon {
    color: #3b82f6;
}

.toast-content {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #4b5563;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Confirmation Modal Overlay */
.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    backdrop-filter: blur(2px);
}

.notification-overlay.show {
    display: flex;
}

.notification-confirm-modal {
    background: white;
    width: 400px;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    animation: modalPopIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.confirm-body {
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.confirm-icon {
    font-size: 24px;
    color: #f59e0b;
    flex-shrink: 0;
}

.confirm-content h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #111827;
}

.confirm-content p {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
}

.confirm-footer {
    background-color: #f9fafb;
    padding: 12px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-confirm-cancel,
.btn-confirm-ok {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-confirm-cancel {
    background: white;
    border: 1px solid #d1d5db;
    color: #374151;
}

.btn-confirm-cancel:hover {
    background-color: #f3f4f6;
}

.btn-confirm-ok {
    background-color: #ef4444;
    border: 1px solid #ef4444;
    color: white;
}

.btn-confirm-ok:hover {
    background-color: #dc2626;
}

@keyframes modalPopIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== Warm Dark Theme (body.theme-dark.candidate-dashboard-body) ===== */
body.theme-dark.candidate-dashboard-body .toast {
    background-color: #2a2a2a;
    color: #e0e0e0;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.5);
    border-color: rgba(255,255,255,0.08);
}
body.theme-dark.candidate-dashboard-body .toast-close {
    color: #777;
}
body.theme-dark.candidate-dashboard-body .toast-close:hover {
    color: #e0e0e0;
}
body.theme-dark.candidate-dashboard-body .notification-confirm-modal {
    background: #2a2a2a;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.5);
}
body.theme-dark.candidate-dashboard-body .confirm-content h3 {
    color: #fff;
}
body.theme-dark.candidate-dashboard-body .confirm-content p {
    color: #999;
}
body.theme-dark.candidate-dashboard-body .confirm-footer {
    background-color: #252525;
}
body.theme-dark.candidate-dashboard-body .btn-confirm-cancel {
    background: #383838;
    border-color: rgba(255,255,255,0.1);
    color: #e0e0e0;
}
body.theme-dark.candidate-dashboard-body .btn-confirm-cancel:hover {
    background: #444;
}