/* mobile */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    background: #f4f4f4;
    height: 100vh;
    overflow-x: hidden;
}

.sidebar{
    position: absolute;
    height: 100vh;
    z-index: 999;
    display: flex;
    width: 240px;
    background: #2c3e50;
    color: white;
    flex-direction: column;
    padding: 0 20px 20px 20px;
    margin-left: -250px;
    transition: margin-left 0.3s ease-in-out;
}

.sidebar-active{
    margin-left: 0;
}

#close-icon {
    display: block;
    float: right;
    color:white;
}



#sidebar h2, #sidebar a {
    color: white;
    text-decoration: none;
    padding: 12px;
    margin: 6px 0;
    display: block;
    border-radius: 5px;
    transition: background 0.3s;
}

#sidebar #user-name{
    color: yellow;
}

#sidebar #focused-page{
    background: #34495e;
}

#sidebar a:hover {
    background: #34495e;
}

#sidebar a:active {
    background: none;
}



.mode-container {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.logout-btn {
    background: #e74c3c;
    width: 100%;
    padding: 12px;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: #c0392b;
}

.mode-container #about{
    display: flex;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    gap: 5%;

}



#hamburger {
    width: 30px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease-in-out;
    margin-left: 2%;

}

#hamburger:hover {
    cursor: pointer;
    background-color: rgb(222, 222, 222);
}

#hamburger span {
    height: 3px;
    display: block;
    background-color: rgb(0, 0, 0);
}

.search-container {
    height: auto;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    border: 1px solid rgb(193, 193, 193);
    max-width: 400px;
    transition: background-color 0.3s ease;
}

.search-container:focus-within {
    background-color: rgb(232, 232, 232);
}

.search-container img {
    width: 20px;
    height: 20px;
    filter: brightness(0);
    flex-shrink: 0;
}

.search-container input[type="search"] {
    width: 100%;
    font-size: 16px;
    background: transparent;
    border: none;
    padding: 0 0.5rem;
}

.search-container input[type="search"]:focus {
    outline: none;
}

.profile-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: yellow;
}

.section-name {
    width: 50%;
    height: auto;
    margin: 1rem 0;
    padding: 0 2rem;
}

/* Summary Cards */
.cards {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}



.card {
    background: white;
    height: 200px;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card h3 {
    margin-bottom: 10px;
    color: #333;
}


/* Table */
.table-container {
    overflow-x: auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

table,
th,
td {
    border: 1px solid #ddd;
}

th,
td {
    padding: 12px;
    text-align: left;
}

th {
    background: #f1f1f1;
}

@media (min-width: 1000px) {
    .sidebar{
        position: static;
    }

    .close-icon-container{
        display: none;
    }

    .header {
        gap: 0;
    }

    .cards {

        grid-template-columns: repeat(3, 20%);
    }

    .table-container {
        overflow-x: hidden;
    }

}