348 lines
6.4 KiB
CSS
348 lines
6.4 KiB
CSS
:root {
|
|
--primary: #6c8cf5;
|
|
--primary-hover: #5a79e6;
|
|
--background: #f8fafc;
|
|
--surface: #ffffff;
|
|
--text-primary: #1f2937;
|
|
--text-secondary: #6b7280;
|
|
--border: #e5e7eb;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
body.admin-page {
|
|
font-family: "Poppins", sans-serif;
|
|
color: var(--text-primary);
|
|
background: var(--background);
|
|
}
|
|
|
|
.admin-shell {
|
|
min-height: 100vh;
|
|
display: grid;
|
|
grid-template-columns: 260px 1fr;
|
|
}
|
|
|
|
.admin-sidebar {
|
|
background: #eef4ff;
|
|
border-right: 1px solid #dbe8ff;
|
|
padding: 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 18px;
|
|
}
|
|
|
|
.sidebar-brand p {
|
|
margin: 0;
|
|
font-family: "Montserrat", sans-serif;
|
|
font-weight: 800;
|
|
font-size: 1.18rem;
|
|
}
|
|
|
|
.sidebar-brand span {
|
|
color: var(--text-secondary);
|
|
font-size: 0.88rem;
|
|
}
|
|
|
|
.sidebar-nav {
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
.sidebar-nav a {
|
|
min-height: 42px;
|
|
border-radius: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 12px;
|
|
color: #334155;
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.sidebar-nav a:hover,
|
|
.sidebar-nav a.is-active {
|
|
background: #fff;
|
|
color: var(--primary);
|
|
box-shadow: 0 8px 20px rgba(108, 140, 245, 0.12);
|
|
}
|
|
|
|
.sidebar-logout-form {
|
|
margin-top: auto;
|
|
}
|
|
|
|
.sidebar-logout {
|
|
width: 100%;
|
|
min-height: 42px;
|
|
border-radius: 10px;
|
|
border: 1px solid #d8def0;
|
|
background: #fff;
|
|
cursor: pointer;
|
|
font-family: "Montserrat", sans-serif;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.sidebar-logout:hover {
|
|
border-color: var(--primary);
|
|
color: var(--primary);
|
|
}
|
|
|
|
.admin-main {
|
|
display: grid;
|
|
grid-template-rows: auto 1fr;
|
|
}
|
|
|
|
.admin-topbar {
|
|
background: #fff;
|
|
border-bottom: 1px solid var(--border);
|
|
padding: 18px 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 14px;
|
|
}
|
|
|
|
.topbar-eyebrow {
|
|
margin: 0;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
font-size: 0.76rem;
|
|
color: var(--primary);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.admin-topbar h1 {
|
|
margin: 2px 0 0;
|
|
font-family: "Montserrat", sans-serif;
|
|
font-size: 1.3rem;
|
|
}
|
|
|
|
.topbar-user {
|
|
text-align: right;
|
|
}
|
|
|
|
.topbar-user strong {
|
|
display: block;
|
|
font-family: "Montserrat", sans-serif;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.topbar-user span {
|
|
color: var(--text-secondary);
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.admin-content {
|
|
padding: 22px 24px;
|
|
}
|
|
|
|
.admin-flash {
|
|
border: 1px solid transparent;
|
|
border-radius: 10px;
|
|
padding: 11px 13px;
|
|
margin-bottom: 14px;
|
|
font-size: 0.92rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.admin-flash-success {
|
|
background: #ecfdf5;
|
|
border-color: #a7f3d0;
|
|
color: #065f46;
|
|
}
|
|
|
|
.admin-flash-error {
|
|
background: #fef2f2;
|
|
border-color: #fecaca;
|
|
color: #991b1b;
|
|
}
|
|
|
|
.admin-flash-warning {
|
|
background: #fffbeb;
|
|
border-color: #fde68a;
|
|
color: #92400e;
|
|
}
|
|
|
|
.admin-flash-info {
|
|
background: #eff6ff;
|
|
border-color: #bfdbfe;
|
|
color: #1d4ed8;
|
|
}
|
|
|
|
.page-description {
|
|
margin: 0 0 16px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.stat-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 12px;
|
|
}
|
|
|
|
.stat-card {
|
|
background: #fff;
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
padding: 16px;
|
|
}
|
|
|
|
.stat-card p {
|
|
margin: 0;
|
|
color: var(--text-secondary);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.stat-card h3 {
|
|
margin: 8px 0 0;
|
|
font-family: "Montserrat", sans-serif;
|
|
font-size: 1.35rem;
|
|
color: var(--primary);
|
|
}
|
|
|
|
.admin-content .pagination-wrap,
|
|
.admin-content .audit-pagination-wrap,
|
|
.admin-content .report-pagination-wrap,
|
|
.admin-content .bookings-pagination-wrap,
|
|
.admin-content .payments-pagination-wrap,
|
|
.admin-content .vehicles-pagination-wrap,
|
|
.admin-content .customers-pagination-wrap,
|
|
.admin-content .reviews-pagination-wrapper,
|
|
.admin-content .promos-pagination-wrapper,
|
|
.admin-content .notifications-pagination-wrapper,
|
|
.admin-content .commissions-pagination-wrap {
|
|
margin-top: 14px;
|
|
}
|
|
|
|
.admin-content nav > div:first-child {
|
|
display: none;
|
|
}
|
|
|
|
.admin-content .pagination {
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.admin-content .pagination li {
|
|
list-style: none;
|
|
margin: 0;
|
|
}
|
|
|
|
.admin-content .pagination a,
|
|
.admin-content .pagination span {
|
|
min-height: 40px;
|
|
min-width: 40px;
|
|
padding: 0 12px;
|
|
border: 1px solid #dbe1eb;
|
|
border-radius: 10px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-decoration: none;
|
|
background: #ffffff;
|
|
color: #1f2937;
|
|
font-size: 0.85rem;
|
|
line-height: 1;
|
|
}
|
|
|
|
.admin-content .pagination a:hover {
|
|
background: #eef4ff;
|
|
border-color: #a8c5ff;
|
|
color: #2c4ab8;
|
|
}
|
|
|
|
.admin-content .pagination .active span {
|
|
background: #6c8cf5;
|
|
border-color: #6c8cf5;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.admin-content .pagination .disabled span {
|
|
background: #f9fafb;
|
|
color: #9ca3af;
|
|
}
|
|
|
|
.admin-content .pagination svg {
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
@media (max-width: 980px) {
|
|
.admin-shell {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.admin-sidebar {
|
|
border-right: none;
|
|
border-bottom: 1px solid #dbe8ff;
|
|
}
|
|
|
|
.stat-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.admin-content .pagination {
|
|
justify-content: center;
|
|
}
|
|
}
|
|
|
|
/* Table styles for admin pages */
|
|
.admin-content .table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
background: #fff;
|
|
border: 1px solid var(--border);
|
|
border-radius: 10px;
|
|
overflow: hidden;
|
|
}
|
|
.admin-content .table thead {
|
|
background: #f8fafc;
|
|
}
|
|
.admin-content .table th,
|
|
.admin-content .table td {
|
|
padding: 12px 14px;
|
|
border-bottom: 1px solid #f1f5f9;
|
|
text-align: left;
|
|
font-size: 0.95rem;
|
|
color: var(--text-primary);
|
|
}
|
|
.admin-content .table th {
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
}
|
|
.admin-content .table tbody tr:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
|
|
/* row highlights for inventory low/empty */
|
|
.admin-content .table tr[style*="background:#fff1f0"] td {
|
|
background: #fff1f0;
|
|
}
|
|
.admin-content .table tr[style*="background:#fffbeb"] td {
|
|
background: #fffbeb;
|
|
}
|
|
|
|
/* responsive */
|
|
@media (max-width: 720px) {
|
|
.admin-content .table th,
|
|
.admin-content .table td {
|
|
padding: 10px 8px;
|
|
font-size: 0.9rem;
|
|
}
|
|
.admin-shell {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|