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

/* Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #222;
    color: white;
    padding: 10px 20px;
}

.top-bar .user-menu a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #222;
    color: white;
    text-align: center;
    padding: 10px;
}


body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.wrapper {
    display: flex;
}
.sidebar {
    width: 250px;
    height: 100vh;
    background: #343a40;
    color: white;
    position: fixed;
    left: 0;
    top: 0;
    padding: 20px;
    transition: transform 0.3s ease-in-out;
}
.sidebar a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 5px;
}
.sidebar a:hover {
    background: #495057;
}
.sidebar .close-btn {
    display: none;
    font-size: 20px;
    cursor: pointer;
    text-align: right;
}
.content {
    flex: 1;
    margin-left: 250px;
    padding: 20px;
}
.menu-btn {
    display: none;
    font-size: 25px;
    cursor: pointer;
    padding: 10px;
    background: #343a40;
    color: white;
    border: none;
    position: fixed;
    left: 10px;
    top: 10px;
    z-index: 1000;
}
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 80%;
        position: fixed;
        height: 100vh;
        z-index: 1000;
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .menu-btn {
        display: block;
    }
    .sidebar .close-btn {
        display: block;
        text-align: right;
    }
    .content {
        margin-left: 0;
    }
}

/* Styles for action buttons */
.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: black;
}
.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}
.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}


/* Dashboard Cards */
.dashboard-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    width: 200px;
    text-align: center;
}

.card h3 {
    margin: 0;
    font-size: 18px;
}

.card p {
    font-size: 24px;
    font-weight: bold;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin-top: 20px;
}

table th, table td {
    padding: 5px;
    border: 1px solid #ddd;
    text-align: left;
}

table th {
    background: #333;
    color: white;
}

/* Login Form */
.login-container {
    width: 300px;
    margin: 100px auto;
    padding: 20px;
    background: white;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-container h2 {
    margin-bottom: 20px;
}

.login-container input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
}

.login-container button {
    width: 100%;
    padding: 10px;
    background: #333;
    color: white;
    border: none;
    cursor: pointer;
}

.login-container .error {
    color: red;
    font-size: 14px;
}

/* Registration Form */
.register-container {
    width: 350px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.register-container h2 {
    margin-bottom: 20px;
}

.register-container input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
}

.register-container button {
    width: 100%;
    padding: 10px;
    background: #333;
    color: white;
    border: none;
    cursor: pointer;
}

.register-container .error {
    color: red;
    font-size: 14px;
}

.register-container .success {
    color: green;
    font-size: 14px;
}
/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f6f9;
}

.main-content {
    padding-top: 30px;
}

/* Card Styles */
.card {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-header {
    font-size: 1.25rem;
}

/* Button Styles */
.btn {
    border-radius: 25px;
    padding: 10px 20px;
}

/* Form Styles */
.form-label {
    font-weight: bold;
    font-size: 1rem;
}

input[type="number"] {
    font-size: 1rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .card-body {
        padding: 20px;
    }
}
/* Make sure main content respects sidebar */
.content-with-sidebar {
    margin-left: 250px; /* Adjust to match your sidebar width */
    padding: 20px;
}

@media (max-width: 768px) {
    .content-with-sidebar {
        margin-left: 0;
        padding: 10px;
    }
}
.alert {
    padding: 10px 15px;
    margin: 15px 0;
    border-radius: 6px;
    font-weight: 500;
}

.alert.error {
    background-color: #ffe5e5;
    color: #b30000;
    border: 1px solid #ffcccc;
}

.alert.success {
    background-color: #e6ffea;
    color: #007a2f;
    border: 1px solid #b3ffcc;
}

.btn-resend {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.btn-resend:hover {
    background-color: #0056b3;
}
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1rem;
}

.card p {
    font-size: 2rem;
    font-weight: bold;
    color: #1d72b8;
}

.section-heading {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.quick-links a {
    display: inline-block;
    margin: 0.5rem;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}

.quick-links .btn {
    color: white;
}

.primary { background-color: #1d72b8; }
.secondary { background-color: #28a745; }
.warning { background-color: #ffc107; color: black; }
.info { background-color: #17a2b8; }

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: #fff;
    padding: 20px;
    border-left: 5px solid #007bff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.card p {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
}

.quick-actions h2 {
    margin-bottom: 15px;
}

.button-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 20px;
    background-color: #28a745;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.btn:hover {
    background-color: #218838;
}
