238 lines
4.1 KiB
CSS
238 lines
4.1 KiB
CSS
/* Admin Dashboard Styles - 2025 */
|
|
|
|
.admin-layout {
|
|
min-height: 100vh;
|
|
background-color: var(--bg-body);
|
|
}
|
|
|
|
/* Header/Navbar */
|
|
.admin-header {
|
|
background: white;
|
|
border-bottom: 1px solid var(--secondary-200);
|
|
padding: 0.75rem 0;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 30;
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.header-container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 0 1.5rem;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.brand {
|
|
font-size: 1.25rem;
|
|
font-weight: 700;
|
|
color: var(--primary-600);
|
|
text-decoration: none;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.nav-links {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.nav-item {
|
|
padding: 0.5rem 0.75rem;
|
|
color: var(--secondary-500);
|
|
text-decoration: none;
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
border-radius: var(--radius-md);
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.nav-item:hover {
|
|
background: var(--secondary-50);
|
|
color: var(--secondary-900);
|
|
}
|
|
|
|
.nav-item.active {
|
|
background: var(--primary-50);
|
|
color: var(--primary-700);
|
|
}
|
|
|
|
/* Main Content */
|
|
.main-container {
|
|
max-width: 1200px;
|
|
margin: 2rem auto;
|
|
padding: 0 1.5rem;
|
|
}
|
|
|
|
.page-header {
|
|
margin-bottom: 2rem;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.page-title {
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
color: var(--secondary-900);
|
|
}
|
|
|
|
/* Stats Grid */
|
|
.stats-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
|
|
gap: 1.5rem;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.stat-card {
|
|
background: white;
|
|
padding: 1.5rem;
|
|
border-radius: var(--radius-lg);
|
|
border: 1px solid var(--secondary-200);
|
|
box-shadow: var(--shadow-sm);
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.stat-card:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.stat-label {
|
|
font-size: 0.875rem;
|
|
color: var(--secondary-500);
|
|
font-weight: 500;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.stat-value {
|
|
font-size: 2rem;
|
|
font-weight: 700;
|
|
color: var(--secondary-900);
|
|
}
|
|
|
|
/* Tables */
|
|
.table-container {
|
|
background: white;
|
|
border-radius: var(--radius-lg);
|
|
border: 1px solid var(--secondary-200);
|
|
box-shadow: var(--shadow-sm);
|
|
overflow-x: auto;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
text-align: left;
|
|
}
|
|
|
|
thead {
|
|
background: var(--secondary-50);
|
|
border-bottom: 1px solid var(--secondary-200);
|
|
}
|
|
|
|
th {
|
|
padding: 1rem 1.5rem;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
color: var(--secondary-500);
|
|
letter-spacing: 0.05em;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
td {
|
|
padding: 1rem 1.5rem;
|
|
font-size: 0.875rem;
|
|
color: var(--secondary-800);
|
|
border-bottom: 1px solid var(--secondary-100);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
tr:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
|
|
tr:hover td {
|
|
background: var(--secondary-50);
|
|
}
|
|
|
|
/* Badges */
|
|
.badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 0.25rem 0.625rem;
|
|
border-radius: 9999px;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.badge-success {
|
|
background: #dcfce7;
|
|
color: #166534;
|
|
}
|
|
|
|
.badge-error {
|
|
background: #fee2e2;
|
|
color: #991b1b;
|
|
}
|
|
|
|
.badge-warning {
|
|
background: #fef3c7;
|
|
color: #92400e;
|
|
}
|
|
|
|
.badge-info {
|
|
background: #dbeafe;
|
|
color: #1e40af;
|
|
}
|
|
|
|
.badge-neutral {
|
|
background: #f1f5f9;
|
|
color: #475569;
|
|
}
|
|
|
|
/* Forms */
|
|
.form-card {
|
|
background: white;
|
|
padding: 2rem;
|
|
border-radius: var(--radius-lg);
|
|
border: 1px solid var(--secondary-200);
|
|
box-shadow: var(--shadow-sm);
|
|
max-width: 600px;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
color: var(--secondary-700);
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
.header-container {
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.nav-links {
|
|
width: 100%;
|
|
overflow-x: auto;
|
|
padding-bottom: 0.5rem;
|
|
}
|
|
|
|
.stats-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|