/* ===== 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: 11px; /* Reduced from 12px */
}

/* ===== SIDEBAR STYLES ===== */
.sidebar {
    width: 240px;
    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;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

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

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

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

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

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

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

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

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

.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;
    text-align: center;
    font-size: 0.8rem; /* Reduced from 0.9rem */
}

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

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

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

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

.sub-item {
    display: flex;
    align-items: center;
    padding: 6px 15px; /* Reduced from 8px */
    color: var(--white);
    text-decoration: none;
    font-size: 0.7rem; /* Reduced from 0.8rem */
    gap: 8px;
    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;
    font-size: 0.7rem; /* Reduced from 0.8rem */
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    margin-left: 240px;
    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;
    padding: 12px 18px; /* Reduced from 15px 20px */
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

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

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

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

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

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

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

.card-content {
    flex: 1;
}

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

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

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

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

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

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

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

.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: 3px 6px; /* Reduced from 4px 8px */
    font-size: 0.65rem; /* Reduced from 0.75rem */
}

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

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

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

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

.activity-details {
    flex: 1;
}

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

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

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

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

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

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

.action-card {
    background: var(--white);
    border-radius: 6px;
    padding: 12px 8px; /* Reduced from 15px 10px */
    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.3rem; /* Reduced from 1.5rem */
    color: var(--primary-light);
    margin-bottom: 5px; /* Reduced from 6px */
    transition: color 0.3s;
}

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

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

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

.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: 10px; /* Reduced from 12px */
    top: 10px; /* Reduced from 12px */
    background: none;
    border: none;
    font-size: 0.9rem; /* Reduced from 1rem */
    cursor: pointer;
    opacity: 0.5;
}

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

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

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

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

.empty-state p {
    font-size: 0.8rem; /* Reduced from 0.9rem */
}

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

.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.1rem; /* Reduced from 1.3rem */
    cursor: pointer;
}

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

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

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

.title-container h2 {
    font-size: 0.65rem; /* Reduced from 0.75rem */
    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;
    padding: 5px 10px; /* Reduced from 6px 12px */
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px; /* Reduced from 6px */
    font-size: 0.7rem; /* Reduced from 0.8rem */
    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;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    min-width: 180px; /* Reduced from 200px */
    display: none;
    z-index: 1001;
    margin-top: 8px;
    overflow: hidden;
}

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

.admin-menu-header {
    padding: 10px; /* Reduced from 12px */
    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.8rem; /* Reduced from 0.9rem */
}

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

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

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

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

.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: 3px 0; /* Reduced from 4px */
}

/* Sidebar adjustments for fixed header */
.sidebar {
    position: fixed;
    top: 55px; /* Match header height */
    left: 0;
    bottom: 0;
    width: 240px;
    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 - 55px);
}

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

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

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

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

.asset-table td {
    padding: 6px 10px; /* Reduced from 8px 12px */
    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;
    border-radius: 3px;
    font-size: 0.7rem; /* Reduced from 0.8rem */
}

/* ===== STATUS BADGES ===== */
.status-badge {
    display: inline-block;
    padding: 2px 6px; /* Reduced from 3px 8px */
    border-radius: 10px; /* Reduced from 12px */
    font-size: 0.6rem; /* Reduced from 0.7rem */
    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: 2px 5px; /* Reduced from 3px 6px */
    border-radius: 3px;
    font-size: 0.6rem; /* Reduced from 0.7rem */
    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;
    padding: 2px 5px; /* Reduced from 3px 6px */
    background: #e8f5e8;
    color: var(--success-color);
    border-radius: 8px; /* Reduced from 10px */
    font-size: 0.6rem; /* Reduced from 0.7rem */
    font-weight: 500;
}

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

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

.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.7rem; /* Reduced from 0.8rem */
}

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

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

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

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

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

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

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

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

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

.form-control {
    width: 100%;
    padding: 6px 8px; /* Reduced from 8px 10px */
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.75rem; /* Reduced from 0.85rem */
    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.6rem; /* Reduced from 0.7rem */
    margin-top: 2px; /* Reduced from 3px */
    display: block;
}

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

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

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

.filter-header {
    padding: 10px 12px; /* Reduced from 12px 15px */
    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.8rem; /* Reduced from 0.9rem */
    display: flex;
    align-items: center;
    gap: 5px; /* Reduced from 6px */
}

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

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

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

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

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

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

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

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

.btn-icon {
    width: 24px; /* Reduced from 28px */
    height: 24px; /* Reduced from 28px */
    border-radius: 4px;
    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.7rem; /* Reduced from 0.8rem */
}

.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: 55px;
        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.8rem; /* Reduced from 0.9rem */
        margin-left: 35px;
    }
    
    .title-container h2 {
        font-size: 0.6rem; /* Reduced from 0.7rem */
        margin-left: 35px;
    }
    
    .admin-profile-btn span {
        display: none;
    }
    
    .admin-profile-btn {
        padding: 5px; /* Reduced from 6px */
        width: 32px; /* Reduced from 36px */
        justify-content: center;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .action-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .page-header {
        flex-direction: column;
        gap: 8px;
        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: 15px; /* Reduced from 20px */
    display: flex;
    align-items: center;
    gap: 12px; /* Reduced from 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: 48px; /* Reduced from 55px */
    height: 48px; /* Reduced from 55px */
    border-radius: 10px; /* Reduced from 12px */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem; /* Reduced from 1.5rem */
    flex-shrink: 0;
}

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

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

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

.stat-card .card-trend {
    font-size: 0.65rem; /* Reduced from 0.75rem */
    color: var(--text-secondary);
    margin-top: 4px; /* Reduced from 5px */
}

.stat-card .card-action {
    margin-top: 6px; /* Reduced from 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;
}