:root {
    --primary: #1a73e8;
    --primary-hover: #1557b0;
    --secondary: #5f6368;
    --success: #34a853;
    --danger: #ea4335;
    --warning: #fbbc04;
    --light: #f8f9fa;
    --dark: #202124;
    --border: #e0e0e0;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #f5f5f5;
}


.login-container {
    max-width: 400px;
    margin: 80px auto;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    animation: fadeIn 0.3s ease;
}

.login-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-primary);
    font-size: 24px;
}

/* Dashboard Layout */
.dashboard {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    gap: 24px;
    padding: 24px;
    background-color: #f5f5f5;
}

/* Sidebar Styles */
.sidebar {
    background: white;
    border-radius: 12px;
    padding: 24px;
    height: calc(100vh - 48px);
    position: sticky;
    top: 24px;
    box-shadow: var(--shadow-md);
}

.sidebar h3 {
    color: var(--text-primary);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

/* Navigation Links */
.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: #f0f7ff;
    color: var(--primary);
}

.nav-link.active {
    background-color: #e8f0fe;
    color: var(--primary);
    font-weight: 500;
}

.nav-link i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}
.data-analysis {
  margin-bottom: 20px;
}

.data-analysis h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.data-analysis table {
  width: 100%;
  border-collapse: collapse;
}

.data-analysis th,
.data-analysis td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.data-analysis th {
  background-color: #f2f2f2;
}
/* Submenu Styles */
.nav-link.has-submenu {
    position: relative;
}

.nav-link.has-submenu::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.nav-link.has-submenu.active::after {
    transform: rotate(180deg);
}

.data-subcategories {
    display: none;
    padding-left: 20px;
    margin-top: 4px;
}

.data-subcategories.active {
    display: block;
}

.sub-nav-link {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.sub-nav-link:hover {
    background-color: #f0f7ff;
    color: var(--primary);
}

.sub-nav-link.active {
    background-color: #e8f0fe;
    color: var(--primary);
    font-weight: 500;
}

.sub-nav-link i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
}

/* Main Content */
.main-content {
    background: white;
    border-radius: 12px;
    padding: 32px;
    min-height: calc(100vh - 48px);
    box-shadow: var(--shadow-md);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}
/* Filter Controls Container */
.filters-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.filters-container .row {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Form Controls */
.filters-container .form-control {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 8px 12px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 14px;
}

.filters-container .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
    outline: none;
}

/* Filter Buttons and Dropdowns */
.filters-container select,
.filters-container input {
    width: 100%;
    min-width: 150px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .filters-container .row {
        flex-direction: column;
        gap: 10px;
    }
    
    .filters-container .col {
        width: 100%;
    }
}

/* Additional Styling for Badges */
.badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
}

.badge-pending {
    background-color: #ffc107;
    color: #212529;
}

.badge-approved {
    background-color: #28a745;
    color: white;
}

/* Export Button Styling */
.export-btn {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.export-btn:hover {
    background-color: #0056b3;
}

.export-btn i {
    margin-right: 5px;
}
.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,115,232,0.1);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-success {
    background-color: var(--success);
    color: white;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    padding: 32px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

.modal-content h3 {
    margin-bottom: 24px;
    color: var(--text-primary);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

/* Table Styles */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
}

.table th {
    background-color: #f8f9fa;
    padding: 16px;
    text-align: left;
    font-weight: 500;
    border-bottom: 2px solid var(--border);
    color: var(--text-secondary);
}

.table td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.table tr:hover td {
    background-color: #f8f9fa;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
}

.badge-pending {
    background-color: #fff4e5;
    color: #b76e00;
}

.badge-approved {
    background-color: #e6f4ea;
    color: #137333;
}

.badge-rejected {
    background-color: #fce8e6;
    color: #c5221f;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .dashboard {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
    }

    .main-content {
        margin-top: 24px;
    }
}

.data-analysis {
    margin-bottom: 20px;
}

.data-analysis table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-analysis th,
.data-analysis td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-analysis th {
    background-color: #f8f9fa;
    font-weight: 500;
}

.data-analysis tr:hover {
    background-color: #f8f9fa;
}

.data-analysis tr.table-info {
    background-color: #e8f4ff;
}

.filters-container {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.filters-container .row {
    display: flex;
    gap: 15px;
}

.filters-container .col {
    flex: 1;
}

@media (max-width: 768px) {
    .login-container {
        margin: 20px;
        padding: 24px;
    }

    .card-header {
        flex-direction: column;
        gap: 16px;
    }

    .modal-content {
        padding: 20px;
        margin: 20px;
    }

    .btn {
        width: 100%;
    }

    .table {
        display: block;
        overflow-x: auto;
    }
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.stat-item h4 {
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-size: 16px;
}

.stat-item p {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 500;
    margin: 0;
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}