/* General Styling */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Sidebar */
.sidebar {
    height: 100%;
    width: 250px;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #4CAF50;
    padding-top: 70px;
    padding-left: 20px;
    color: white;
    z-index: 1000;
    transition: 0.3s;
}

    .sidebar .logo {
        width: 40px;
        height: auto;
        margin-bottom: 30px;
    }

    .sidebar .menu {
        display: flex;
        flex-direction: column;
    }

        .sidebar .menu a {
            color: white;
            padding: 12px 20px;
            text-decoration: none;
            font-size: 1rem;
            font-weight: 500;
            border-bottom: 1px solid #ffffff;
            transition: background-color 0.3s;
        }

            .sidebar .menu a:hover {
                background-color: #45a049;
            }

.menu-toggle {
    display: none;
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 1001;
}

/* Main content to shift to the right */
.main-content {
    margin-left: 260px;
    padding: 60px 20px 20px 20px;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

    table th, table td {
        padding: 12px;
        text-align: left;
        border-bottom: 1px solid #ddd;
    }

    table th {
        background-color: #f2f2f2;
        font-weight: 600;
    }

/* Popup styling */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.popup-inner {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
}

.close-btn {
    color: #aaa;
    font-size: 30px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

    .close-btn:hover {
        color: black;
    }

/* Responsive Styling */
@media screen and (max-width: 768px) {
    .sidebar {
        width: 0;
        overflow-x: hidden;
        transition: 0.3s;
    }

    .menu-toggle {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

    .sidebar.open {
        width: 250px;
    }

    .sidebar .logo {
        width: 30px;
    }
}
