/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* Navbar */
#navbar {
    background-color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand h1 {
    margin: 0;
    font-size: 24px;
}

.w3-btn {
    background-color: #4CAF50;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Admin Container */
.admin-container {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: #4CAF50;
    color: white;
    padding: 20px;
}

.sidebar h2 {
    color: #fff;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    padding: 10px 0;
}

.sidebar ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

/* Main Content */
.main-content {
    flex-grow: 1;
    padding: 20px;
    background-color: #fff;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #ddd;
    padding: 8px;
}

th {
    background-color: #4CAF50;
    color: white;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #ddd;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    /* Stack sidebar and main content vertically */
    .admin-container {
        flex-direction: column;
    }

    /* Full width sidebar */
    .sidebar {
        width: 100%;
        padding: 15px;
    }

    /* Adjust text sizes */
    .sidebar ul li a {
        font-size: 18px;
    }

    /* Adjust table text size */
    th, td {
        font-size: 14px;
    }
}

@media screen and (max-width: 576px) {
    /* Adjust table text size on smaller screens */
    th, td {
        font-size: 12px;
        padding: 6px;
    }

    /* Hide sidebar if on a very small device */
    .sidebar {
        display: none;
    }

    /* Add padding to the main content */
    .main-content {
        padding: 10px;
    }

    /* Adjust navbar text size */
    .navbar-brand h1 {
        font-size: 18px;
    }
}

.log-form {
    width: 100%;
    max-width: 400px;
    background: #fff;
    padding: 20px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    box-sizing: border-box;
    background: linear-gradient(90deg, #FF8C42, #FFB03B, #FFCE6F);
}

.log-form h2 {
    color: black;
    font-size: 1.5em;
    margin-bottom: 20px;
    text-align: center;
}

.log-form input {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
}

.password-container {
    position: relative;
    width: 100%;
}

.password-container input[type="password"],
.password-container input[type="text"] {
    width: 100%;
    padding-right: 40px;
}

.password-container .toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2em;
    color: #ccc;
}

.log-form input[type="submit"] {
    background-color: #1fb5bf;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1em;
    padding: 12px;
    transition: 0.3s ease;
}

.log-form input[type="submit"]:hover {
    background-color: #23cad5;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .log-form {
      width: 90%;
    }
}

@media (max-width: 480px) {
    .log-form {
      width: 95%;
      padding: 15px;
    }

    .log-form h2 {
      font-size: 1.2em;
    }

    .log-form input {
      padding: 10px;
      font-size: 0.9em;
    }

    .log-form input[type="submit"] {
      font-size: 0.9em;
      padding: 10px;
    }
}

.active {
    background-color: #ddd; /* Highlight active link */
    font-weight: bold; /* Make it bold */
}
