/* ===== CSS VARIABLES ===== */
:root {
    --primary-color: #2c3e50;
    --primary-light: #27ae60;
    --secondary-color: #27ae60;
    --secondary-dark: #219a52;
    --success-color: #27ae60;
    --danger-color: #e53e3e;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --light-bg: #f8f9fa;
    --border-color: #e2e8f0;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --white: #ffffff;
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-primary);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 12px; /* Base font size reduced */
}

/* ===== SIDEBAR STYLES ===== */
.sidebar {
    width: 240px; /* Slightly reduced */
    background-color: var(--primary-color);
    color: var(--white);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.sidebar-logo {
    padding: 15px; /* Reduced */
    display: flex;
    align-items: center;
    gap: 8px; /* Reduced */
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo .logo-img {
    width: 32px; /* Reduced */
    height: 32px; /* Reduced */
    object-fit: contain;
}

.sidebar-logo .logo-text h3 {
    font-size: 0.9rem; /* Reduced */
    font-weight: 600;
    color: var(--white);
}

.sidebar-logo .logo-text p {
    font-size: 0.65rem; /* Reduced */
    opacity: 0.8;
    color: var(--white);
}

.sidebar-user {
    padding: 15px; /* Reduced */
    display: flex;
    align-items: center;
    gap: 8px; /* Reduced */
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.user-avatar {
    width: 36px; /* Reduced */
    height: 36px; /* Reduced */
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem; /* Reduced */
}

.user-info .user-name {
    font-weight: 600;
    font-size: 0.85rem; /* Reduced */
}

.user-info .user-role {
    font-size: 0.65rem; /* Reduced */
    opacity: 0.8;
}

.sidebar-menu {
    padding: 15px 0; /* Reduced */
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 10px 15px; /* Reduced */
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    gap: 8px; /* Reduced */
    font-size: 0.85rem; /* Added */
}

.menu-item:hover {
    background: rgba(255,255,255,0.1);
}

.menu-item.active {
    background: rgba(39, 174, 96, 0.2);
    border-left: 3px solid var(--primary-light);
}

.menu-item i {
    width: 18px; /* Reduced */
    text-align: center;
    font-size: 0.9rem; /* Added */
}

.menu-item .arrow {
    margin-left: auto;
    transition: transform 0.3s;
    font-size: 0.75rem; /* Added */
}

.menu-item.open .arrow {
    transform: rotate(90deg);
}

.dropdown-items {
    display: none;
    padding-left: 25px; /* Reduced */
}

.dropdown-items.show {
    display: block;
}

.sub-item {
    display: flex;
    align-items: center;
    padding: 8px 15px; /* Reduced */
    color: var(--white);
    text-decoration: none;
    font-size: 0.8rem; /* Reduced */
    gap: 8px; /* Reduced */
    transition: all 0.3s;
}

.sub-item:hover {
    background: rgba(255,255,255,0.1);
}

.sub-item.active {
    background: rgba(39, 174, 96, 0.2);
}

.sub-item i {
    width: 18px; /* Reduced */
    font-size: 0.8rem; /* Added */
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    margin-left: 240px; /* Match sidebar width */
    padding: 20px;
    min-height: 100vh;
    width: calc(100% - 240px);
}

/* ===== PAGE HEADER ===== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px; /* Reduced */
    padding: 15px 20px; /* Reduced */
    background: var(--white);
    border-radius: 8px; /* Slightly reduced */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.header-content h1 {
    font-size: 1.3rem; /* Reduced */
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px; /* Reduced */
}

.header-content p {
    color: var(--text-secondary);
    margin-top: 3px; /* Reduced */
    font-size: 0.85rem; /* Added */
}

.header-actions {
    display: flex;
    gap: 8px; /* Reduced */
}

/* ===== STATISTICS CARDS ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Reduced */
    gap: 15px; /* Reduced */
    margin-bottom: 25px; /* Reduced */
}

.stat-card {
    background: var(--white);
    border-radius: 8px; /* Slightly reduced */
    padding: 15px; /* Reduced */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 12px; /* Reduced */
    transition: all 0.3s;
}

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

.card-icon {
    width: 50px; /* Reduced */
    height: 50px; /* Reduced */
    border-radius: 8px; /* Slightly reduced */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem; /* Reduced */
}

.card-content {
    flex: 1;
}

.card-value {
    font-size: 1.5rem; /* Reduced */
    font-weight: bold;
    color: var(--text-primary);
    line-height: 1.2;
}

.card-label {
    color: var(--text-secondary);
    font-size: 0.8rem; /* Reduced */
}

.card-trend {
    font-size: 0.7rem; /* Reduced */
    color: var(--text-secondary);
    margin-top: 3px; /* Reduced */
}

.card-action {
    margin-top: 5px; /* Reduced */
}

.btn-link {
    color: var(--primary-light);
    text-decoration: none;
    font-size: 0.8rem; /* Reduced */
    display: flex;
    align-items: center;
    gap: 4px; /* Reduced */
}

.btn-link:hover {
    text-decoration: underline;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 6px 12px; /* Reduced */
    border: none;
    border-radius: 4px; /* Slightly reduced */
    cursor: pointer;
    font-size: 0.8rem; /* Reduced */
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 4px; /* Reduced */
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--light-bg);
    border-color: var(--primary-light);
}

.btn-primary {
    background: var(--primary-light);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-dark);
}

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

.btn-secondary {
    background: var(--text-secondary);
    color: var(--white);
}

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

.btn-sm {
    padding: 4px 8px; /* Added */
    font-size: 0.75rem; /* Added */
}

/* ===== ACTIVITY LIST ===== */
.activity-list {
    background: var(--white);
    border-radius: 8px; /* Slightly reduced */
    padding: 15px; /* Reduced */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px; /* Reduced */
    padding: 12px 0; /* Reduced */
    border-bottom: 1px solid var(--border-color);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 36px; /* Reduced */
    height: 36px; /* Reduced */
    background: var(--light-bg);
    border-radius: 6px; /* Slightly reduced */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    font-size: 0.9rem; /* Added */
}

.activity-details {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem; /* Added */
}

.activity-description {
    font-size: 0.75rem; /* Reduced */
    color: var(--text-secondary);
}

.activity-time {
    font-size: 0.7rem; /* Reduced */
    color: var(--text-secondary);
}

/* ===== QUICK ACTIONS ===== */
.quick-actions {
    margin-top: 25px; /* Reduced */
}

.quick-actions h3 {
    margin-bottom: 15px; /* Reduced */
    color: var(--text-primary);
    font-size: 1.1rem; /* Added */
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); /* Reduced */
    gap: 12px; /* Reduced */
}

.action-card {
    background: var(--white);
    border-radius: 6px; /* Slightly reduced */
    padding: 15px 10px; /* Reduced */
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: var(--primary-light);
    color: var(--white);
}

.action-card i {
    font-size: 1.5rem; /* Reduced */
    color: var(--primary-light);
    margin-bottom: 6px; /* Reduced */
    transition: color 0.3s;
}

.action-card:hover i {
    color: var(--white);
}

.action-card span {
    display: block;
    font-size: 0.75rem; /* Reduced */
    font-weight: 600;
}

/* ===== ALERTS ===== */
.alert {
    padding: 12px 15px; /* Reduced */
    margin-bottom: 15px; /* Reduced */
    border-radius: 6px; /* Slightly reduced */
    display: flex;
    align-items: center;
    gap: 8px; /* Reduced */
    position: relative;
    font-size: 0.85rem; /* Added */
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.alert-close {
    position: absolute;
    right: 12px; /* Reduced */
    top: 12px; /* Reduced */
    background: none;
    border: none;
    font-size: 1rem; /* Reduced */
    cursor: pointer;
    opacity: 0.5;
}

.alert-close:hover {
    opacity: 1;
}

/* ===== FOOTER ===== */
.footer {
    margin-top: 25px; /* Reduced */
    padding: 15px; /* Reduced */
    background: var(--white);
    border-radius: 8px; /* Slightly reduced */
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem; /* Reduced */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 30px; /* Reduced */
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 2.5rem; /* Reduced */
    margin-bottom: 12px; /* Reduced */
    opacity: 0.5;
}

.empty-state p {
    font-size: 0.9rem; /* Added */
}

/* ===== HEADER STYLES ===== */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 8px 15px; /* Reduced */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px; /* Reduced */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.3rem; /* Reduced */
    cursor: pointer;
}

.logo-title-container {
    display: flex;
    align-items: center;
    gap: 12px; /* Reduced */
}

.header-logo {
    height: 40px; /* Reduced */
    width: auto;
}

.title-container h1 {
    font-size: 1.1rem; /* Reduced */
    font-weight: 600;
    margin: 0;
    color: white;
}

.title-container h2 {
    font-size: 0.75rem; /* Reduced */
    font-weight: 400;
    margin: 0;
    opacity: 0.9;
    color: white;
}

/* Admin Profile Menu */
.admin-profile-container {
    position: relative;
}

.admin-profile-btn {
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    border-radius: 4px; /* Slightly reduced */
    padding: 6px 12px; /* Reduced */
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px; /* Reduced */
    font-size: 0.8rem; /* Reduced */
    transition: background 0.3s;
}

.admin-profile-btn:hover {
    background: rgba(255,255,255,0.2);
}

.admin-profile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 6px; /* Slightly reduced */
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    min-width: 200px; /* Reduced */
    display: none;
    z-index: 1001;
    margin-top: 8px; /* Reduced */
    overflow: hidden;
}

.admin-profile-menu.active {
    display: block;
}

.admin-menu-header {
    padding: 12px; /* Reduced */
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
}

.admin-menu-header .user-name {
    font-weight: 600;
    font-size: 0.9rem; /* Reduced */
}

.admin-menu-header .user-role {
    font-size: 0.7rem; /* Reduced */
    opacity: 0.9;
    margin-top: 2px; /* Reduced */
}

.admin-menu-item {
    display: flex;
    align-items: center;
    gap: 8px; /* Reduced */
    padding: 10px 12px; /* Reduced */
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.3s;
    font-size: 0.8rem; /* Added */
}

.admin-menu-item:hover {
    background: var(--light-bg);
    color: var(--primary-light);
}

.admin-menu-item i {
    width: 18px; /* Reduced */
    color: var(--primary-light);
    font-size: 0.85rem; /* Added */
}

.admin-menu-item.logout-item {
    color: var(--danger-color);
}

.admin-menu-item.logout-item i {
    color: var(--danger-color);
}

.admin-menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0; /* Reduced */
}

/* Sidebar adjustments for fixed header */
.sidebar {
    position: fixed;
    top: 60px; /* Match header height */
    left: 0;
    bottom: 0;
    width: 240px; /* Slightly reduced */
    background-color: var(--primary-color);
    color: white;
    overflow-y: auto;
    z-index: 900;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    height: calc(100vh - 60px);
}

.main-content {
    margin-left: 240px; /* Match sidebar width */
    margin-top: 60px; /* Match header height */
    padding: 20px;
    min-height: calc(100vh - 60px);
}

/* ===== TABLE STYLES ===== */
.table-responsive {
    overflow-x: auto;
    margin-top: 15px; /* Reduced */
}

.asset-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem; /* Reduced */
}

.asset-table th {
    background: var(--light-bg);
    padding: 10px 12px; /* Reduced */
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
}

.asset-table td {
    padding: 8px 12px; /* Reduced */
    border-bottom: 1px solid var(--border-color);
}

.asset-table tbody tr:hover {
    background: var(--light-bg);
}

.asset-code {
    font-family: monospace;
    font-weight: 600;
    color: var(--primary-color);
    background: var(--light-bg);
    padding: 2px 4px; /* Reduced */
    border-radius: 3px; /* Slightly reduced */
    font-size: 0.8rem; /* Added */
}

/* ===== STATUS BADGES ===== */
.status-badge {
    display: inline-block;
    padding: 3px 8px; /* Reduced */
    border-radius: 12px; /* Slightly reduced */
    font-size: 0.7rem; /* Reduced */
    font-weight: 600;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.status-warning {
    background: #fff3cd;
    color: #856404;
}

.status-success {
    background: #d4edda;
    color: #155724;
}

.status-info {
    background: #d1ecf1;
    color: #0c5460;
}

.status-secondary {
    background: #e2e3e5;
    color: #383d41;
}

/* ===== BADGE STYLES ===== */
.badge {
    display: inline-block;
    padding: 3px 6px; /* Reduced */
    border-radius: 3px; /* Slightly reduced */
    font-size: 0.7rem; /* Reduced */
    font-weight: 500;
}

.badge-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-primary {
    background: #e3f2fd;
    color: #1565c0;
}

.badge-info {
    background: #e0f2f1;
    color: #00695c;
}

.badge-warning {
    background: #fff3e0;
    color: #e65100;
}

/* ===== DOCUMENT BADGE ===== */
.document-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px; /* Reduced */
    padding: 3px 6px; /* Reduced */
    background: #e8f5e8;
    color: var(--success-color);
    border-radius: 10px; /* Slightly reduced */
    font-size: 0.7rem; /* Reduced */
    font-weight: 500;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px; /* Reduced */
    margin-top: 15px; /* Reduced */
    padding-top: 15px; /* Reduced */
    border-top: 1px solid var(--border-color);
}

.page-link {
    padding: 6px 10px; /* Reduced */
    border: 1px solid var(--border-color);
    border-radius: 4px; /* Slightly reduced */
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.8rem; /* Added */
}

.page-link:hover {
    background: var(--light-bg);
    border-color: var(--success-color);
}

.page-link.active {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.page-info {
    color: var(--text-secondary);
    font-size: 0.8rem; /* Reduced */
}

/* ===== FORM STYLES ===== */
.form-section {
    background: white;
    border-radius: 8px; /* Slightly reduced */
    padding: 20px; /* Reduced */
    margin-bottom: 20px; /* Reduced */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.form-section-inner {
    margin-bottom: 20px; /* Reduced */
    padding-bottom: 15px; /* Reduced */
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px; /* Reduced */
}

.section-title h2 {
    font-size: 1.2rem; /* Reduced */
    color: var(--text-primary);
}

.section-title h3 {
    font-size: 1rem; /* Reduced */
    color: var(--text-primary);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px; /* Reduced */
    margin-bottom: 15px; /* Reduced */
}

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

.form-group label {
    display: block;
    margin-bottom: 4px; /* Reduced */
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.8rem; /* Added */
}

.required::after {
    content: " *";
    color: var(--danger-color);
}

.form-control {
    width: 100%;
    padding: 8px 10px; /* Reduced */
    border: 1px solid var(--border-color);
    border-radius: 4px; /* Slightly reduced */
    font-size: 0.85rem; /* Reduced */
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--success-color);
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.1);
}

.form-control.error {
    border-color: var(--danger-color);
}

.error-text {
    color: var(--danger-color);
    font-size: 0.7rem; /* Reduced */
    margin-top: 3px; /* Reduced */
    display: block;
}

.form-hint {
    display: block;
    margin-top: 3px; /* Reduced */
    font-size: 0.7rem; /* Reduced */
    color: var(--text-light);
}

.form-actions {
    display: flex;
    gap: 10px; /* Reduced */
    margin-top: 20px; /* Reduced */
    padding-top: 15px; /* Reduced */
    border-top: 1px solid var(--border-color);
}

/* ===== FILTER SECTION ===== */
.filter-section {
    background: white;
    border-radius: 8px; /* Slightly reduced */
    margin-bottom: 20px; /* Reduced */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}

.filter-header {
    padding: 12px 15px; /* Reduced */
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-header h3 {
    margin: 0;
    font-size: 0.9rem; /* Reduced */
    display: flex;
    align-items: center;
    gap: 6px; /* Reduced */
}

.filter-body {
    padding: 15px; /* Reduced */
    border-bottom: 1px solid var(--border-color);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Reduced */
    gap: 12px; /* Reduced */
    margin-bottom: 12px; /* Reduced */
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-size: 0.75rem; /* Reduced */
    color: var(--text-secondary);
    margin-bottom: 3px; /* Reduced */
    font-weight: 600;
}

.filter-group input,
.filter-group select {
    padding: 6px 10px; /* Reduced */
    border: 1px solid var(--border-color);
    border-radius: 4px; /* Slightly reduced */
    font-size: 0.8rem; /* Reduced */
}

.filter-actions {
    display: flex;
    gap: 8px; /* Reduced */
    justify-content: flex-end;
}

/* ===== RECORD COUNT ===== */
.record-count {
    font-size: 0.8rem; /* Reduced */
    color: var(--text-secondary);
}

/* ===== ACTION BUTTONS ===== */
.action-buttons {
    display: flex;
    gap: 4px; /* Reduced */
}

.btn-icon {
    width: 28px; /* Reduced */
    height: 28px; /* Reduced */
    border-radius: 4px; /* Slightly reduced */
    border: none;
    background: var(--light-bg);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-size: 0.8rem; /* Added */
}

.btn-icon:hover {
    background: var(--success-color);
    color: white;
    transform: translateY(-1px);
}

.btn-icon.delete:hover {
    background: var(--danger-color);
}

.btn-icon.warning:hover {
    background: var(--warning-color);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 240px;
        z-index: 1000;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 950;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
}

@media (max-width: 768px) {
    .title-container h1 {
        font-size: 0.9rem; /* Reduced */
        margin-left: 35px; /* Reduced */
    }
    
    .title-container h2 {
        font-size: 0.7rem; /* Reduced */
        margin-left: 35px; /* Reduced */
    }
    
    .admin-profile-btn span {
        display: none;
    }
    
    .admin-profile-btn {
        padding: 6px; /* Reduced */
        width: 36px; /* Reduced */
        justify-content: center;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .action-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .page-header {
        flex-direction: column;
        gap: 8px; /* Reduced */
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .action-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== STATISTICS CARDS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: var(--white);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

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

.stat-card .card-icon {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-card .card-content {
    flex: 1;
}

.stat-card .card-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 4px;
}

.stat-card .card-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .card-trend {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

.stat-card .card-action {
    margin-top: 8px;
}

/* Card icon background colors - matching dashboard */
.card-icon.total {
    background: #e74c3c;
}

.card-icon.weapons {
    background: #e74c3c;
}

.card-icon.ammo {
    background: #f39c12;
}

.card-icon.land {
    background: #27ae60;
}

.card-icon.buildings {
    background: #3498db;
}

.card-icon.rented {
    background: #e67e22;
}

.card-icon.projects {
    background: #9b59b6;
}

.card-icon.movable {
    background: #1abc9c;
}

.card-icon.ict {
    background: #34495e;
}

.card-icon.vehicles {
    background: #e67e22;
}

.card-icon.users {
    background: #2c3e50;
}

.card-icon.alerts {
    background: #e74c3c;
}

.card-icon.developed {
    background: #27ae60;
}

.card-icon.undeveloped {
    background: #f39c12;
}

.card-icon.litigation {
    background: #e74c3c;
}

.card-icon.area {
    background: #3498db;
}