:root {
    --primary-color: #4ba1cc;
    --secondary-color: #4B6166;
    --text-color: #333;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
}

.modern-navbar {
    background-color: var(--card-bg);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0D577A !important;
}

.navbar-brand img {
    width: 60px;
}

.navbar-brand:hover {
    transform: translateY(-1px);
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 0.75rem !important;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background-color: rgba(75, 161, 204, 0.1);
    color: var(--primary-color) !important;
}

.nav-link.active {
    background-color: var(--primary-color);
    color: white !important;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: 2px solid var(--primary-color);
}

.user-profile {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.user-link {
    background-color: var(--primary-color);
    color: white !important;
    border-radius: 2rem;
    padding: 0.5rem 1rem !important;
    transition: all 0.2s ease;
}

.user-link:hover {
    background-color: var(--secondary-color);
    transform: translateY(-1px);
    color: white !important;
}

.signInNavItem {
    margin-left: auto;
}

#GlobalMessageCont {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 400px;
}

.global-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    pointer-events: auto;
    animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top right;
}

.global-toast.toast-exit {
    animation: toastSlideOut 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.global-toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.global-toast-message {
    flex: 1;
    word-break: break-word;
}

.global-toast-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(5, 150, 105, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.global-toast-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95) 0%, rgba(185, 28, 28, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.spinnerOverlay {
    background-color: rgb(63 55 55 / 30%);
    position: fixed;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 100;
}

.loadingSpinner {
    height: 60px;
    width: 60px;
    position: fixed;
    right: calc(50% - 30px);
    top: calc(50% - 30px);
    border: 6px solid #5d91c9;
    border-right-color: #073c75;
    border-left-color: #073c75;
    border-radius: 50%;
    animation: spinAnimation ease-in-out 1s infinite, squareTransform ease-in infinite 2s;
    z-index: 100;
}

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

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

@keyframes spinAnimation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes squareTransform {
    0%, 100% {
        border-radius: 50%;
    }
    50% {
        border-radius: 20%;
    }
}

@media (max-width: 1000px) {
    .signInNavItem {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .user-profile {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    #GlobalMessageCont {
        top: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
    }

    .global-toast {
        padding: 14px 16px;
    }
}
