/* --- A Clean and Modern Stylesheet --- */ /* 1. General & Typography */ :root { --primary-color: #4e73df; /* A nice, professional blue */ --primary-hover: #2e59d9; --light-gray: #f8f9fa; --medium-gray: #e9ecef; --dark-gray: #5a5c69; --text-color: #343a40; } body { background-color: var(--light-gray); color: var(--text-color); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; } h1, h2, h3, h4, h5, h6 { font-weight: 600; color: var(--dark-gray); } .btn-primary { background-color: var(--primary-color); border-color: var(--primary-color); } .btn-primary:hover { background-color: var(--primary-hover); border-color: var(--primary-hover); } .text-primary { color: var(--primary-color) !important; } /* 2. Layout & Main Navigation Bar */ /* This is the CRITICAL rule to prevent content from hiding behind the fixed navbar */ body { padding-top: 70px; } #mainNavbar .navbar-brand { font-weight: 700; } /* 3. Authentication Pages (Login/Register) */ .auth-wrapper { /* This makes the auth card vertically centered on the page */ min-height: calc(100vh - 70px); display: flex; align-items: center; justify-content: center; padding: 1rem; } .auth-card { max-width: 450px; width: 100%; padding: 2.5rem; border: none; border-radius: 0.5rem; box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08); background-color: #ffffff; } /* 4. User Dashboard */ .dashboard-header { border-bottom: 1px solid #dee2e6; padding-bottom: 1rem; margin-bottom: 2rem; } .new-test-card .card-header { background-color: var(--primary-color); color: white; } .table thead th { font-weight: 600; color: var(--dark-gray); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.5px; border-bottom-width: 2px; } .table tbody tr:hover { background-color: #f1f3f5; } .table .badge { padding: 0.5em 0.8em; font-weight: 600; font-size: 0.85rem; } /* 5. Admin Dashboard */ .card.border-left-primary { border-left: 0.25rem solid var(--primary-color) !important; } .card.border-left-success { border-left: 0.25rem solid #1cc88a !important; } .chart-pie { position: relative; height: 15rem; width: 100%; } .text-xs { font-size: 0.7rem; } /* Chart Legend Color Helpers */ .color-1 { color: #4e73df !important; } .color-2 { color: #1cc88a !important; } .color-3 { color: #f6c23e !important; } .color-4 { color: #e74a3b !important; } .color-5 { color: #5a5c69 !important; } .color-6 { color: #36b9cc !important; } /* =========================================== */ /* == 5. Admin Panel Specific Styles == */ /* =========================================== */ /* --- Admin Dashboard Cards --- */ /* Base style for the stat cards */ .stat-card { border: none; border-radius: 0.5rem; box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.07); transition: transform 0.2s ease-in-out; } .stat-card:hover { transform: translateY(-5px); /* Lift effect on hover */ } .stat-card .card-body { display: flex; align-items: center; justify-content: space-between; } /* Specific border colors for different cards */ .border-left-primary { border-left: 0.25rem solid var(--primary-color) !important; } .border-left-success { border-left: 0.25rem solid #1cc88a !important; } /* Text styling inside the cards */ .stat-card .text-xs { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; } .stat-card .h5 { font-weight: 700; color: var(--dark-gray); } /* The large icon on the right side of the card */ .stat-card .card-icon { font-size: 2.5rem; color: #dddfeb; /* A very light gray */ } /* --- Admin Chart Card --- */ .chart-card .card-header { background-color: #f8f9fa; /* Lighter header for the chart card */ border-bottom: 1px solid #e3e6f0; } .chart-pie { position: relative; height: 15rem; /* Or adjust as needed */ width: 100%; } /* --- Manage Users Table --- */ .users-table thead th { background-color: #f8f9fa; } .users-table .badge { font-size: 0.8rem; padding: 0.4em 0.7em; }