/* Sidebar Styling */
.sidebar {
    width: 250px;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #343a40;
    color: white;
    height: 100vh;
    overflow-y: auto;
}

.sidebar h3 {
    font-size: 1.5rem;
    font-weight: bold;
    padding: 15px;
    border-bottom: 1px solid #495057;
}

.sidebar .nav-link {
    font-size: 1rem;
    padding: 10px 20px;
    display: block;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.sidebar .nav-link:hover {
    background-color: #495057;
    transform: translateX(5px); /* Smooth hover effect */
}

/* Main Content */
main {
    margin-left: 250px; /* Matches sidebar width */
    padding: 20px;
}

/* Card Styling */
.card {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow */
    margin-bottom: 20px;
    background-color: #fff; /* Ensure a clean white background */
    overflow: hidden;
}

.card-header {
    font-size: 1.25rem;
    font-weight: bold;
    text-align: center;
    background-color: #007bff; /* Primary blue */
    color: white;
    padding: 10px;
    border-bottom: 2px solid #0056b3;
}

.card-body {
    padding: 15px;
}

/* Footer Styling */
footer {
    background-color: #212529;
    padding: 15px;
    text-align: center;
    color: #d9f3ff;
    border-top: 2px solid #d9f3ff;
}

footer a {
    color: #d9f3ff;
    margin: 0 5px;
    text-decoration: none;
}

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

/* Metric Card Styling */
.metric-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Table Styling */
.table-container {
    overflow-x: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    padding: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

thead {
    background-color: #343a40;
    color: white;
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
}

th:nth-child(3),
td:nth-child(3) {
    text-align: center;
}

/* List Group Styling */
.list-group {
    border-radius: 5px;
    padding: 0;
    margin: 0;
}

.list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 5px;
    background-color: #f8f9fa;
}

.list-group-item .badge {
    font-size: 0.9rem;
    background-color: #007bff;
    color: white;
    font-weight: bold;
    border-radius: 3px;
}

/* Buttons Styling */
.button, .btn {
    display: inline-block;
    font-weight: bold;
    padding: 10px 15px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

.button:hover, .btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px); /* Small elevation on hover */
}

.button.delete {
    background-color: #dc3545;
    color: white;
}

.button.delete:hover {
    background-color: #a71d2a;
}

/* Form Controls */
.form-control, .form-select {
    border-radius: 5px;
    border: 1px solid #87CEEB; /* Sky blue */
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* Light blue glow on focus */
}

/* Page Header */
.page-header {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 2px solid #ddd;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Sidebar Animations */
.sidebar .nav-link:hover {
    background-color: #495057;
    transform: translateX(5px);
}

/* Chart Canvas */
.card canvas {
    margin: 0 auto;
    display: block;
    max-height: 150px;
    max-width: 150px;
}

/* Hover Enhancements for Cards */
.card:hover {
    transform: translateY(-5px); /* Slight elevation */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Stronger shadow */
}
.navbar, .card-header {
    font-weight: bold;
}

.list-group-item.active {
    background-color: #007bff;
    color: white;
}

.card {
    border-radius: 8px;
}

.table th {
    background-color: #343a40;
    color: white;
}

body {
    background-color: #f8f9fa;
}
