html, body {
    /* Modern System Font Stack */
    font-family: 'Segoe UI', system-ui, -apple-system, 'Roboto', 'Helvetica Neue', sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
    color: #212529;
}

/* Premium Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #333;
}

    h1:focus {
        outline: none;
    }

/* --- GLOBAL BRANDING --- */

a, .btn-link {
    color: #3a0647; /* Brand Purple */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

    a:hover, .btn-link:hover {
        color: #5c0a70;
        text-decoration: underline;
    }

/* Override Bootstrap Primary Button */
.btn-primary {
    color: #fff;
    background-color: #3a0647;
    border-color: #3a0647;
}

    .btn-primary:hover, .btn-primary:focus, .btn-primary:active {
        background-color: #2a0434 !important; /* Darker Purple */
        border-color: #2a0434 !important;
    }

/* Chat Container (Legacy support) */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 85vh;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* --- AUTH PAGES (Login, Register, etc.) --- */

/* 1. Container Limit (Prevents full-width stretching) */
.auth-form-container {
    max-width: 480px;
    margin: 0 auto;
    margin-top: 5vh;
}

/* 2. Simple Entrance Animation */
.fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add this alongside .fade-in-up */
.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 3. Button Polish */
.transition-btn {
    transition: transform 0.2s, box-shadow 0.2s;
}

    .transition-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(58, 6, 71, 0.25) !important; /* Purple shadow */
    }

/* 4. Input Polish (Purple Focus Ring) */
.form-control:focus {
    background-color: #fff;
    border-color: #3a0647;
    box-shadow: 0 0 0 3px rgba(58, 6, 71, 0.15); /* Purple tint */
}