* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* General Body Styling */
body {
    background: #034486;
    /* Solid dark blue background for the entire page */
    color: #333;
    margin: 0;
    padding: 0;
}

/* Landing Page */
.landing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(135deg, #034486 0%, #00afed 100%);
    color: #fff;
    text-align: center;
    padding: 20px;
}

.logo {
    width: 150px;
    margin-bottom: 20px;
}

.landing-container h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.landing-container p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.get-started-btn {
    background: #034486;
    color: #fff;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background 0.3s;
}

.get-started-btn:hover {
    background: #00afed;
}

/* PWA Header */
.pwa-header {
    background: linear-gradient(135deg, #00afed, #034486);
    color: #fff;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    position: relative; /* needed for absolute positioning of back button */
}

.pwa-header h2 {
    font-size: 1.5rem;
    margin: 0;
    flex: 1;
    text-align: center;
}

.back-btn {
    position: absolute; /* position back button separately */
    left: 20px;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
}

.view-toggle button {
    background: #00afed;
    border: none;
    padding: 5px 10px;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    margin-left: 5px;
}

.view-toggle button.active {
    background: #fff;
    color: #034486;
}

/* Main Content */
.pwa-main {
    padding: 20px;
}

/* Sections/Subsections Cards */
#sections-container,
#subsections-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.section-card,
.subsection-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    text-decoration: none;
    color: #034486;
    transition: transform 0.3s;
}

.section-card:hover,
.subsection-card:hover {
    transform: translateY(-5px);
}

.section-card h3,
.subsection-card h3 {
    padding: 20px;
    font-size: 1.2rem;
}

/* Grid View */
.grid-view .section-card,
.grid-view .subsection-card {
    flex: 1 1 calc(50% - 15px);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* List View */
.list-view .section-card,
.list-view .subsection-card {
    flex: 1 1 100%;
    padding: 15px;
}

/* Users Container */
#users-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* User Card (List View) */
.list-view .user-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #034486;
    border: solid 1px #034486;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.list-view .user-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.list-view .user-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.list-view .user-card h3 {
    font-size: 1.1rem;
    margin: 0;
    color: #034486;
}

/* Responsive Design */
@media (max-width: 480px) {
    .list-view .user-card {
        padding: 10px;
    }

    .list-view .user-icon {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }

    .list-view .user-card h3 {
        font-size: 1rem;
    }
}

/* Update the existing styles for the profile page */

/* Profile Main */
.profile-main {
    padding: 20px;
    background: #E6ECF0;
    /* Light grayish-blue background */
    min-height: calc(100vh - 60px);
    /* Adjust for header height */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Profile Header */
.profile-header {
    text-align: center;
    margin-bottom: 20px;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.profile-header h1 {
    font-size: 1.8rem;
    color: #034486;
    margin: 0;
}

/* Profile Details */
.profile-details {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.detail-value {
    font-size: 1rem;
    color: #034486;
    font-weight: 600;
}

/* Availability Days */
.availability {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.day-indicator {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    color: #fff;
}

.day-indicator.available {
    background: #28a745;
    /* Green for available */
}

.day-indicator.unavailable {
    background: #dc3545;
    /* Red for unavailable */
}

/* Responsive Design */
@media (max-width: 480px) {
    .profile-pic {
        width: 100px;
        height: 100px;
    }

    .profile-header h1 {
        font-size: 1.5rem;
    }

    .profile-details {
        padding: 15px;
    }

    .detail-label,
    .detail-value {
        font-size: 0.9rem;
    }

    .day-indicator {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}





/* Home Page */
.home-container {
    min-height: 100vh;
    background: rgb(0, 0, 0);
    /* Ensure the container matches the body background */
}

/* Header with Background Image */
.home-header {
    position: relative;
    height: 200px;
    width: 100%;
    /* Ensure full width */
    overflow: hidden;
}

.home-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensure the image covers the full width */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 3), rgba(255, 255, 255, 0.1));
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.time-date {
    margin-top: 100px;
    /* Add margin to push date and time further down */
}


.time-date h1 {
    text-align: right;
    color: #fff;
    margin: 0;
    font-size: 400px;
}

.time-date h4 {
    text-align: right;
    color: #fff;
    margin: 0;
}


/* Cards Section */
.home-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    /* Match the body background */
}

.home-card {
    position: relative;
    flex: 1 1 calc(50% - 15px);
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.4;
    z-index: 1;
}

.card-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    z-index: 2;
}

.home-card h3 {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 1.2rem;
    z-index: 2;
}

/* Responsive Design (Updated) */
@media (max-width: 768px) {
    .home-card {
        flex: 1 1 calc(50% - 15px);
    }

    .overlay h1 {
        font-size: 1.5rem;
    }

    .time-date p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .home-card {
        flex: 1 1 calc(50% - 15px);
    }

    .overlay h1 {
        font-size: 1.2rem;
    }

    .time-date p {
        font-size: 0.8rem;
    }

    .home-card h3 {
        font-size: 1rem;
    }
}














/* Update the existing styles for Sections/Subsections */

/* PWA Main Content */
.pwa-main {
    padding: 20px;
    background: #ffffff;
    /* Light grayish-blue background */
    min-height: calc(100vh - 60px);
    /* Adjust for header height */
}

/* View Toggle */
/* View Toggle */
.view-toggle {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.view-toggle button {

    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
    margin-left: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}



.toggle-icon {
    width: 24px;
    /* Adjust size as needed */
    height: 24px;
    object-fit: contain;
}


/* Sections/Subsections Cards */
#sections-container,
#subsections-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.section-card,
.subsection-card {
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Grid View */
.grid-view .section-card,
.grid-view .subsection-card {
    flex: 1 1 calc(50% - 10px);
    /* Slightly reduce width by adjusting the gap calculation */
    background: linear-gradient(135deg, #034486 0%, #00afed 100%);
    /* Unchanged gradient */
    border-radius: 12px;
    padding: 15px;
    /* Reduced padding to decrease height (was 20px) */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.grid-view .section-card:hover,
.grid-view .subsection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.grid-view .icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;

}

.grid-view .section-card:hover .icon-wrapper,
.grid-view .subsection-card:hover .icon-wrapper {
    background: rgba(255, 255, 255, 0.3);
}

.grid-view .section-icon,
.grid-view .subsection-icon {
    width: 60px;
    /* Reduced size (was 50px) */
    height: 60px;
    /* Reduced size (was 50px) */
}

.grid-view .section-card h3,
.grid-view .subsection-card h3 {
    font-size: 1rem;
    /* Reduced font size (was 1.2rem) */
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#grid-view-btn {
    margin-right: 8px;
}









/* List View (Unchanged) */
.list-view .section-card,
.list-view .subsection-card {
    flex: 1 1 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 15px;
    gap: 15px;
    background: linear-gradient(135deg, #034486 0%, #00afed 100%);
    /* Unchanged gradient */
}

.list-view .section-icon,
.list-view .subsection-icon {
    width: 40px;
    height: 40px;
}

.list-view .section-card h3,
.list-view .subsection-card h3 {
    font-size: 1.1rem;
    padding: 0;
}




/* Responsive Design */
@media (max-width: 768px) {

    .grid-view .section-card,
    .grid-view .subsection-card {
        flex: 1 1 calc(50% - 10px);
        /* Ensure two cards per row in mobile view */
    }
}

@media (max-width: 480px) {

    .grid-view .section-card,
    .grid-view .subsection-card {
        flex: 1 1 calc(50% - 10px);
        /* Two cards per row */
    }

    .grid-view .icon-wrapper {
        width: 50px;
        /* Further reduced for smaller screens (was 60px) */
        height: 50px;
        /* Further reduced for smaller screens (was 60px) */
        padding: 8px;
        /* Further reduced padding (was 12px) */
        align-items: center;
        justify-content: center;
        display: flex;
    }

    .grid-view .section-icon,
    .grid-view .subsection-icon {
        width: 50px;
        /* Further reduced size (was 40px) */
        height: 50px;
        /* Further reduced size (was 40px) */
    }

    .grid-view .section-card h3,
    .grid-view .subsection-card h3 {
        font-size: 0.9rem;
        /* Further reduced font size (was 1rem) */
    }
}















/* Users List */
.users-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px;
}

.user-list-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #034486;
    border: solid 1px #034486;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.user-list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.user-list-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-info h3 {
    font-size: 1.1rem;
    margin: 0;
    color: #034486;
}

.user-info p {
    font-size: 0.9rem;
    color: #666;
    margin: 2px 0 0 0;
}

/* Search Icon */
.search-icon {
    background: none;
    border: none;
    padding: 0;
    align-items: right;
    cursor: pointer;
}

.search-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Search Form */
#search-form {
    padding: 10px;
}

#search-form form {
    display: flex;
    gap: 10px;
}

#search-form input[type="text"] {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

#search-form button {
    padding: 8px 16px;
    background: #034486;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

#search-form button:hover {
    background: #023a6d;
}

/* Responsive Design */
@media (max-width: 480px) {
    .user-list-img {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }

    .user-info h3 {
        font-size: 1rem;
    }

    .user-info p {
        font-size: 0.8rem;
    }

    .search-icon-img {
        width: 20px;
        height: 20px;
    }

    #search-form input[type="text"] {
        font-size: 0.9rem;
    }

    #search-form button {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
}