/* --- AngelChart Default Stylesheet --- */

/* --- 1. GLOBAL & FONT STYLES --- */
html, body {
    margin: 0; padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box;
display: block !important; /* Resets from flex */
        justify-content: initial !important; /* Resets from center */
        align-items: initial !important; /* Resets from center */
        height: auto !important; /* Resets from 100vh */
}

body {
    /* The background-image is DYNAMIC and will be set in the PHP files. */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* --- 2. LAYOUT CONTAINERS --- */

/* NEW: Wrapper to make both headers stick to the top */
.sticky-header-wrapper {
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Ensures it stays on top of other content */
}

/* For the session greeting bar at the very top */
#session-greeting-bar {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff; padding: 8px 15px;
    box-sizing: border-box; text-align: center;
}

/* For the homepage header layout */
.header-container {
    width: 100%;
    /* UPDATED: Reduced vertical padding from 25px to 15px */
    padding: 15px clamp(20px, 5vw, 40px);
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    /* Added a subtle background to make sure it's visible over content */
    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* For the auth page centered layout */
.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 50px); /* Adjust based on session bar height */
    padding: 20px;
    box-sizing: border-box;
}

/* For the frosted glass box on the auth page */
.content-box {
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 600px;
    color: #ffffff;
}

/* --- 3. TYPOGRAPHY & EFFECTS --- */

/* Homepage animated title */
.title {
    font-family: 'Cormorant Garamond', serif; font-weight: 700;
    margin: 0; position: relative;
    background: linear-gradient(to left, #C0C0C0 20%, #FFD700 50%, #C0C0C0 80%);
    background-size: 200% auto;
    color: transparent; -webkit-background-clip: text; background-clip: text;
    /* UPDATED: Font size clamp reduced by ~30% */
    font-size: clamp(1.5rem, 1rem + 2vw, 2.2rem);
    /* The 'animation' property is DYNAMIC and will be set in an inline style block. */
}

.title::after {
    content: 'Welcome Angel'; 
    position: absolute; left: 0; top: 0; z-index: 2;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 50%);
    background-size: 40px 40px;
    color: transparent; -webkit-background-clip: text; background-clip: text;
    /* The 'animation' property is DYNAMIC and will be set in an inline style block. */
}

/* Auth page title */
.content-box h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 1.5rem + 3vw, 2.8rem);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    margin-top: 0; margin-bottom: 20px;
}

.content-box p {
    font-size: 1.1rem; line-height: 1.6;
    margin-bottom: 30px; color: #f0f0f0;
}

/* Keyframe animations */
@keyframes balloon-and-wipe {
    0% { background-position: 100% 0; transform: scale(1); }
    100% { background-position: 0% 0; transform: scale(1.15); }
}

@keyframes sparkles-and-fade {
    0% { background-position: 0px 0px; opacity: 1; }
    95% { opacity: 1; }
    100% { background-position: -200px 200px; opacity: 0; }
}

/* --- 4. BUTTONS --- */
.button-group {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 15px;
}

.button {
    display: inline-block; 
    /* UPDATED: Padding reduced to make buttons smaller */
    padding: 8px 22px; 
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.2); color: #ffffff;
    text-decoration: none; 
    /* UPDATED: Font size reduced */
    font-size: 0.8rem; 
    font-weight: bold;
    letter-spacing: 1px; transition: all 0.3s ease;
    white-space: nowrap;
}

.button:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* --- 5. RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 768px) {
    .header-container { flex-direction: column; justify-content: center; }
    .title { text-align: center; }
    .button-group { flex-direction: column; width: 80%; max-width: 320px; }
    .button { width: 100%; text-align: center; box-sizing: border-box; }
}