/* Toast Container */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

/* Toast Notification */
.toast {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out;
    min-width: 300px;
}

.toast.hiding {
    animation: slideOut 0.3s ease-in forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast-success {
    background-color: #ecfdf5;
    border-left: 4px solid #10b981;
}

.toast-error {
    background-color: #fef2f2;
    border-left: 4px solid #ef4444;
}

.toast-info {
    background-color: #eff6ff;
    border-left: 4px solid #3b82f6;
}

.toast-warning {
    background-color: #fffbeb;
    border-left: 4px solid #f59e0b;
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-right: 12px;
}

.toast-content {
    flex-grow: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 14px;
    color: #4b5563;
}

.toast-close {
    flex-shrink: 0;
    margin-left: 12px;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #4b5563;
}

/* Confirmation Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.2s;
}

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

.modal-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon.warning {
    background-color: #fef3c7;
    color: #d97706;
}

.modal-icon.danger {
    background-color: #fee2e2;
    color: #dc2626;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px;
    color: #111827;
}

.modal-message {
    font-size: 14px;
    text-align: center;
    color: #6b7280;
    margin-bottom: 24px;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn-cancel {
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.modal-btn-cancel:hover {
    background-color: #e5e7eb;
}

.modal-btn-confirm {
    background-color: #dc2626;
    color: white;
    border: none;
}

.modal-btn-confirm:hover {
    background-color: #b91c1c;
}

.modal-btn-confirm.primary {
    background-color: #2563eb;
}

.modal-btn-confirm.primary:hover {
    background-color: #1d4ed8;
}

/* Navbar Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    background-color: #1e40af;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    min-width: 160px;
    z-index: 50;
    overflow: hidden;
}

.nav-dropdown-menu.open {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: white;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.15s;
}

.nav-dropdown-menu a:hover {
    background-color: #1d4ed8;
}

/* Notification Panel */
.notification-item.unread {
    background-color: #eff6ff;
}

.notification-item:last-child .border-b {
    border-bottom: none;
}

@keyframes bellShake {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(10deg); }
    50% { transform: rotate(-10deg); }
    75% { transform: rotate(5deg); }
}

.bell-shake {
    animation: bellShake 0.5s ease-in-out;
}
