@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/**
 * Global CSS variables and styles for the WingMate application.
 */
:root {
    --wm-page-bg: #FFFFFF;
    --wm-font-family: "Inter", sans-serif;
    --wm-button-primary: #C30E59;
    --wm-button-primary-border: #C30E59;
    --wm-button-secondary: #F2AE66;
    --wm-button-secondary-border: #F2AE66;
    --wm-button-text: #FFFFFF;
    --wm-button-radius: 15px;
    --wm-button-width: 130px;
    --wm-button-height: 45px;
    --wm-error-color: #C30E59;
    --wm-success-color: #F2AE66;
    --transition: 0.35s ease;
    --transition-subtle: 0.4s ease-in-out;
}

/** * Global border-box settings.
 */
html {
    box-sizing: border-box;
    height: 100%;
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* Global styles for body, buttons, and text. */
body{
    margin: 0;
    min-height: 100vh;
    background-color: var(--wm-page-bg);
    font-family: var(--wm-font-family);
}

button,
.button-primary,
.button-secondary {
    color: #FFF;
    font-family: var(--wm-font-family);
    font-size: 14px;
    font-style: normal;
    font-weight: 300;
    line-height: 24px;
    letter-spacing: 0.1px;

    border-radius: var(--wm-button-radius);
    width: var(--wm-button-width);
    height: var(--wm-button-height);
    border: 1px solid var(--wm-button-primary-border);
    background: var(--wm-button-primary);
    color: var(--wm-button-text);
}

.button-secondary{
    border-color: var(--wm-button-secondary-border);
    background: var(--wm-button-secondary);
}

.entry-page {
    min-height: 100vh;

    .entry-container{
    background: #C30E59;
    }

    .entry-description,
    .entry-title{
        color: #FFF;
        font-family: var(--wm-font-family);
    }

    .entry-description{
        font-size: 18px;
        font-style: normal;
        font-weight: 400;
        line-height: 28px;
        letter-spacing: 0.1px;
    }
}

p{
    color: #000;
    font-family: var(--wm-font-family);
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: 0.1px;
}

.wingmate-navbar {
    width: 100%;
    height: 93px;
    padding: 15px 20px;
    background: #FFFFFF;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.nav-link.active {
    border-radius: var(--wm-button-radius);
    background: #F5F5F5;
    padding: 8px 16px !important;
}

.notification-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #C30E59;
    color: white;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 6px;
    animation: pulse 0.5s ease-in-out;
}

.notification-badge.hidden {
    display: none;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Navbar mobile dropdown improvements */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: white;
        border-radius: 0.375rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        margin-top: 0.5rem;
        z-index: 1050;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
    }

    .navbar-nav {
        padding: 0.5rem 1rem;
    }

    .nav-item {
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-item:last-child {
        border-bottom: none;
    }
}

/* Smooth transitions for nav links */
.nav-link {
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
    color: #C30E59;
}

/* Page content fade transition */
body {
    opacity: 1;
    transition: opacity 0.2s ease;
}

body.page-loading {
    opacity: 0.7;
}

/* Global Error Styling */
.field-error {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--wm-error-color);
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.error-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--wm-error-color);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    flex: 0 0 16px;
}

.general-error {
    margin-top: 8px;
    margin-bottom: 8px;
    color: var(--wm-error-color);
    font-size: 14px;
}

.general-success {
    margin-top: 8px;
    margin-bottom: 8px;
    color: var(--wm-success-color);
    font-size: 14px;
}

.alert-wingmate {
    background-color: #f8d09d ;
    border: 1px solid #F2AE66;
    color: #000;
    font-size: 14px;
    padding: 12px 20px;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-wingmate p {
    font-size: 14px;
    font-weight: 400;
    margin: 0;
}

.alert-wingmate strong {
    font-weight: 600;
}

/* Floating button */
.floating-button {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
}

.floating-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}