/* style.css */

/* --- 1. CSS Variables for Theming --- */
:root {
    /* General */
    --bg-color: #f4f4f4;
    --text-color: #333;
    --secondary-text-color: #666;
    --border-color: #ddd;
    --box-shadow-light: rgba(0, 0, 0, 0.1);
    --box-shadow-medium: rgba(0, 0, 0, 0.05);

    /* Primary Accent (BGM Green) */
    --primary-color: #4CAF50;
    --primary-color-hover: #45a049;

    /* Secondary Accent (for tickets etc.) */
    --secondary-accent-color: #2196F3;

    /* Navigation */
    --nav-bg-color: #111;
    --nav-link-color: #818181;
    --nav-link-hover-color: #f1f1f1;
    --nav-link-hover-bg: #333;

    /* Forms */
    --input-border-color: #ddd;
    --input-bg-color: #fff;
    --input-text-color: #333;

    /* Modals/Cards */
    --card-bg-color: #fff;
    --card-border-color: #eee;
    --modal-bg-color: #fff;
    --modal-close-color: #999;
    --modal-close-hover-color: #333;

    /* Specific elements */
    --spinner-color: #ffffff; /* For primary buttons */
    --founder-border-color: gold;
    --founder-shadow-color: rgba(255, 215, 0, 0.7);

    /* Alert/Notification Banners (keep high contrast) */
    --verification-banner-bg: #fff3cd;
    --verification-banner-border: #ffeeba;
    --verification-banner-text: #856404;
    --verification-button-bg: #ffc107;
    --verification-button-color: #333;
    --verification-button-hover-bg: #e0a800;

    --notification-banner-bg: #e6f7ff; /* A subtle blue for notifications */
    --notification-banner-border: #91d5ff;
    --notification-banner-text: #004d80;
    --notification-button-bg: #1890ff;
    --notification-button-color: white;
    --notification-button-hover-bg: #40a9ff;

    --important-notice-bg: #ffebee;
    --important-notice-border: #ef9a9a;
    --important-notice-text: #d32f2f;
}

/* Dark Mode Overrides */
body.dark-mode {
    --bg-color: #1a1a1a;
    --text-color: #eee;
    --secondary-text-color: #bbb;
    --border-color: #444;
    --box-shadow-light: rgba(0, 0, 0, 0.5);
    --box-shadow-medium: rgba(0, 0, 0, 0.3);

    --nav-bg-color: #222;
    --nav-link-color: #ccc;
    --nav-link-hover-color: #fff;
    --nav-link-hover-bg: #444;

    --input-border-color: #555;
    --input-bg-color: #333;
    --input-text-color: #eee;

    --card-bg-color: #282828;
    --card-border-color: #444;
    --modal-bg-color: #282828;
    --modal-close-color: #bbb;
    --modal-close-hover-color: #eee;

    --spinner-color: #eee;
    --founder-border-color: #d4af37; /* Darker gold */
    --founder-shadow-color: rgba(212, 175, 55, 0.7);

    /* Scrollbar for Dark Mode */
    .modal-content::-webkit-scrollbar-track {
        background: #333;
    }
    .modal-content::-webkit-scrollbar-thumb {
        background: #666;
    }
    .modal-content::-webkit-scrollbar-thumb:hover {
        background: #888;
    }
}


/* --- 2. Apply Variables to Existing Styles --- */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition */
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    box-shadow: 0 2px 4px var(--box-shadow-light);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
}

/* --- HEADER LAYOUT FIXES START --- */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Spreads out header-left-items, header-center-content, and header-right-spacer */
    width: 100%;
}

.header-left-items {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between theme toggle and hamburger */
}

.header-center-content { /* Container for logo and title, ensures they stay grouped and centered */
    display: flex;
    align-items: center;
    justify-content: center; /* Centers logo and h1 within this container */
    flex-grow: 1; /* Allows this section to grow and push items to the sides */
}

.header-right-spacer { /* Acts as a spacer to perfectly center header-center-content */
    /* Estimate: (Theme Toggle Width + Hamburger Width + Gap) */
    /* Approx 24px (icon) + 30px (hamburger) + 15px (gap) = 69px. Let's use 70px for safety */
    width: 70px; /* Adjust this value based on the combined width of your theme toggle + hamburger + gap */
}

.header-center-content .logo { /* Target logo specifically within center group */
    height: 40px;
    margin-right: 15px;
}

.header-center-content h1 { /* Target h1 specifically within center group */
    margin: 0;
    font-size: 1.5em;
    /* text-align: center is handled by justify-content: center on .header-center-content */
}
/* --- HEADER LAYOUT FIXES END --- */


.hamburger-menu {
    width: 30px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    cursor: pointer;
    z-index: 101;
    position: relative;
}

.hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: white; /* Always white for contrast against header */
    transition: all 0.3s ease;
}

/* Side Navigation */
.side-nav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 200;
    top: 0;
    left: 0;
    background-color: var(--nav-bg-color);
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
    white-space: nowrap;
}

.side-nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.side-nav ul li a, .side-nav ul li button {
    padding: 12px 8px 12px 32px;
    text-decoration: none;
    font-size: 19px;
    color: var(--nav-link-color);
    display: block;
    transition: 0.3s;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.side-nav ul li a:hover, .side-nav ul li button:hover {
    color: var(--nav-link-hover-color);
    background-color: var(--nav-link-hover-bg);
}

/* Overlay for when side nav is open */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 199;
    display: none;
}

.content-area {
    padding: 20px;
    margin-top: 80px;
}

/* Forms and Inputs */
#auth-container, .page-section {
    background-color: var(--card-bg-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px var(--box-shadow-light);
    max-width: 800px;
    margin: 20px auto;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form label {
    font-weight: bold;
    margin-bottom: 2px;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="tel"],
form input[type="number"],
form textarea,
select {
    padding: 10px;
    border: 1px solid var(--input-border-color);
    border-radius: 4px;
    font-size: 1em;
    width: 100%;
    box-sizing: border-box;
    background-color: var(--input-bg-color);
    color: var(--input-text-color);
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

form button {
    background-color: var(--primary-color);
    color: var(--spinner-color); /* Button text color */
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

form button:hover {
    background-color: var(--primary-color-hover);
}

.error-message {
    color: red; /* Keep high contrast */
    font-size: 0.9em;
    margin-top: -10px;
}

.success-message {
    color: green; /* Keep high contrast */
    font-size: 0.9em;
    margin-top: -10px;
}

/* Utility classes */
.hidden {
    display: none !important;
}

.verification-banner {
    background-color: var(--verification-banner-bg);
    border: 1px solid var(--verification-banner-border);
    color: var(--verification-banner-text);
    padding: 10px 20px;
    margin: 20px auto;
    border-radius: 5px;
    text-align: center;
    max-width: 800px;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.verification-banner button {
    background-color: var(--verification-button-bg);
    color: var(--verification-button-color);
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    margin-left: 10px;
    transition: background-color 0.3s ease;
}

.verification-banner button:hover {
    background-color: var(--verification-button-hover-bg);
}

/* STYLES FOR ABOUT SECTION IMAGES AND SOCIALS */
.about-section-image {
    text-align: center;
    margin: 20px 0;
}

.founder-image, .bgm-sticker-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px var(--box-shadow-light);
    transition: box-shadow 0.3s ease;
}

.founder-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

.founder-image.golden-frame {
    border: 5px solid var(--founder-border-color);
    padding: 3px;
    box-shadow: 0 0 15px var(--founder-shadow-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.bgm-sticker-image {
    max-width: 300px;
}

.image-caption {
    font-style: italic;
    color: var(--secondary-text-color);
    margin-top: 5px;
    transition: color 0.3s ease;
}

.social-media-links {
    text-align: center;
    margin: 20px 0;
}

.social-media-links a {
    display: inline-block;
    font-size: 2.5em;
    color: var(--secondary-text-color); /* Default icon color, can be overridden by specific hover */
    margin: 0 15px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-media-links a:hover {
    transform: translateY(-3px);
}

.social-media-links .fa-youtube:hover {
    color: #FF0000; /* Keep specific brand colors */
}
.social-media-links .fa-facebook-f:hover {
    color: #1877F2; /* Keep specific brand colors */
}
.social-media-links .fa-tiktok:hover {
    color: #000; /* Keep specific brand colors */
}
body.dark-mode .social-media-links .fa-tiktok:hover {
    color: #fff; /* Adjust TikTok hover for dark mode if needed */
}


/* STYLES FOR COUNTRY DIRECTORS */
.country-director-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.director-card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--card-border-color);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px var(--box-shadow-medium);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.director-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid var(--primary-color);
    transition: border-color 0.3s ease;
}

.director-card h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.3em;
    transition: color 0.3s ease;
}

.director-card p {
    margin: 5px 0;
    font-size: 0.95em;
    color: var(--secondary-text-color);
    transition: color 0.3s ease;
}

/* STYLES FOR BUY TICKETS SECTION */
.conference-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.conference-flyer {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 10px var(--box-shadow-light);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    padding-bottom: 15px;
}

.conference-flyer:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px var(--box-shadow-light);
}

.conference-flyer img {
    max-width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
    transition: border-bottom-color 0.3s ease;
}

.conference-flyer h3 {
    margin: 0 10px 10px;
    color: var(--text-color);
    font-size: 1.2em;
    transition: color 0.3s ease;
}

.conference-flyer p {
    font-size: 0.9em;
    color: var(--secondary-text-color);
    margin: 0 10px 10px;
    transition: color 0.3s ease;
}

/* MODAL STYLES */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
}

.modal {
    background-color: var(--modal-bg-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--box-shadow-light);
    max-width: 90%;
    max-height: 90vh;
    overflow-y: hidden;

    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;

    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.modal-content {
    flex-grow: 1;
    overflow-y: auto;
}

.modal-content::-webkit-scrollbar {
    width: 12px;
}
.modal-content::-webkit-scrollbar-track {
    background: var(--bg-color); /* Use general background for track */
    border-radius: 10px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: var(--secondary-text-color); /* Use secondary text color for thumb */
    border-radius: 10px;
}
.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-color); /* Use primary text color for hover */
}

.modal-details-content {
    padding-top: 10px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 30px;
    cursor: pointer;
    color: var(--modal-close-color);
    transition: color 0.3s ease;
}

.close-button:hover {
    color: var(--modal-close-hover-color);
}

.modal h2 {
    color: var(--primary-color);
    margin-top: 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

.modal-details-content p {
    margin-bottom: 1em;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.modal-details-content ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 1em;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.modal-details-content h3 {
    color: var(--text-color);
    margin-top: 20px;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.ticket-options {
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    transition: border-top-color 0.3s ease;
}

.ticket-option-card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.ticket-option-card h4 {
    margin: 0;
    color: var(--secondary-accent-color);
    transition: color 0.3s ease;
}

.ticket-option-card p {
    margin: 0;
    font-size: 0.95em;
    color: var(--secondary-text-color);
    transition: color 0.3s ease;
}

.ticket-option-card ul {
    list-style-type: circle;
    margin-left: 20px;
    padding: 0;
    font-size: 0.9em;
    color: var(--secondary-text-color);
    transition: color 0.3s ease;
}

.ticket-option-card form {
    margin-top: 10px;
    gap: 10px;
    padding: 0;
    box-shadow: none;
}

.ticket-option-card button {
    width: auto;
    align-self: flex-start;
}

/* Styling for terms and conditions */
.terms-conditions {
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    font-size: 0.85em;
    color: var(--secondary-text-color);
    transition: color 0.3s ease, border-top-color 0.3s ease;
}
.terms-conditions h3 {
    color: var(--text-color);
    font-size: 1.1em;
    transition: color 0.3s ease;
}
.terms-conditions p, .terms-conditions li {
    margin-bottom: 1em;
    line-height: 1.5;
    color: var(--secondary-text-color); /* Ensure text color respects theme */
    transition: color 0.3s ease;
}
.terms-conditions ul {
    list-style-type: decimal;
    margin-left: 20px;
}

.important-notice {
    color: var(--important-notice-text);
    font-weight: bold;
    background-color: var(--important-notice-bg);
    border: 1px solid var(--important-notice-border);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* NEW: Styles for My Tickets / My Missionary Support list items */
.data-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.ticket-item-card, .donation-item-card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px var(--box-shadow-medium);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.ticket-item-card h4, .donation-item-card h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.ticket-item-card p, .donation-item-card p {
    margin: 5px 0;
    color: var(--secondary-text-color);
    transition: color 0.3s ease;
}

.ticket-item-card .status-completed, .donation-item-card .status-completed {
    color: green;
    font-weight: bold;
}
.ticket-item-card .status-pending, .donation-item-card .status-pending {
    color: orange;
    font-weight: bold;
}
.ticket-item-card .status-failed, .donation-item-card .status-failed {
    color: red;
    font-weight: bold;
}
.ticket-item-card .status-unknown, .donation-item-card .status-unknown {
    color: gray;
    font-weight: bold;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .header-center-content h1 { /* Target h1 within the new center group */
        font-size: 1.2em;
    }
    .hamburger-menu {
        /* margin-right is now handled by gap on .header-left-items */
        /* margin-right: 10px; removed */
    }
    .side-nav ul li a, .side-nav ul li button {
        font-size: 18px;
        padding: 8px 8px 8px 20px;
    }
    .content-area {
        padding: 15px;
    }
    #auth-container, .page-section, .verification-banner, .notification-banner {
        padding: 15px;
        margin: 15px auto;
    }
    .modal {
        padding: 20px;
    }
    .close-button {
        top: 10px;
        right: 15px;
        font-size: 25px;
    }
    .social-media-links a {
        font-size: 2em;
        margin: 0 10px;
    }
    .header-right-spacer {
        width: 70px; /* Maintain for tablets, or adjust if your left items change size */
    }
}

@media (max-width: 480px) {
    .header-center-content h1 { /* Hide H1 within the center group on small screens */
        display: none;
    }
    .header-center-content .logo { /* Center logo within its group if h1 is hidden */
        margin-left: auto;
        margin-right: auto;
    }
    .hamburger-menu {
        /* Position is handled by .header-left-items now, no need for absolute position here */
        /* position: absolute; left: 10px; top: 50%; transform: translateY(-50%); removed */
    }
    .side-nav {
        padding-top: 80px;
    }
    .founder-image {
        width: 150px;
        height: 150px;
    }
    .bgm-sticker-image {
        max-width: 200px;
    }
    .social-media-links a {
        font-size: 1.8em;
        margin: 0 8px;
    }
    /* Smaller buttons for notification banner on small screens */
    .notification-banner button {
        padding: 8px 12px;
        font-size: 0.9em;
    }
    .header-right-spacer {
        width: 0; /* On very small screens, you might let the header-left-items shrink or the logo take more priority */
        /* Or you could keep it at 70px to preserve some balance if desired */
    }
}

/* Spinner styling: Hidden by default, shown only when 'active' class is present */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--spinner-color); /* Uses theme-aware color */
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: none;
    vertical-align: middle;
    margin-left: 8px;
    flex-shrink: 0;
    transition: border-left-color 0.3s ease;
}

/* Show the spinner ONLY when it has the 'active' class */
.spinner.active {
    display: inline-block;
}

/* Keyframe animation for the spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Optional: Styling for disabled buttons to indicate active state */
button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Hide button text when spinner is active */
button .button-text.hidden {
    display: none;
}

/* --- 3. Styles for New Components --- */

/* Theme Toggle Button */
.theme-toggle-button {
    background: none;
    border: none;
    color: white; /* Always white against the header background */
    font-size: 1.5em;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.theme-toggle-button:hover {
    color: #eee;
}

/* Notification Acceptance Banner */
.notification-banner {
    background-color: var(--notification-banner-bg);
    border: 1px solid var(--notification-banner-border);
    color: var(--notification-banner-text);
    padding: 15px 20px;
    margin: 20px auto;
    border-radius: 8px;
    text-align: center;
    max-width: 800px;
    display: flex; /* Use flexbox for button alignment */
    flex-direction: column; /* Stack content and buttons */
    gap: 10px; /* Space between text and buttons */
    align-items: center; /* Center horizontally */
    box-shadow: 0 2px 4px var(--box-shadow-medium);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.notification-banner p {
    margin: 0;
    font-size: 1.1em;
    line-height: 1.4;
}

.notification-banner button {
    background-color: var(--notification-button-bg);
    color: var(--notification-button-color);
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
    min-width: 150px; /* Ensure buttons have a minimum width */
}

.notification-banner button:hover {
    background-color: var(--notification-button-hover-bg);
}

/* Style for the "No, Thanks" button */
.notification-banner #dismiss-notifications-prompt-button {
    background-color: transparent;
    color: var(--notification-banner-text);
    border: 1px solid var(--notification-banner-text);
    min-width: 150px;
}
.notification-banner #dismiss-notifications-prompt-button:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--notification-banner-text);
}

/* --- Install App Banner Styling --- */
.install-banner {
    position: sticky; /* Stays visible when scrolling, but won't overlap header */
    top: 0; /* Position it at the top of the available space */
    left: 0;
    width: 100%;
    background-color: var(--notification-banner-bg); /* Using existing notification banner background */
    color: var(--notification-banner-text); /* Using existing notification banner text color */
    padding: 10px 20px;
    display: flex;
    justify-content: center; /* Center content horizontally */
    align-items: center;
    gap: 15px; /* Space between text and buttons */
    z-index: 105; /* A bit higher than header (100) and side-nav (200, but only when open). Adjust as needed if modals/side-nav are open. */
    box-shadow: 0 2px 5px var(--box-shadow-light); /* Subtle shadow */
    font-size: 0.9em; /* Slightly smaller text */
    flex-wrap: wrap; /* Allow content to wrap on smaller screens */
    text-align: center; /* Center text within its own space */
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* Specific styling for the paragraph within the install banner */
.install-banner p {
    margin: 0; /* Remove default paragraph margin */
    flex-grow: 1; /* Allow the paragraph to take available space */
    min-width: 150px; /* Ensure text has enough space on smaller screens */
}

/* Styling for the Install App button within the banner */
.install-banner .install-button {
    background-color: var(--primary-color); /* Your primary BGM Green */
    color: var(--spinner-color); /* Which is white */
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    white-space: nowrap; /* Prevent button text from wrapping */
    box-shadow: 0 2px 4px var(--box-shadow-medium); /* Add a subtle shadow to the button */
}

.install-banner .install-button:hover {
    background-color: var(--primary-color-hover); /* Darker green on hover */
    box-shadow: 0 4px 8px var(--box-shadow-light); /* Slightly more prominent shadow on hover */
}

/* Styling for the dismiss button */
.install-banner .dismiss-button {
    background: none;
    border: none;
    color: var(--notification-banner-text); /* Matches banner text color */
    font-size: 1.5em; /* Make it a clear 'x' */
    cursor: pointer;
    line-height: 1; /* Adjust vertical alignment */
    padding: 0 5px;
    align-self: center; /* Center vertically */
    opacity: 0.7; /* Slightly faded */
    transition: color 0.3s ease, opacity 0.3s ease;
}

.install-banner .dismiss-button:hover {
    color: var(--text-color); /* Stronger color on hover */
    opacity: 1;
}

/* Responsive adjustments for the install banner */
@media (max-width: 480px) {
    .install-banner {
        flex-direction: column; /* Stack items vertically */
        padding: 10px 15px;
        gap: 8px;
    }
    .install-banner p {
        text-align: center;
        flex-grow: unset; /* Remove flex-grow in column layout */
    }
    .install-banner .install-button {
        width: 100%; /* Full width button in column layout */
        max-width: 200px; /* Limit max width for better appearance */
    }
    .install-banner .dismiss-button {
        position: absolute; /* Position dismiss button relative to banner */
        top: 5px;
        right: 10px;
    }
}

/* Old Install App Button (from inside page-about) - No longer needed here, but keeping for reference if you used this in other places */
/*
.install-button {
    display: block;
    width: fit-content;
    margin: 20px auto;
    background-color: var(--primary-color);
    color: var(--spinner-color);
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    box-shadow: 0 4px 8px var(--box-shadow-light);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.install-button:hover {
    background-color: var(--primary-color-hover);
    box-shadow: 0 6px 12px var(--box-shadow-light);
}
*/

/* Contact details in About page */
.contact-details-about-bgm {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    transition: border-top-color 0.3s ease;
}
.contact-details-about-bgm h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}
.contact-details-about-bgm p {
    margin-bottom: 5px;
    line-height: 1.5;
    color: var(--text-color);
    transition: color 0.3s ease;
}
.contact-details-about-bgm a {
    color: var(--secondary-accent-color);
    text-decoration: none;
}
.contact-details-about-bgm a:hover {
    text-decoration: underline;
}

/* Password Visibility Toggle Button Styling */
.password-input-container {
    position: relative;
    display: flex; /* Ensure button aligns with input */
    align-items: center;
}

.password-input-container input[type="password"],
.password-input-container input[type="text"] {
    padding-right: 60px; /* Make space for the button */
}

.password-input-container .toggle-password-visibility {
    position: absolute;
    right: 5px;
    background: none;
    border: none;
    color: var(--secondary-text-color); /* Match theme's secondary text */
    cursor: pointer;
    font-size: 0.9em;
    padding: 5px;
    border-radius: 3px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.password-input-container .toggle-password-visibility:hover {
    color: var(--text-color);
    background-color: rgba(0, 0, 0, 0.05); /* Subtle background on hover */
}
body.dark-mode .password-input-container .toggle-password-visibility:hover {
    background-color: rgba(255, 255, 255, 0.05);
}
