/* General Styles */
body {
    font-family: "Arial", sans-serif;
    background: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Header */
header {
    background: #1976D2;
    color: white;
    padding: 15px;
    font-size: 24px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* Admin Container */
.admin-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 220px;
    background: #2C2F33;
    padding: 20px;
    min-height: 100vh;
}

.sidebar h2 {
    color: white;
    text-align: center;
    font-size: 18px;
}

.sidebar a {
    display: block;
    text-decoration: none;
    background: #7289DA;
    color: white;
    padding: 12px;
    margin: 10px 0;
    text-align: center;
    border-radius: 5px;
    transition: 0.3s;
    font-size: 16px;
    font-weight: bold;
}

.sidebar a:hover {
    background: #5B6EAE;
    transform: scale(1.05);
}

/* Dashboard Content */
.dashboard-content {
    flex: 1;
    padding: 20px;
}

/* Admin Overview Cards */
.admin-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: bold;
    width: 95%;
    margin: auto;
}

/* Dashboard Section Titles */
h2 {
    font-size: 22px;
    margin-top: 20px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

table th {
    background: #007BFF;
    color: white;
    padding: 12px;
    text-align: left;
}

table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

table tr:hover {
    background: #f1f1f1;
    cursor: pointer;
}

/* Action Buttons */
.btn {
    display: inline-block;
    padding: 10px 15px;
    color: white;
    border-radius: 5px;
    font-size: 14px;
    transition: 0.3s;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.edit-btn {
    background: #4CAF50;
}

.delete-btn {
    background: #E53935;
}

.btn:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* Dark Mode */
body.dark-theme {
    background: #1E1E1E;
    color: #E0E0E0;
}

.dark-theme header {
    background: #333;
}

.dark-theme table {
    background: #2C2F33;
    color: white;
}

.dark-theme .sidebar {
    background: #23272A;
}

.dark-theme .sidebar a {
    background: #5865F2;
}

.dark-theme .sidebar a:hover {
    background: #99AAB5;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .admin-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        text-align: center;
        padding: 15px;
    }

    .sidebar a {
        display: inline-block;
        width: 45%;
        margin: 5px;
    }

    .admin-info {
        flex-direction: column;
        text-align: center;
    }

    table {
        font-size: 14px;
    }
}

/* Login Page Styles */
.login-body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to right, #007BFF, #00C6FF);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.login-container {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    width: 350px;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container h1 {
    color: #007BFF;
    margin-bottom: 10px;
}

.login-subtext {
    color: #555;
    font-size: 14px;
    margin-bottom: 20px;
}

.login-form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.login-form label {
    text-align: left;
    font-weight: bold;
    margin-bottom: 5px;
}

.login-form input {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: 0.3s;
    width: 100%;
}

.login-form input:focus {
    border-color: #007BFF;
    box-shadow: 0px 0px 5px rgba(0, 123, 255, 0.5);
}

/* Password Field with Toggle Button */
.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-container input {
    width: 100%;
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    cursor: pointer;
    font-size: 16px;
    color: #555;
    transition: 0.3s;
}

.toggle-password:hover {
    color: #007BFF;
}

.login-btn {
    background: #007BFF;
    color: white;
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.login-btn:hover {
    background: #0056b3;
    transform: scale(1.05);
}

.error-message {
    color: red;
    font-size: 14px;
    background: #ffdddd;
    padding: 8px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.login-footer {
    margin-top: 15px;
    font-size: 14px;
}

.login-footer a {
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
}

.login-footer a:hover {
    text-decoration: underline;
}

.back-home {
    margin-top: 10px;
    font-size: 14px;
}

.back-home a {
    color: #7a0bc0;
    text-decoration: none;
    font-weight: bold;
}

.back-home a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media screen and (max-width: 400px) {
    .login-container {
        width: 90%;
    }
}
