/* Global body settings for consistency */
body {
    background-image: url('/static/green.jpg'); /* Correct the path */
    background-size: cover;
    font-family: 'Poppins', Arial, sans-serif; 
    margin: 0;
    padding: 0;
    color: #fff;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Sidebar styles */
.sidebar {
    height: 100%;
    width: 250px;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background: linear-gradient(45deg, #333, #444); /* Match gradient from base.html */
    overflow-x: hidden;
    padding-top: 20px;
    box-shadow: 3px 0 10px rgba(0, 0, 0, 0.2);
    overflow-y: auto; /* Allow sidebar scrolling if content is long */
}

.sidebar h1 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
    color: #FFC107; /* Matches sidebar title color */
    letter-spacing: 1px; /* Slight spacing for a clean look */
}

.sidebar a {
    padding: 15px 20px;
    text-decoration: none;
    font-size: 16px;
    color: #FFF;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.sidebar a:hover {
    background-color: #575757; 
    color: #FFC107; /* On hover, match the color change from base.html */
}

.sidebar a i {
    margin-right: 10px;
    font-size: 18px;
}

.sub-menu {
    display: none;
    margin-left: 20px;
}

.sidebar a.active + .sub-menu {
    display: block;
}

/* Content area styling */
.content {
    margin-left: 250px;
    padding: 30px;
    flex-grow: 1;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.5); /* Match base.html background */
    color: #FFF;
    transition: margin-left 0.3s ease;
}

/* Table styling for consistency */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: rgba(255, 255, 255, 0.95); /* Match content box transparency */
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

th, td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
    color: #333;
}

th {
    background-color: #f4f4f4;
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Button styles consistent across the application */
.btn {
    font-weight: bold;
    color: #FFF;
    background-color: #333;
    border: 1px solid #555;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    display: inline-block;
    text-align: center;
    margin: 10px;
    transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
}

.btn:hover {
    color: #333;
    background-color: #FFC107;
    border-color: #FFC107;
}

/* Select2 dropdown styling */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: black !important;
}

.select2-container--default .select2-results__option {
    color: black !important;
    background-color: white !important;
}

.select2-container--default .select2-results__option--highlighted {
    background-color: #dcdcdc !important;
    color: black !important;
}

.select2-container--default .select2-selection--single {
    background-color: white !important;
    color: black !important;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}
