/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

html {
    box-sizing: border-box;
    font-size: 10px;
    scroll-behavior: smooth;
}


body {
    /*font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";*/
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !important;
    color: #333;
    font-size: 18px;/*1.6em;*/
    background-color: #FAFAFA;
    -webkit-font-smoothing: antialiased;
  
   
}

h1 {
    font-size: 24px;
    font-weight: normal;
    margin: 0px;
    overflow: visible;
    padding: 0px;
    text-align: center;
}

h4 {
    margin: 10px 0 10px 0;
}

p {
    margin: 6px 0 6px 0;
}

.event {
    border-radius: 4px;
    -webkit-border-radius: 4px;
    color: #FFFFFF;
    font-size: 12px;
    margin: 0px 30px;
    padding: 2px 0px;
}

    .event.listening {
        background-color: #333333;
        display: block;
    }

    .event.received {
        background-color: #4B946A;
        display: none;
    }

@keyframes fade {
    from {
        opacity: 1.0;
    }

    50% {
        opacity: 0.4;
    }

    to {
        opacity: 1.0;
    }
}

@-webkit-keyframes fade {
    from {
        opacity: 1.0;
    }

    50% {
        opacity: 0.4;
    }

    to {
        opacity: 1.0;
    }
}

.blink {
    animation: fade 3000ms infinite;
    -webkit-animation: fade 3000ms infinite;
}

.card {
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    transition: 0.3s;
    width: 85%;
    margin: 3% auto 3% auto;
    border-radius: 7px;
    padding: 4px 22px;
    font-size: 18px; /*1em;*/
    margin-bottom: 13px;
    border-top: 8px solid #F7D900;
    background-color: #fff;
}

    .card:hover {
        box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    }

#user_profile_button {
    /* width: 35px;
    height: 35px;
    background-size: 35px;
    cursor: pointer;
    border: none;*/
    width: 100%;
    border-radius: 8px;
    background-color: #F7D900;
    padding: 3px 5px;
    font-size: 18px;
    cursor: pointer;
    border-color: #F7D900;
    color: #282b34;
}

.video_button {


    font-size: 16px;
    cursor: pointer;
    color: #797979;
    position: absolute;
    top: 10px;
    left: 10px;
}

.audio_button {
    /*border: 1px solid black;
    border-radius: 10px;
    background-color: white;*/
    font-size: 16px;
    cursor: pointer;
    border-color: rgba(0,0,0,0.2);
    color: #797979;
    position: absolute;
    top: 10px;
    right: 10px;
}
.play-btn-svg {
    width: 30px;
    height: 30px;
    margin: 0 auto;
    fill: #7c7c7c;
    opacity: .5;
}
#msg-button-div {
    /* Visual Style */
    background: transparent !important;
    box-shadow: none !important; 
    border: 1px solid transparent;
    
    /* Sizing */
    width: 40px;  /* Slightly larger touch target */
    height: 40px;
    border-radius: 50%;
    
    /* Centering Content (The SVG) */
    display: flex !important;           /* Force Flexbox */
    justify-content: center !important; /* Horizontally Center */
    align-items: center !important;     /* Vertically Center */
    
    /* Positioning relative to parent container */
    position: absolute;
    right: 0px; 
    top: -10px; /* Moves it up slightly to align with text */
    z-index: 9;
    
    opacity: 0.5; /* Subtle ghost look */
    transition: all 0.3s ease;
    cursor: pointer;
}

#msg-button-div:hover {
    opacity: 1;
    background-color: rgba(0,0,0,0.05) !important; /* Slight grey bg on hover */
    transform: scale(1.1); /* Slight grow effect */
}

/* Fix the Icon Size & Color */
#msg-button-svg {
    width: 20px;       /* Fixed width */
    height: 20px;      /* Fixed height */
    fill: #bdc3c7 !important; /* Light Grey Color */
    display: block;    /* Remove extra inline spacing */
    margin: 0 auto;    /* Ensure margin doesn't push it */
}

#msg-button-svg svg {
    width: 100%;       /* Fill the container */
    height: 100%;
    display: block;
}

.msg_link {
    margin-top: 20px;
    text-align: right;
}

.button {
    border: 2px solid black;
    width: 100%;
    border-radius: 12px;
    background-color: white;
    padding: 8px 36px;
    font-size: 16px;
    cursor: pointer;
    border-color: #F7D900;
    color: black;
    margin-bottom: 10px;
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !important;
}



    .button:hover {
        background-color: #000;
        color: #F7D900;
        border: 2px solid black;
    }

.button_disabled_readed {
    border: 0;
    width: 100%;
    border-radius: 25px;
    background-color: white;
    padding: 8px 36px;
    font-size: 16px;
    cursor: pointer;
    color: #7d6e00;
    margin-bottom: 10px;
}
.button_disabled_readed:disabled {
    opacity: 0.5;
}

.content { /*BOXES*/
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: space-around;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 5px;
    align-items: center;
}

.zi_lant_box {
    text-align: center;
}

.zi_lant_circle {
    background: white;
    border: 2px solid #ddd;
    width: 40px;
    height: 40px;
    color: black;
    border-radius: 30px;
    display: flex;
}

#day1 {
    border: 2px solid #eaea00;
}

#day2 {
    border: 2px solid #ddd;
}

#day3 {
    border: 2px solid #eaea00;
}

#day4 {
    border: 2px solid #eaea00;
}

#day5 {
    border: 2px solid #ddd;
}

.lant_actual {
    background: white;
    border: 2px solid #ddd;
    width: 60px;
    height: 40px;
    border-radius: 30px;
    display: flex;
}

.read_or_not_icon {
    margin: auto !important; /* Important */
    text-align: center;
}

.day_of_week {
    border: 2px solid transparent;
    width: 40px;
    height: 40px;
    text-align: center;
}

.line_trough_days {
    width: 84%;
    height: 3px;
    background-color: #ddd;
    position: absolute;
    margin: auto !important; /* Important */
    text-align: center;
    z-index: 0;
    overflow: hidden;
}

/* START TEST DIALOG */
.start_test_dialog {
   
    border-radius: 10px;
    text-align: center;
    box-sizing: border-box;
   
}

/* Overwrite default styles of hr */
hr {
    border: 1px solid #f1f1f1;
    margin-bottom: 15px;
}
/*
.start_test_button {
    background-color: #4CAF50;
    color: white;
    padding: 7px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
    opacity: 0.9;
    border-radius: 10px;
}

    .start_test_button:hover {
        opacity: 1;
    }*/

/*CALENDAR PAGE STYLE*/


.logo {
    margin: 1.6rem auto;
    text-align: center;
}

a,
a:visited {
    color: #000;
}

footer {
    text-align: center;
    /*  margin: 1.6rem 0;  */
   
}

h1 {
    text-align: center;
}


.container {
    width: 96%;
    margin: 1.6rem auto;
    max-width: 42rem;
    position: relative;
    /* text-align: center;*/
}

.demo-picked {
    font-size: 1.2rem;
    text-align: center;
}

    .demo-picked span {
        font-weight: bold;
    }


/*QUESTION_PAGE*/

.question_box_div {
    background-color: #f1c40f;
    width: 100%;
    height: 10rem;
    border-bottom-left-radius: 50%;
    border-bottom-right-radius: 50%;
}
.question_box_shape {
    background-color: transparent;
    width: 100%;
    position: relative;
    overflow: hidden;
    height: 45vh;
}
    .question_box_shape::before {
        border-radius: 100%;
        position: absolute;
        background: #f1c40f;
        right: -200px;
        left: -200px;
        top: -200px;
        content: '';
        bottom: 0;
        z-index:-1;
    }

.question_div {
    width: 100%;
    height: 45vh;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
}
#question {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.2em;
    padding: 0 4vw;
    text-align: center;
    word-break: break-word;
}

#options_div {
    padding: 2rem 1.1rem;
    padding-bottom: 0;
}
.option {
    font-family: 'Quicksand', sans-serif;
    border: 2px solid black;
    width: 100%;
    border-radius: 25px;
    background-color: white;
    padding: 12px 36px;
    font-size: 16px;
    cursor: pointer;
    border-color: #cdcdcd;
    color: #797979;
    margin: 1.1rem auto;
    font-weight: bold;
    word-break: break-word;
}

.option:disabled {
    opacity: 1;
}

.option_wrong {
    background-color: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
}

.option_right {
    background-color: #1abc9c;
    border-color: #1abc9c;
    color: #fff;
}



.next_question {
    border: 2px solid black;
    width: 40%;
    border-radius: 25px;
    background-color: white;
    padding: 12px 36px;
    font-size: 16px;
    cursor: pointer;
    border-color: #cdcdcd;
    color: #797979;
    margin: 1.1rem auto;
    font-weight: bold;
}
.next_question:hover {
    background-color: #f1c40f;
    border-color: #f1c40f;
    color: #fff;
}

#reference_div {
    height: 42vh;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
#header_question {
    /*width: 100%;
    height: 10vh;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;*/
    overflow: hidden;
    background-color: transparent;
    position: fixed;
    top: 0;
    width: 100%;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: space-around;
    justify-content: space-around;
    z-index: 8;
    text-align: center;
}

.header_question_elements {
    background-color: rgb(230, 185, 0, 1);
    padding: 0.6rem 0;
    padding-top:32px;
}



/*STATISTICS*/
.statistics_box {
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    transition: 0.3s;
    /* margin: 3% auto 3% auto; */
    border-radius: 7px 7px 7px 7px;
    font-size: 18px;
    margin-bottom: 13px;
    margin-top: 13px;
    position: relative;
    /* border-top: 8px solid #86D8C9; */
}

.centered_text_inside_div {
    width: 100%;
    padding: 5px 0px 5px 0px;
    text-align: center;
}

.statistics-table .box-statistics {
    width: 100%;
    border-bottom: 1px solid #33333322;
    border-top: 1px solid #33333322;
    display: table;
}

.statistics-table .box-statistics .box-row-statistics {
    display: table-row;
}

.statistics-table .box-statistics .box-cell {
    display: table-cell;
    width: 20%;
    padding: 10px;
    text-align: center;
    border-left: 1px solid #33333322;
}

.statistics-table .box-statistics .box-cell.left_box {
    border-left: 0px solid #33333322;
}  
          


/*BOTTOM NAVIGATION BAR*/
.navbar {
    overflow: hidden;
    background-color: #333;
    position: fixed;
    bottom: 0;
    width: 100%;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: space-around;
    justify-content: space-around;
    z-index: 8;
    text-align: center;
}

.navbar a {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 25px 16px;
    text-decoration: none;
    font-size: 17px;
}



.navbar a.active {
    background-color: #4CAF50;
    color: white;
}


:root {
    --honey-primary: #FFB700;       /* Golden Honey */
    --honey-secondary: #FFD54F;     /* Lighter Gold */
    --honey-dark: #dda200;          /* Dark Amber */
    --text-main: #2D3436;           /* Soft Black */
    --text-muted: #636e72;          /* Grey */
    --bg-app: #FFFDF5;              /* Very pale cream */
    --white: #FFFFFF;
    --shadow-soft: 0 10px 25px -5px rgba(255, 183, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 4px 20px rgba(0,0,0,0.05);
    --radius-l: 24px;
    --radius-m: 16px;
    --radius-s: 12px;
}

/* --- Global Reset & Typography --- */
* {
    box-sizing: border-box;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-app);
    font-family: 'Quicksand', sans-serif !important;
    color: var(--text-main);
    font-size: 16px;
    margin: 0;
    padding-bottom: 80px; /* Space for bottom nav */
    line-height: 1.6;
}

a { text-decoration: none; color: var(--honey-dark); font-weight: 700; transition: 0.3s; }
h1, h2, h3, h4 { margin-top: 0; color: var(--text-main); font-weight: 700; }

/* --- Buttons (The "Honey Drop" Look) --- */
.button, .login_button, .start_test_button, button[type="submit"] {
    background: linear-gradient(135deg, var(--honey-primary) 0%, var(--honey-dark) 100%);
    color: white !important;
    border: none !important;
    border-radius: 50px !important; /* Pill shape */
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(245, 127, 23, 0.3);
    cursor: pointer;
    width: 100%;
    margin: 10px 0;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Quicksand', sans-serif !important;
}

.button:active, .login_button:active {
    transform: scale(0.98);
    box-shadow: 0 2px 10px rgba(245, 127, 23, 0.2);
}

.button span { font-weight: 700; }

/* Secondary/Outline Buttons */
.button_small, .cancelbtn {
    background: transparent;
    border: 2px solid var(--honey-primary) !important;
    color: var(--honey-dark) !important;
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: 700;
}

/* --- Cards --- */
.card {
    background: var(--white);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-card);
    margin: 20px auto;
    width: 90%;
    max-width: 500px;
    padding: 24px;
    border: none; /* Removed the top border for a cleaner look */
    position: relative;
    overflow: hidden;
}

/* Decorative Honey Element on Cards */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--honey-secondary), var(--honey-primary));
}

/* --- Inputs & Forms --- */
input[type="text"], 
input[type="password"], 
input[type="email"], 
input[type="number"], 
select {
    width: 100%;
    padding: 14px 18px;
    margin: 8px 0 20px 0;
    display: inline-block;
    border: 1px solid #E0E0E0;
    border-radius: var(--radius-m);
    box-sizing: border-box;
    background-color: #FAFAFA;
    font-family: 'Quicksand', sans-serif;
    font-size: 15px;
    transition: 0.3s;
}

input:focus, select:focus {
    background-color: #fff;
    border-color: var(--honey-primary);
    box-shadow: 0 0 0 4px rgba(255, 183, 0, 0.1);
}

label {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-muted);
    margin-left: 4px;
}

/* --- Modal Styling --- */
.modal {
    background-color: rgba(255, 253, 245, 0.95); /* Tinted backdrop */
    backdrop-filter: blur(5px);
    z-index: 1000;
}

.modal-content-login, .modal-content-register, .modal-content {
    background-color: var(--white);
    border-radius: var(--radius-l);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border: none;
    padding: 0;
    overflow: hidden;
    width: 90%;
    max-width: 450px;
    margin: 5% auto;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.imgcontainer {
    background: linear-gradient(135deg, var(--honey-secondary) 0%, var(--honey-primary) 100%);
    padding: 30px 20px;
    text-align: center;
}

.imgcontainer span {
    color: #fff !important; /* Force white text on header */
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.close {
    color: white;
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 30px;
    font-weight: bold;
    opacity: 0.8;
}

/* --- Home Page Specifics --- */
#user_progress {
    text-align: center;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--honey-dark);
    margin-bottom: 20px;
}


#user_profile_button {
    /* Reset position so it scrolls with the page */
    position: relative !important; 
    display: inline-block !important;
    
    /* Honey Theme Styling */
    background-color: var(--honey-primary) !important;
    color: var(--text-main) !important;
    border: none !important;
    border-radius: 50px;
    padding: 6px 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    
    /* Ensure it fits in the header area */
    width: auto !important; 
    text-transform: uppercase;
    z-index: 10;
}

/* Chain / Habit Tracker */
.zi_lant_box { margin: 5px; }

.zi_lant_circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #EEE;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: var(--text-muted);
    transition: 0.3s;
}

/* Active Day (Gold) */
#day1, #day3, #day4 { /* Use classes in JS ideally, but styling IDs for now */
    border-color: var(--honey-primary);
    background-color: var(--honey-primary);
    color: white;
    box-shadow: 0 4px 10px rgba(255, 183, 0, 0.3);
}

.day_of_week {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

/* --- Calendar Page --- */
#v-cal {
    background-color: white;
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-card);
    padding: 10px;
}

.vcal-header {
    background-color: transparent;
    padding: 15px;
}

.vcal-header__label {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
}

.vcal-date--selected {
    background-color: var(--honey-primary) !important;
    border-radius: 50%;
}

/* --- Quiz / Questions --- */
.question_box_shape {
    background: linear-gradient(180deg, var(--honey-secondary) 0%, var(--honey-primary) 100%);
    height: 35vh;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    box-shadow: 0 10px 30px rgba(255, 183, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 40px;
}

#question {
    color: white;
    font-size: 1.4em;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header_question_elements {
    background: rgba(0,0,0,0.1);
    color: white;
    padding-top: 40px; /* Safe area */
    font-size: 0.9em;
    font-weight: 600;
}

.option {
    border: 1px solid #eee;
    background: white;
    color: var(--text-main);
    padding: 16px;
    margin: 12px auto;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: 0.2s;
}

.option:hover {
    transform: translateY(-2px);
    border-color: var(--honey-primary);
}

.option_right {
    background-color: #4CAF50 !important; /* Green */
    color: white !important;
    border: none;
}

.option_wrong {
    background-color: #FF5252 !important; /* Red */
    color: white !important;
    border: none;
}

/* --- Bottom Navigation --- */
.navbar {
    background-color: var(--white);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
    height: 70px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 999;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.navbar a {
    color: #B0BEC5;
    font-size: 24px;
    padding: 10px;
    border-radius: 12px;
}

.navbar a.active {
    color: var(--honey-primary);
    background-color: rgba(255, 183, 0, 0.1);
}

/* --- Footer & Misc --- */
#footer_login {
    background-color: #FFFDF5;
    padding: 20px;
    border-top: 1px solid #eee;
}

/* Loader */
#full_page_loader {
    border: 6px solid #f3f3f3;
    border-top: 6px solid var(--honey-primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

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

/* Fix Selects on Mobile */
select {
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F57F17' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

/* --- PROFILE PAGE BEAUTIFICATION --- */

#user_profile_page {
    background-color: var(--bg-app);
    padding: 20px 0 80px 0;
}

/* 1. The Header (User Name) */
#user_profile_page h3#profile_name {
    font-size: 1.8rem;
    color: var(--honey-dark);
    text-align: center;
    margin-top: 10px;
    margin-bottom: 5px;
    background: white;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    border-top-left-radius: var(--radius-l);
    border-top-right-radius: var(--radius-l);
    border-bottom: 2px solid #FFF8E1;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.02);
}

/* 2. Grouping Info into a "Card" Look */
/* We target the paragraphs that contain user info */
#profile_email, 
#profile_year_edition, 
#profile_plan_type, 
#profile_surname, 
#profile_name, 
#profile_birthdate, 
#profile_sex, 
#profile_church_name, 
#profile_city, 
#profile_country, 
#profile_phone_number,
#profile_is_competitor {
    background: white;
    width: 90%;
    margin: 0 auto; /* Center list */
    padding: 12px 20px;
    font-size: 0.95rem;
    color: var(--text-main);
    border-bottom: 1px solid #f0f0f0;
    display: block;
}

/* Add an icon before the text for visual flair (Optional) */
#profile_email::before { content: '📧 '; }
#profile_phone_number::before { content: '📞 '; }
#profile_city::before { content: '🏙️ '; }
#profile_country::before { content: '🌍 '; }

/* Rounded bottom for the last item in the info list to complete the "Card" */
#profile_phone_number {
    border-bottom-left-radius: var(--radius-l);
    border-bottom-right-radius: var(--radius-l);
    box-shadow: var(--shadow-card);
    margin-bottom: 20px; /* Space after the info card */
}

/* 3. Action Buttons (Change Pass, Edit, Home) */
#user_profile_page .button {
    width: 90%;
    margin: 10px auto;
    display: block;
}

/* Make "Home" button secondary style */
#profile_to_home_button {
    background: white !important;
    border: 2px solid var(--honey-primary) !important;
    color: var(--honey-dark) !important;
    box-shadow: none !important;
}

/* 4. Social Media Section */
#social-div {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
}

#social-div a {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--honey-primary), var(--honey-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(245, 127, 23, 0.3);
    text-decoration: none;
    transition: transform 0.2s;
}

#social-div a:active {
    transform: scale(0.9);
}

/* 5. PDF Download Links & Rules */
/* Target the links inside P tags to look like clickable rows */
#user_profile_page p a {
    display: block;
    background: white;
    padding: 15px 20px;
    width: 90%;
    margin: 8px auto;
    border-radius: var(--radius-m);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    color: var(--honey-dark);
    font-weight: 700;
    position: relative;
    border-left: 5px solid var(--honey-secondary);
}

/* Add a visual indicator > */
#user_profile_page p a::after {
    content: '›';
    position: absolute;
    right: 20px;
    font-size: 20px;
    color: #ccc;
}

/* 6. "Delete Account" & "Logout" Links */
#logout_link, #delete_account_link {
    text-align: center;
    display: block;
    margin: 20px auto;
    width: 90%;
    padding: 10px;
    cursor: pointer;
}

#logout_link {
    color: var(--honey-dark);
    font-weight: bold;
    border: 1px solid var(--honey-secondary);
    border-radius: 50px;
}

#delete_account_link {
    color: #e74c3c !important; /* Red for danger */
    font-size: 0.85rem;
    opacity: 0.8;
    background: none !important;
    box-shadow: none !important;
    border-left: none !important;
}
#delete_account_link::after { content: ''; } /* Remove arrow */

/* 7. Responsibles Section */
/* Grouping the contact info at the bottom */
#user_profile_page h3:nth-of-type(2) { /* "Responsibles" Header */
    text-align: center;
    margin-top: 30px;
    color: var(--text-muted);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Stylize the contact paragraphs */
#user_profile_page p {
    text-align: center;
    color: var(--text-muted);
}

.header_row {
    display: flex;
    justify-content: space-between; /* Pushes Title Left, Button Right */
    align-items: center; /* Vertically centers them */
    padding: 20px 20px 10px 20px;
    width: 100%;
}

.title_container {
    flex-grow: 1; /* Takes up available space */
}

.profile_container {
    flex-shrink: 0; /* Prevents button from squishing */
    margin-left: 15px;
}

/* --- BEAUTIFUL TITLE --- */
.app_title {
    font-family: 'Quicksand', sans-serif;
    font-size: 20px;
    font-weight: 800; /* Extra bold */
    color: var(--honey-dark); /* Dark Amber color */
    line-height: 1.1;
    text-align: left; /* Align text to left */
    margin: 0;
    
    /* Subtle text drop shadow for depth */
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 1); 
    
    /* Optional: Add a small decorative line under the title */
    position: relative;
    padding-bottom: 5px;
}

.app_title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--honey-primary);
    border-radius: 2px;
    margin-top: 5px;
}

/* Ensure Button looks good in this row */
#user_profile_button {
    margin: 0 !important; /* Remove default margins so it aligns perfectly */
    box-shadow: 0 4px 6px rgba(245, 127, 23, 0.2); /* Softer shadow */
}

/* --- CANDY CRUSH / HONEY EFFECTS --- */

/* 1. Make the specific buttons look like Gelly/Candy */
#am_citit_under_calendar_box_button, 
#start_weekly_test_button, 
#readed_today_button {
    /* Existing Honey Gradient */
    background: linear-gradient(135deg, var(--honey-primary) 0%, var(--honey-dark) 100%) !important;
    
    /* ADD: Glossy Reflection (The "Gelly" look) */
    box-shadow: 
        inset 0px 5px 15px rgba(255, 255, 255, 0.4), /* Top Shine */
        inset 0px -5px 15px rgba(160, 80, 0, 0.2),   /* Bottom Shadow */
        0 8px 15px rgba(245, 127, 23, 0.4);          /* Drop Shadow */
        
    border: none !important;
    position: relative;
    z-index: 1;
    overflow: visible !important; /* Allow particles to fly out */
}

/* 2. The Wobble Animation Class (Triggered by JS) */
.animate-jelly {
    animation: jelly-pop 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes jelly-pop {
    0% { transform: scale(1); }
    30% { transform: scale(1.25, 0.75); } /* Squash */
    40% { transform: scale(0.75, 1.25); } /* Stretch */
    50% { transform: scale(1.15, 0.85); } /* Squash less */
    65% { transform: scale(0.95, 1.05); } /* Stretch less */
    75% { transform: scale(1.05, 0.95); } /* Settle */
    100% { transform: scale(1); }
}

/* 3. The Honey Splash Particles */
.honey-particle {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    background-color: var(--honey-primary);
    border-radius: 50%;
    pointer-events: none; /* Click through them */
    z-index: 9999;
    box-shadow: inset -2px -2px 5px rgba(0,0,0,0.1); /* Little depth */
    opacity: 0;
}

/* =========================================
   CANDY EFFECTS (REUSABLE) - DOES NOT TOUCH COLORS
   ========================================= */

/* Apply glossy + depth WITHOUT overriding background-color */
.candy-effects {
  position: relative;
  z-index: 1;
  overflow: visible !important; /* allow particles to appear outside */
  transform-origin: center;
  transition: transform 0.15s ease, filter 0.15s ease;
  box-shadow:
    inset 0px 5px 15px rgba(255, 255, 255, 0.35), /* top shine */
    inset 0px -6px 16px rgba(0, 0, 0, 0.12),      /* bottom shade */
    0 10px 18px rgba(0, 0, 0, 0.12);              /* drop shadow */
}

/* Optional: make press feel nicer */
.candy-effects:active {
  transform: scale(0.98);
  filter: brightness(0.98);
}

/* Keep your existing .animate-jelly animation class as-is */
/* (no changes needed to @keyframes jelly-pop) */

/* Make quiz option buttons candy-like, but keep their colors */
.option.candy-effects {
  /* your option already has hover transform; this just adds glossy depth */
}

/* Ensure correct/wrong keep their colors and also get glossy depth */
.option_right.candy-effects,
.option_wrong.candy-effects {
  box-shadow:
    inset 0px 6px 18px rgba(255, 255, 255, 0.25),
    inset 0px -8px 18px rgba(0, 0, 0, 0.18),
    0 12px 22px rgba(0, 0, 0, 0.18);
}

/* Next button candy effect too (doesn't change its background) */
.next_question.candy-effects {
  overflow: visible !important;
}

/* Add jelly "shine" to quiz options WITHOUT changing their color */
.option.honeyish,
.option_right.honeyish,
.option_wrong.honeyish {
  position: relative;
  overflow: visible !important;
  box-shadow:
    inset 0px 5px 15px rgba(255, 255, 255, 0.35),
    inset 0px -6px 16px rgba(0, 0, 0, 0.10),
    0 10px 18px rgba(0,0,0,0.10) !important;
}
