:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #f59e0b;
    --secondary-hover: #d97706;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --gray-color: #6b7280;
    --gray-light: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Base styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--dark-color);
    background-color: #f3f4f6;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-hover);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: var(--dark-color);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 10;
    transition: all 0.3s;
}

.sidebar-logo {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo img {
    width: 32px;
    height: 32px;
    margin-right: 0.75rem;
}

.sidebar-logo h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
}

.sidebar-menu {
    padding: 1rem 0;
}

.sidebar-menu-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.sidebar-menu-item:hover, .sidebar-menu-item.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-menu-item i {
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 20;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.25rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.sidebar-toggle:hover {
    background-color: var(--primary-hover);
}

/* Content */
.content {
    flex: 1;
    margin-left: 250px;
    padding: 1rem;
    transition: margin 0.3s;

}

/* Cards */
.card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.card-body {
    padding: 1rem;
}

.card-stats {
    text-align: center;
    padding: 1.5rem;
}

.card-stats h5 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--gray-color);
}

.card-stats h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0;
}

.card-primary {
    border-top: 4px solid var(--primary-color);
}

.card-primary h2 {
    color: var(--primary-color);
}

.card-success {
    border-top: 4px solid var(--success-color);
}

.card-success h2 {
    color: var(--success-color);
}

.card-secondary {
    border-top: 4px solid var(--secondary-color);
}

.card-secondary h2 {
    color: var(--secondary-color);
}

/* Tables */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    background-color: #f9fafb;
    font-weight: 600;
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--gray-light);
	min-width: 50px;
}

tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-light);
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background-color: #f9fafb;
}

/* Forms */
.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--dark-color);
    background-color: white;
    border: 1px solid var(--gray-light);
    border-radius: 0.25rem;
    transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.25);
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    padding: 10px 15px;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    transition: all 0.2s;

}

.btn-sm {
    padding: 3px 7px;
    font-size: 11px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    border-color: var(--secondary-hover);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
    border-color: var(--danger-color);
}

.btn-danger:hover {
    background-color: #dc2626;
    border-color: #dc2626;
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Login form */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f9fafb;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 0h100v100H0z" fill="none"/%3E%3Cpath d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4z" fill="%239C92AC" fill-opacity="0.1"/%3E%3C/svg%3E');
}

.login-form {
    width: 100%;
    max-width: 400px;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
}

.login-form .logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-form .logo img {
    height: 60px;
    width: auto;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

/* Pagination */
.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 0.25rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.page-item:first-child .page-link {
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.page-item:last-child .page-link {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

.page-link {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: var(--primary-color);
    background-color: white;
    border: 1px solid var(--gray-light);
}

.page-link:hover {
    z-index: 2;
    color: var(--primary-hover);
    text-decoration: none;
    background-color: #e9ecef;
    border-color: var(--gray-light);
}

.page-item.active .page-link {
    z-index: 3;
    color: white;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .content {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        display: block;
    }
} 

/* Layout fixes */
        html, body {
            overflow-x: hidden;
            max-width: 100%;
        }

        .layout {
            width: 100%;
            position: relative;
        }
        
        .content {
            width: calc(100% - 250px); /* Adjust width based on sidebar */
            box-sizing: border-box;
        }
        
        /* Additional styles */
        .page-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        
        .page-header h1 {
            margin: 0;
            font-size: 1.75rem;
            font-weight: 600;
        }
        
        .user-welcome {
            font-weight: 500;
        }
        
        .date-selector {
            margin-bottom: 1.5rem;
        }
        
        .date-selector form {
            display: flex;
            gap: 0.5rem;
        }
        
        .stats-row {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.5rem;
            margin-bottom: 1.5rem;
        }
        
        .card-stats {
            position: relative;
            overflow: hidden;
        }
        
        .stats-icon {
            position: absolute;
            right: 1.5rem;
            top: 1.5rem;
            font-size: 1.5rem;
            opacity: 0.2;
        }
        
        .tabs {
            margin-top: 2rem;
        }
        
        .tabs-header {
            display: flex;
            border-bottom: 1px solid var(--gray-light);
            margin-bottom: 1rem;
        }
        
        .tab-btn {
            padding: 0.75rem 1.5rem;
            background: none;
            border: none;
            border-bottom: 2px solid transparent;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .tab-btn.active {
            color: var(--primary-color);
            border-bottom-color: var(--primary-color);
        }
        
        .tab-content {
            display: none;
        }
        
        .tab-content.active {
            display: block;
        }
        
        .text-center {
            text-align: center;
        }
        
        .d-flex {
            display: flex;
        }
        
        #updates table tr.highlighted {
            transition: background-color 0.3s;
        }
        
        #updates table tr:hover {
            background-color: #f5f5f5;
        }
        
        @media (max-width: 991.98px) {
            .content {
                width: 100%;
                margin-left: 0;
                padding: 1rem;
            }

            .stats-row {
                grid-template-columns: 1fr;
            }
            
            .date-selector form {
                flex-wrap: wrap;
            }
            
            .tabs-header {
                overflow-x: auto;
            }
        }