
        body {
            margin: 0;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            background-color: #f5f5f5;
            font-size: 13px; /* Reduced from default */
        }
        .header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 0.8rem 1rem; /* Reduced padding */
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        .header h1 {
            font-size: 1.3rem; /* Reduced from default */
            margin: 0;
        }
        .logout-btn {
            padding: 0.4rem 0.8rem; /* Reduced padding */
            background-color: rgba(255, 255, 255, 0.2);
            color: white;
            text-decoration: none;
            border-radius: 0.4rem;
            border: 1px solid rgba(255, 255, 255, 0.3);
            transition: all 0.3s ease;
            font-size: 0.85rem; /* Smaller font */
        }
        .logout-btn:hover {
            background-color: rgba(255, 255, 255, 0.3);
        }
        .container {
            display: flex;
            min-height: calc(100vh - 3.2rem); /* Adjusted for smaller header */
        }
        .sidebar {
            width: 14rem; /* Reduced width */
            padding: 0.8rem; /* Reduced padding */
            background-color: white;
            box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s ease-in-out;
            max-height: calc(100vh - 3.2rem);
            overflow-y: auto;
        }
        .sidebar.collapsed {
            transform: translateX(-100%);
        }
        .sidebar h3 {
            font-size: 0.95rem; /* Reduced font size */
            font-weight: 600;
            margin-bottom: 0.8rem;
            color: #4a5568;
            border-bottom: 2px solid #e2e8f0;
            padding-bottom: 0.4rem;
        }
        .sidebar ul {
            list-style: none;
            padding: 0;
            margin-bottom: 1.5rem;
        }
        .sidebar ul li a {
            display: block;
            padding: 0.6rem 0.8rem; /* Reduced padding */
            color: #4a5568;
            text-decoration: none;
            border-radius: 0.4rem;
            margin-bottom: 0.2rem;
            transition: all 0.3s ease;
            border-left: 3px solid transparent;
            font-size: 0.85rem; /* Smaller font */
        }
        .sidebar ul li a.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-left: 3px solid #fff;
        }
        .sidebar ul li a:hover:not(.active) {
            background-color: #f7fafc;
            border-left: 3px solid #667eea;
        }
        .main-content {
            flex: 1;
            padding: 1rem; /* Reduced padding */
            background-color: #f5f5f5;
            overflow-y: auto;
        }
        .alert {
            padding: 0.8rem; /* Reduced padding */
            margin-bottom: 0.8rem;
            border-radius: 0.4rem;
            border-left: 4px solid;
            font-size: 0.85rem; /* Smaller font */
        }
        .alert-success {
            background-color: #f0fff4;
            border-left-color: #48bb78;
            color: #2f855a;
        }
        .alert-danger {
            background-color: #fff5f5;
            border-left-color: #fc8181;
            color: #c53030;
        }
        .welcome-message {
            padding: 1.5rem; /* Reduced padding */
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-radius: 0.8rem;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            margin-bottom: 1.5rem;
            text-align: center;
        }
        .welcome-message h2 {
            margin: 0 0 0.4rem 0;
            font-size: 1.6rem; /* Reduced font size */
        }
        .welcome-message p {
            font-size: 0.9rem; /* Smaller font */
            margin: 0;
        }
        .dashboard-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Reduced min width */
            gap: 1rem; /* Reduced gap */
            margin-bottom: 1.5rem;
        }
        .stat-card {
            padding: 1rem; /* Reduced padding */
            background: white;
            border-radius: 0.8rem;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
            text-align: center;
            border: 1px solid #e2e8f0;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        .stat-card:hover {
            transform: translateY(-3px); /* Reduced movement */
            box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
        }
        .stat-icon {
            font-size: 2rem; /* Reduced font size */
            margin-bottom: 0.8rem;
        }
        .stat-value {
            font-size: 1.6rem; /* Reduced font size */
            font-weight: 700;
            margin-bottom: 0.4rem;
            color: #2d3748;
        }
        .stat-label {
            font-size: 0.8rem; /* Smaller font */
            color: #718096;
            font-weight: 500;
        }
        .quick-actions {
            padding: 1.5rem; /* Reduced padding */
            background: white;
            border-radius: 0.8rem;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
            margin-bottom: 1.5rem;
        }
        .quick-actions h3 {
            margin-bottom: 1rem;
            color: #2d3748;
            display: flex;
            align-items: center;
            gap: 0.4rem;
            font-size: 1rem; /* Smaller font */
        }
        .actions-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); /* Reduced min width */
            gap: 0.8rem; /* Reduced gap */
        }
        .btn {
            display: inline-block;
            padding: 0.6rem 1rem; /* Reduced padding */
            color: white;
            text-decoration: none;
            border-radius: 0.4rem;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            font-weight: 500;
            font-size: 0.8rem; /* Smaller font */
        }
        .btn:hover {
            transform: translateY(-1px); /* Reduced movement */
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
        }
        .page-header {
            padding: 1rem; /* Reduced padding */
            background: white;
            border-radius: 0.8rem;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
            margin-bottom: 1rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.8rem;
        }
        .page-header h2 {
            font-size: 1.2rem; /* Smaller font */
            margin: 0;
        }
        .table-container {
            background: white;
            border-radius: 0.8rem;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
            overflow: hidden;
            margin-bottom: 1rem;
        }
        .table-wrapper {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }
        .table {
            width: 100%;
            border-collapse: collapse;
            min-width: 600px;
            font-size: 0.8rem; /* Smaller table font */
        }
        .table th,
        .table td {
            padding: 0.6rem 0.8rem; /* Reduced padding */
            text-align: left;
            border-bottom: 1px solid #e2e8f0;
            vertical-align: middle;
        }
        .table th {
            background-color: #f7fafc;
            font-weight: 600;
            color: #4a5568;
            font-size: 0.75rem; /* Smaller header font */
            text-transform: uppercase;
            letter-spacing: 0.05em;
            white-space: nowrap;
            position: sticky;
            top: 0;
            z-index: 10;
        }
        .table tbody tr:hover {
            background-color: #f7fafc;
        }
        .cell-content {
            max-width: 150px; /* Reduced max width */
            word-wrap: break-word;
            font-size: 0.8rem; /* Smaller cell font */
        }
        .truncated {
            cursor: help;
        }
        .actions {
            white-space: nowrap;
            width: 1%;
        }
        .actions-header {
            width: 120px; /* Reduced width */
            min-width: 120px;
        }
        .action-buttons {
            display: flex;
            gap: 0.3rem; /* Reduced gap */
            flex-wrap: nowrap;
        }
        .btn-sm {
            padding: 0.3rem 0.6rem; /* Reduced padding */
            font-size: 0.75rem; /* Smaller font */
        }
        .btn-danger {
            background: linear-gradient(135deg, #fc8181 0%, #f56565 100%);
        }
        .btn-success {
            background: linear-gradient(135deg, #68d391 0%, #48bb78 100%);
        }
        .pagination {
            display: flex;
            gap: 0.4rem; /* Reduced gap */
            justify-content: center;
            flex-wrap: wrap;
        }
        .pagination a,
        .pagination span {
            padding: 0.4rem 0.8rem; /* Reduced padding */
            color: white;
            text-decoration: none;
            border-radius: 0.4rem;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            transition: all 0.3s ease;
            font-size: 0.8rem; /* Smaller font */
        }
        .pagination .current {
            background: #a0aec0;
            pointer-events: none;
        }
        .pagination a:hover {
            transform: translateY(-1px);
            box-shadow: 0 3px 12px rgba(102, 126, 234, 0.3);
        }
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 50;
            backdrop-filter: blur(5px);
        }
        .modal-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: white;
            padding: 1.5rem; /* Reduced padding */
            border-radius: 0.8rem;
            width: 90%;
            max-width: 500px; /* Reduced max width */
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
            max-height: 80vh;
            overflow-y: auto;
        }
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
            padding-bottom: 0.8rem;
            border-bottom: 2px solid #e2e8f0;
        }
        .modal-header h3 {
            margin: 0;
            color: #2d3748;
            font-size: 1.1rem; /* Smaller font */
        }
        .close {
            font-size: 1.3rem; /* Smaller font */
            cursor: pointer;
            color: #a0aec0;
            transition: color 0.3s ease;
        }
        .close:hover {
            color: #fc8181;
        }
        .form-group {
            margin-bottom: 1rem; /* Reduced margin */
        }
        .form-group label {
            display: block;
            margin-bottom: 0.4rem;
            font-weight: 600;
            color: #4a5568;
            font-size: 0.85rem; /* Smaller font */
        }
        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 0.6rem; /* Reduced padding */
            border: 2px solid #e2e8f0;
            border-radius: 0.4rem;
            transition: border-color 0.3s ease;
            font-size: 0.85rem; /* Smaller font */
        }
        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #667eea;
        }
        .hamburger {
            display: none;
            position: fixed;
            top: 0.8rem;
            left: 0.8rem;
            z-index: 30;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 0.6rem; /* Reduced padding */
            border-radius: 0.4rem;
            border: none;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            font-size: 0.9rem; /* Smaller font */
        }
        .no-data {
            text-align: center;
            padding: 2rem; /* Reduced padding */
            color: #718096;
        }
        .no-data h3 {
            margin-bottom: 0.8rem;
            color: #4a5568;
            font-size: 1.1rem; /* Smaller font */
        }
        .no-data p {
            font-size: 0.9rem; /* Smaller font */
        }
        @media (max-width: 768px) {
            .sidebar {
                transform: translateX(-100%);
                position: fixed;
                z-index: 20;
                height: 100vh;
                top: 0;
            }
            .sidebar.open {
                transform: translateX(0);
            }
            .main-content {
                margin-left: 0;
                padding: 0.8rem; /* Reduced padding */
            }
            .hamburger {
                display: block;
            }
            .dashboard-grid {
                grid-template-columns: 1fr;
                gap: 0.8rem; /* Reduced gap */
            }
            .actions-grid {
                grid-template-columns: 1fr;
            }
            .page-header {
                flex-direction: column;
                text-align: center;
                padding: 0.8rem; /* Reduced padding */
            }
            .modal-content {
                width: 95%;
                padding: 1rem; /* Reduced padding */
                max-height: 90vh;
            }
            .welcome-message {
                padding: 1rem; /* Reduced padding */
                text-align: center;
            }
            .welcome-message h2 {
                font-size: 1.3rem; /* Smaller font */
            }
            
            /* Mobile table styles */
            .table-wrapper {
                border-radius: 0;
            }
            .table,
            .table thead,
            .table tbody,
            .table th,
            .table td,
            .table tr {
                display: block;
            }
            .table thead tr {
                position: absolute;
                top: -9999px;
                left: -9999px;
            }
            .table tbody tr {
                border: 1px solid #e2e8f0;
                border-radius: 0.4rem;
                margin-bottom: 0.8rem;
                padding: 0.8rem;
                background: white;
                box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            }
            .table td {
                border: none;
                border-bottom: 1px solid #e2e8f0;
                position: relative;
                padding: 0.5rem 0.5rem 0.5rem 35%;
                text-align: left;
                min-height: 2rem;
                display: flex;
                align-items: center;
                font-size: 0.8rem; /* Smaller mobile font */
            }
            .table td:before {
                content: attr(data-label) ": ";
                position: absolute;
                left: 0.5rem;
                width: 30%;
                padding-right: 0.4rem;
                white-space: nowrap;
                font-weight: 600;
                color: #4a5568;
                font-size: 0.75rem; /* Smaller label font */
            }
            .table td:last-child {
                border-bottom: none;
            }
            .table td:last-child:before {
                content: "Actions: ";
            }
            .action-buttons {
                flex-direction: column;
                gap: 0.2rem;
                width: 100%;
            }
            .action-buttons .btn {
                width: 100%;
                justify-content: center;
                padding: 0.4rem;
                font-size: 0.75rem;
            }
            .cell-content {
                max-width: none;
                flex: 1;
            }
            
            /* Better mobile form layout */
            .form-group {
                margin-bottom: 0.8rem;
            }
            .form-group input,
            .form-group select,
            .form-group textarea {
                font-size: 16px; /* Prevents zoom on iOS */
            }
        }
        
        @media (max-width: 480px) {
            .stat-card {
                padding: 0.8rem; /* Reduced padding */
            }
            .stat-value {
                font-size: 1.3rem; /* Smaller font */
            }
            .btn {
                padding: 0.4rem 0.8rem;
                font-size: 0.75rem;
            }
            .table td {
                padding: 0.4rem 0.4rem 0.4rem 40%;
            }
            .table td:before {
                left: 0.4rem;
                width: 35%;
                font-size: 0.7rem;
            }
        }
        
        
        