/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #eef2f5;
    margin: 0;
    display: flex;
}

/* Sidebar Styles */

.sidebar {
    width: 250px;
    background-color: #343a40;
    color: white;
    height: 100vh; /* Full height of the viewport */
    position: fixed; /* Keep the sidebar fixed */
    top: 0; /* Align it at the top */
    left: 0; /* Align it at the left */
    overflow-y: auto; /* Enable scrolling if content overflows */
    z-index: 1000; /* Ensure it sits above other content */
}


.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo img {
    width: 100px; /* Adjust size as needed */
}

nav {
    margin-top: 20px;
}

nav a {
    display: block;
    padding: 15px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin: 5px 0;
    transition: background-color 0.3s, transform 0.2s;
}

nav a:hover {
    background-color: #495057;
    transform: scale(1.05); /* Slightly increase size on hover */
}

/* Main Content Styles */
.main-content {
    flex-grow: 1;
    padding: 20px;
    margin-left: 250px; /* Add margin to prevent overlap with sidebar */
    background-color: #ffffff;
    min-height: 100vh; /* Ensure full height */
    transition: margin-left 0.3s; /* Smooth transition when sidebar is toggled */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

header {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn {
    background-color: #007BFF;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
    display: inline-block; /* Make it behave like a button */
}

.btn:hover {
    background-color: #0056b3;
}

/* Info Box Styles */
.card {
    border: none; /* Remove card border */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.info-box {
    height: 100px;
    display: flex; /* Use flexbox for layout */
    align-items: center; /* Center items vertically */
    padding: 20px; /* Internal padding */
    color: white; /* Text color */
    border-radius: 10px; /* Rounded corners */
    position: relative; /* For positioning icons */
}

.info-box-icon {
    font-size: 2rem; /* Increase icon size */
    margin-right: 15px; /* Space between icon and text */
}

.info-box-content {
    flex-grow: 1; /* Take available space */
}

.info-box-text {
    font-size: 1.2em; /* Larger font for the title */
}

.info-box-number {
    font-size: 20px; /* Larger font for the value */
    font-weight: bold; /* Make the number bold */
}


/* Table Styles */
.table-container {
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

th {
    background-color: #007BFF;
    color: white;
}

tbody tr {
    transition: background-color 0.3s;
}

tbody tr:hover {
    background-color: #f1f1f1;
}

/* Card Styles */
.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 20px;
}

.card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    flex: 1 1 calc(30% - 20px); /* Responsive cards */
    box-sizing: border-box;
    transition: transform 0.3s, box-shadow 0.3s;
}

/*.card:hover {*/
/*    transform: translateY(-5px);*/
/*    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);*/
/*}*/

.card img {
    max-width: 100%;
    border-radius: 8px;
}

.card h2 {
    margin: 10px 0;
    font-size: 1.5em;
    color: #333;
}

/* Button Styles */
.btn-edit {
    background-color: #28a745;
}

.btn-edit:hover {
    background-color: #218838;
}

.btn-delete {
    background-color: #dc3545;
}

.btn-delete:hover {
    background-color: #c82333;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative; /* Allow sidebar to scroll with content */
    }
    
    .main-content {
        margin-left: 0; /* No margin on small screens */
    }
}


