/* Set up general styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5; /* Light background */
    color: #333;
    margin: 0;
}

/* Top bar with logo, search, and profile */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background-color: #f5f5f5; /* Light background */
}

.logo {
    width: 40px;
    height: 40px;
}

/* Opening Page Container */
.opening-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    max-width: 500px;
    margin: 0 auto;
}

/* Welcome Text Styling */
h1 {
    font-size: 2em;
    font-weight: bold;
    color: #1a73e8; /* Adjust this color as needed */
    margin: 10px 0;
}

.intro-text {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Button Group Styling */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 300px;
}

    .button-group .btn {
        width: 100%;
        font-size: 1.1em;
        padding: 10px;
        border-radius: 30px;
    }

.btn-primary {
    background-color: #1a73e8;
    color: white;
    border: none;
}

.btn-warning {
    background-color: #ff9800;
    color: white;
    border: none;
}

.guest-link {
    margin-top: 15px;
    font-size: 1em;
    color: #1a73e8;
    text-decoration: none;
}

    .guest-link:hover {
        text-decoration: underline;
    }


.search-bar {
    display: flex;
    align-items: center;
    background-color: #e0e0e0;
    border-radius: 20px;
    padding: 5px 10px;
    width: 100%; /* Full width */
    max-width: 300px;
}

    .search-bar input {
        background-color: transparent;
        border: none;
        outline: none;
        color: #333;
        width: 100%;
        padding-left: 5px;
    }

    .search-bar button {
        background: none;
        border: none;
        color: #333;
    }

.profile-pic {
    width: 40px; /* Adjust size as needed */
    height: 40px; /* Adjust size as needed */
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd; /* Optional border */
}


.dropdown-menu {
    min-width: 150px;
}
/* Icon Row */
.icon-row {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
}

.icon-circle {
    background-color: #ff6b6b;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
}

/* Chart Card Styling */
.chart-card {
    position: relative;
    background-color: #2a2a3b;
    border-radius: 8px;
    padding: 20px;
    margin: 10px 0;
    text-align: center;
    color: white;
    overflow: hidden; /* Prevent overflow of elements */
}

.chart-nav-edge {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20%; /* Interactive edge width */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white; /* Default color */
    background-color: rgba(0, 0, 0, 0.1); /* Subtle background to hint interactivity */
    transition: background-color 0.2s ease;
    z-index: 1;
}

    .chart-nav-edge:hover {
        background-color: rgba(255, 255, 255, 0.1); /* Lighten on hover */
    }

.chart-nav-left {
    left: 0; /* Left edge */
}

.chart-nav-right {
    right: 0; /* Right edge */
}

#currentWeekLabel {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
}


.chart-section {
    text-align: center;
}

.chart-tabs {
    color: #ff6b6b;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 15px;
}


/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 20px;
}

.card {
    background-color: #2c3e50; /* Dark blue */
    color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Main Container */
.main-container {
    padding: 20px;
}
/* Bottom Navigation Bar */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #3498db; /* Light blue */
    color: #ffffff;
    box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1);
}

    .bottom-nav a {
        color: #ffffff;
        font-size: 24px;
        text-decoration: none;
    }


/* Mobile-First Styles */
.content-grid {
    display: flex;
    flex-direction: column; /* Single column on small screens */
    gap: 1rem;
    padding: 1rem;
}

.content-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Media Query for Tablets */
@media (min-width: 768px) {
    .content-grid {
        flex-direction: row; /* Switch to grid layout */
        flex-wrap: wrap;
    }

    .content-card {
        width: calc(50% - 1rem); /* Two items per row */
    }
}

/* Media Query for Desktops */
@media (min-width: 1024px) {
    .content-card {
        width: calc(33.333% - 1rem); /* Three items per row */
    }
}

/* General Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

.page-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
}

.search-input, .filter-select {
    width: 100%;
    padding: 0.5rem;
    font-size: 1rem;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    padding: 0.7rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

    .btn-primary:hover {
        background-color: #0056b3;
    }

.btn-secondary {
    display: block;
    margin-top: 1rem;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

    .btn-secondary:hover {
        text-decoration: underline;
    }

/* Grid Layout */
.content-grid {
    display: flex;
    flex-direction: column; /* Mobile first: single column */
    gap: 1rem;
    padding: 1rem;
}

.content-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.content-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.content-body {
    margin-bottom: 1rem;
}

.meta-data {
    font-size: 0.9rem;
    color: #555;
}

.youtube-embed iframe {
    border: 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.btn-outline {
    border: 1px solid #007bff;
    color: #007bff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
}

    .btn-outline:hover {
        background-color: #007bff;
        color: white;
    }



/* Install Banner Container */
.install-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #1a73e8; /* Blue background */
    color: #fff;
    padding: 10px 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

    /* Show the banner */
    .install-banner.show {
        transform: translateY(0);
    }

/* Banner Text */
.install-banner-text {
    font-size: 1rem;
    flex: 1;
    margin-right: 15px;
}

/* Install and Dismiss Buttons */
.install-banner-buttons button {
    background-color: #fff;
    color: #1a73e8;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 0.9rem;
    cursor: pointer;
    margin-left: 10px;
    transition: background-color 0.3s ease;
}

    .install-banner-buttons button:hover {
        background-color: #f1f1f1;
    }

/* Multi-Step Form Styles */

/* Step container - hide all steps initially */
.step {
    display: none; /* Hidden by default */
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

    /* Show the active step */
    .step.active {
        display: block; /* Only the active step is shown */
    }

/* Progress Bar Container */
/* Progress Bar */
.progress {
    position: relative;
    background-color: #e9ecef; /* Light gray for the background */
    border-radius: 5px;
    height: 20px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    background-color: #007bff; /* Bootstrap blue */
    height: 100%;
    transition: width 0.3s ease;
}

.progress-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: bold;
    color: #fff; /* Ensure contrast */
    z-index: 1; /* Ensure the label appears on top */
}


/* Step Numbers or Markers */
.progress-step {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
    font-weight: bold;
    color: #6c757d; /* Light gray for markers */
}

    .progress-step.complete {
        color: #1a73e8; /* Highlight for completed steps */
    }

    .progress-step:first-child {
        left: 5%;
    }

    .progress-step:last-child {
        right: 5%;
    }

    .progress-step.middle {
        left: 50%;
        transform: translate(-50%, -50%);
    }

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

    .navigation-buttons .btn {
        width: 48%;
        padding: 10px;
        border-radius: 5px;
        text-align: center;
        cursor: pointer;
    }

    .navigation-buttons .btn-primary {
        background-color: #1a73e8;
        color: white;
        border: none;
    }

    .navigation-buttons .btn-secondary {
        background-color: #e0e0e0;
        color: #333;
        border: none;
    }

    /* Disabled Button Style */
    .navigation-buttons .btn[disabled] {
        background-color: #ccc;
        cursor: not-allowed;
    }

/* Accessibility Improvements */
.step label {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
}

.step input,
.step select {
    font-size: 1rem;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
}

.step .form-check-label {
    font-size: 1rem;
    color: #333;
}

.step .form-check-input {
    margin-right: 10px;
}

/* Mobile-Specific Adjustments */
@media (max-width: 576px) {
    .navigation-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .navigation-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

/* Success message styling (optional) */
.success-message {
    padding: 20px;
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
    border-radius: 5px;
    text-align: center;
    margin-top: 20px;
}

/* Toggle Yes/No Buttons */
.yes-no-toggle {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.toggle-input {
    display: none; /* Hide the radio inputs */
}

.toggle-label {
    display: inline-block;
    padding: 10px 20px;
    background-color: #e9ecef;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
}

.toggle-input:checked + .toggle-label {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* Radio Buttons as Styled Options */
.radio-group, .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.radio-input, .checkbox-input {
    display: none; /* Hide the native inputs */
}

.radio-label, .checkbox-label {
    display: inline-block;
    padding: 10px 20px;
    background-color: #e9ecef;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
}

.radio-input:checked + .radio-label,
.checkbox-input:checked + .checkbox-label {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.radio-label:focus, .checkbox-label:focus {
    outline: 2px dashed #007bff;
    outline-offset: 2px;
}
