:root {
    --aes-blue: #0056b3;
    --aes-red: #cc0000;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
}

/* Custom Toast Overrides for Bootstrap Compatibility if needed */
.toast-container {
    z-index: 1055 !important;
}

/* Shake Animation (Global) */
.shake-error {
    animation: shake 0.5s;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

/* Helper to center content in viewport if needed */
.center-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

/* Bootstrap Overrides for AES Branding */
.text-primary {
    color: var(--aes-blue) !important;
}

.bg-primary {
    background-color: var(--aes-blue) !important;
}

.border-primary {
    border-color: var(--aes-blue) !important;
}

.btn-primary {
    background-color: var(--aes-blue);
    border-color: var(--aes-blue);
}

.btn-primary:hover {
    background-color: #004494;
    border-color: #004494;
}

.text-danger {
    color: var(--aes-red) !important;
}

.bg-danger {
    background-color: var(--aes-red) !important;
}

/* === Custom AES Toast Notifications (Restored) === */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aes-toast {
    min-width: 300px;
    background: white;
    border-left: 5px solid #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 4px;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.3s ease;
}

.aes-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.aes-toast.error {
    border-left-color: #dc3545;
}

.aes-toast.error .toast-icon {
    background: #ffebee;
    color: #d32f2f;
}

.aes-toast.success {
    border-left-color: #28a745;
}

.aes-toast.success .toast-icon {
    background: #d4edda;
    color: #155724;
}

.aes-toast.info {
    border-left-color: #0d6efd;
}

.aes-toast.info .toast-icon {
    background: #e7f1ff;
    color: #0d6efd;
}

.toast-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: monospace;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* === Glassmorphism Header === */
.glass-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.glass-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

/* Navbar Link Hover Effect */
.navbar-nav .nav-link {
    position: relative;
    padding-bottom: 5px;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--aes-blue);
    transition: width 0.3s;
}

.navbar-nav .nav-link:hover::after,

/* Dropdown cleanups */
.dropdown-toggle.no-arrow::after {
    display: none;
}

.hover-scale {
    transition: transform 0.2s;
}

.hover-scale:hover {
    transform: scale(1.1);
}