:root {
    --primary-color: #059669;
    /* Emerald 600 - Vibrant Green */
    --secondary-color: #047857;
    /* Emerald 700 - Darker Green */
    --accent-color: #f59e0b;
    /* Amber */
    --bg-color: #ecfdf5;
    /* Light Mint Green Background */
    --card-bg: #ffffff;
    --text-color: #1f2937;
    /* Gray 800 */
    --text-muted: #6b7280;
    /* Gray 500 */
    --sidebar-width: 240px;
    --header-height: 55px;
    --border-radius: 10px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', 'Prompt', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 14px;
    /* Smaller font size requested */
    line-height: 1.5;
}

/* Layout */
.wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.05);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: var(--transition);
    border-right: 1px solid #d1fae5;
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--secondary-color);
    letter-spacing: 0.5px;
}

.sidebar-menu {
    list-style: none;
    padding: 15px 10px;
    margin: 0;
    flex-grow: 1;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    border-radius: 8px;
    font-weight: 500;
}

.sidebar-menu li a:hover {
    background-color: #d1fae5;
    color: var(--secondary-color);
    transform: translateX(5px);
}

.sidebar-menu li a.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px rgba(5, 150, 105, 0.2);
}

.sidebar-menu i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    transition: var(--transition);
    animation: fadeIn 0.5s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.top-header {
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 900;
}

.content-body {
    padding: 25px;
}

/* Cards & Tables */
.card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
    transition: var(--transition);
    border: 1px solid #f3f4f6;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 12px;
}

.card-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn:active {
    transform: scale(0.95);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 4px rgba(5, 150, 105, 0.2);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 4px 6px rgba(5, 150, 105, 0.3);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

.btn-danger {
    background-color: #ef4444;
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.2);
}

.btn-warning {
    background-color: var(--accent-color);
    color: white;
}

.btn-warning:hover {
    background-color: #d97706;
    box-shadow: 0 4px 6px rgba(245, 158, 11, 0.2);
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
}

.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    background: #e5e7eb;
    color: #374151;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

table th,
table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
}

table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    position: sticky;
    top: 0;
}

table tr:hover td {
    background-color: #f0fdf4;
    /* Light green hover on rows */
}

/* Form Elements */
.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    box-sizing: border-box;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .sidebar.active {
        transform: translateX(0);
    }
}

.row-blue {
    background-color: #e0f2fe !important;
    /* Light Sky Blue */
}

.row-orange {
    background-color: #ffedd5 !important;
    /* Light Orange/Amber */
}

.row-blue:hover td,
.row-orange:hover td {
    background-color: inherit !important;
    /* Keep color on hover or adjust */
    filter: brightness(0.95);
}