1125 lines
21 KiB
CSS
1125 lines
21 KiB
CSS
/* ============================================
|
|
SMART PARKING - STYLES GLOBAUX
|
|
============================================ */
|
|
|
|
:root {
|
|
/* Couleurs principales */
|
|
--primary: #6366f1;
|
|
--primary-dark: #4f46e5;
|
|
--primary-light: #818cf8;
|
|
|
|
/* Couleurs états */
|
|
--success: #10b981;
|
|
--danger: #ef4444;
|
|
--warning: #f59e0b;
|
|
--info: #06b6d4;
|
|
|
|
/* Couleurs places */
|
|
--spot-free: #10b981;
|
|
--spot-occupied: #ef4444;
|
|
--spot-reserved: #3b82f6;
|
|
|
|
/* Fonds */
|
|
--bg-dark: #0f172a;
|
|
--bg-darker: #020617;
|
|
--bg-card: #1e293b;
|
|
--bg-hover: #334155;
|
|
|
|
/* Texte */
|
|
--text-primary: #f8fafc;
|
|
--text-secondary: #cbd5e1;
|
|
--text-muted: #94a3b8;
|
|
|
|
/* Bordures */
|
|
--border: #334155;
|
|
--border-radius: 12px;
|
|
--border-radius-sm: 8px;
|
|
|
|
/* Ombres */
|
|
--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
|
|
--shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
|
|
|
|
/* Transitions */
|
|
--transition: all 0.3s ease;
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html {
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
|
|
background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
|
|
color: var(--text-primary);
|
|
line-height: 1.6;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 0 20px;
|
|
}
|
|
|
|
/* ============================================
|
|
HEADER
|
|
============================================ */
|
|
.header {
|
|
background: var(--bg-card);
|
|
border-bottom: 1px solid var(--border);
|
|
padding: 16px 0;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
|
|
.header .container {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 20px;
|
|
}
|
|
|
|
.header-left {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.logo {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.logo-icon {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.logo h1 {
|
|
font-size: 1.3rem;
|
|
font-weight: 700;
|
|
background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
}
|
|
|
|
/* Navigation */
|
|
.nav {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.nav-link {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 10px 16px;
|
|
border-radius: var(--border-radius-sm);
|
|
text-decoration: none;
|
|
color: var(--text-secondary);
|
|
font-weight: 500;
|
|
font-size: 0.9rem;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.nav-link:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.nav-link.active {
|
|
background: var(--primary);
|
|
color: white;
|
|
}
|
|
|
|
.nav-icon {
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
/* Header right */
|
|
.header-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
}
|
|
|
|
.user-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-end;
|
|
}
|
|
|
|
.user-info span:first-child {
|
|
font-weight: 600;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.user-role {
|
|
font-size: 0.75rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* ============================================
|
|
MAIN & PAGES
|
|
============================================ */
|
|
.main {
|
|
padding: 30px 0;
|
|
min-height: calc(100vh - 80px);
|
|
}
|
|
|
|
.page {
|
|
display: none;
|
|
}
|
|
|
|
.page.active {
|
|
display: block;
|
|
animation: fadeIn 0.3s ease;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; transform: translateY(10px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
.page-title {
|
|
font-size: 1.8rem;
|
|
font-weight: 700;
|
|
margin-bottom: 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.page-title .icon {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
/* ============================================
|
|
BOUTONS
|
|
============================================ */
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
padding: 12px 24px;
|
|
border: none;
|
|
border-radius: var(--border-radius-sm);
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.btn-primary {
|
|
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: var(--border);
|
|
}
|
|
|
|
.btn-success {
|
|
background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
|
|
color: white;
|
|
}
|
|
|
|
.btn-danger {
|
|
background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
|
|
color: white;
|
|
}
|
|
|
|
.btn-small {
|
|
padding: 8px 16px;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.btn-block {
|
|
width: 100%;
|
|
}
|
|
|
|
.btn:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* ============================================
|
|
FORMULAIRES
|
|
============================================ */
|
|
.form-group {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
margin-bottom: 6px;
|
|
font-size: 0.9rem;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.form-control {
|
|
width: 100%;
|
|
padding: 12px 16px;
|
|
background: var(--bg-dark);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--border-radius-sm);
|
|
color: var(--text-primary);
|
|
font-size: 1rem;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.form-control:focus {
|
|
outline: none;
|
|
border-color: var(--primary);
|
|
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
|
|
}
|
|
|
|
.form-control::placeholder {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
select.form-control {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.form-row {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 16px;
|
|
}
|
|
|
|
.input-group {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.input-group .form-control {
|
|
flex: 1;
|
|
}
|
|
|
|
/* ============================================
|
|
CARTES
|
|
============================================ */
|
|
.card {
|
|
background: var(--bg-card);
|
|
border-radius: var(--border-radius);
|
|
padding: 24px;
|
|
border: 1px solid var(--border);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
/* ============================================
|
|
STATS GRID
|
|
============================================ */
|
|
.stats-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 16px;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.stat-card {
|
|
background: var(--bg-card);
|
|
border-radius: var(--border-radius);
|
|
padding: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
border: 1px solid var(--border);
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.stat-card:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: var(--shadow-lg);
|
|
}
|
|
|
|
.stat-card.free {
|
|
border-left: 4px solid var(--spot-free);
|
|
}
|
|
|
|
.stat-card.occupied {
|
|
border-left: 4px solid var(--spot-occupied);
|
|
}
|
|
|
|
.stat-card.reserved {
|
|
border-left: 4px solid var(--spot-reserved);
|
|
}
|
|
|
|
.stat-card.total {
|
|
border-left: 4px solid var(--primary);
|
|
}
|
|
|
|
.stat-icon {
|
|
font-size: 2rem;
|
|
width: 50px;
|
|
height: 50px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--bg-dark);
|
|
border-radius: var(--border-radius-sm);
|
|
}
|
|
|
|
.stat-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.stat-value {
|
|
font-size: 2rem;
|
|
font-weight: 700;
|
|
line-height: 1;
|
|
}
|
|
|
|
.stat-card.free .stat-value { color: var(--spot-free); }
|
|
.stat-card.occupied .stat-value { color: var(--spot-occupied); }
|
|
.stat-card.reserved .stat-value { color: var(--spot-reserved); }
|
|
.stat-card.total .stat-value { color: var(--primary); }
|
|
|
|
.stat-label {
|
|
font-size: 0.85rem;
|
|
color: var(--text-muted);
|
|
margin-top: 4px;
|
|
}
|
|
|
|
/* ============================================
|
|
PARKING MAP
|
|
============================================ */
|
|
.parking-section {
|
|
display: grid;
|
|
grid-template-columns: 1fr 350px;
|
|
gap: 24px;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.parking-map-container,
|
|
.spot-details-container {
|
|
background: var(--bg-card);
|
|
border-radius: var(--border-radius);
|
|
padding: 24px;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.parking-map-container h3,
|
|
.spot-details-container h3 {
|
|
margin-bottom: 20px;
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.parking-map {
|
|
display: grid;
|
|
grid-template-columns: repeat(5, 1fr);
|
|
gap: 12px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.parking-spot {
|
|
aspect-ratio: 1;
|
|
border-radius: var(--border-radius-sm);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
border: 2px solid transparent;
|
|
font-weight: 600;
|
|
background: var(--bg-dark);
|
|
}
|
|
|
|
.parking-spot:hover {
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.parking-spot.free {
|
|
border-color: var(--spot-free);
|
|
color: var(--spot-free);
|
|
}
|
|
|
|
.parking-spot.occupied {
|
|
border-color: var(--spot-occupied);
|
|
color: var(--spot-occupied);
|
|
}
|
|
|
|
.parking-spot.reserved {
|
|
border-color: var(--spot-reserved);
|
|
color: var(--spot-reserved);
|
|
}
|
|
|
|
.parking-spot .spot-number {
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.parking-spot .spot-icon {
|
|
font-size: 1.3rem;
|
|
}
|
|
|
|
/* Legend */
|
|
.legend {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 24px;
|
|
}
|
|
|
|
.legend-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 0.9rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.legend-color {
|
|
width: 16px;
|
|
height: 16px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.legend-color.free { background: var(--spot-free); }
|
|
.legend-color.occupied { background: var(--spot-occupied); }
|
|
.legend-color.reserved { background: var(--spot-reserved); }
|
|
|
|
/* Spot details */
|
|
.spot-details {
|
|
min-height: 200px;
|
|
}
|
|
|
|
.no-selection {
|
|
color: var(--text-muted);
|
|
text-align: center;
|
|
padding: 40px 0;
|
|
}
|
|
|
|
.spot-info-detail {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.spot-info-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 10px 0;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.spot-info-label {
|
|
color: var(--text-secondary);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.spot-info-value {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.spot-status-free { color: var(--spot-free); }
|
|
.spot-status-occupied { color: var(--spot-occupied); }
|
|
.spot-status-reserved { color: var(--spot-reserved); }
|
|
|
|
/* ============================================
|
|
PRICING
|
|
============================================ */
|
|
.pricing-section {
|
|
background: var(--bg-card);
|
|
border-radius: var(--border-radius);
|
|
padding: 24px;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.pricing-section h3 {
|
|
margin-bottom: 20px;
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.pricing-cards {
|
|
display: grid;
|
|
grid-template-columns: repeat(5, 1fr);
|
|
gap: 16px;
|
|
}
|
|
|
|
.pricing-card {
|
|
background: var(--bg-dark);
|
|
border-radius: var(--border-radius-sm);
|
|
padding: 20px;
|
|
text-align: center;
|
|
border: 1px solid var(--border);
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.pricing-card:hover {
|
|
border-color: var(--primary);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.pricing-card h4 {
|
|
font-size: 0.9rem;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.pricing-card .price {
|
|
font-size: 1.8rem;
|
|
font-weight: 700;
|
|
color: var(--primary-light);
|
|
}
|
|
|
|
/* ============================================
|
|
MODAL
|
|
============================================ */
|
|
.modal {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.8);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1000;
|
|
padding: 20px;
|
|
}
|
|
|
|
.modal-content {
|
|
background: var(--bg-card);
|
|
border-radius: var(--border-radius);
|
|
width: 100%;
|
|
max-width: 500px;
|
|
max-height: 90vh;
|
|
overflow-y: auto;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 20px 24px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.modal-header h3 {
|
|
margin: 0;
|
|
}
|
|
|
|
.modal-close {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-muted);
|
|
font-size: 1.5rem;
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.modal-close:hover {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 24px;
|
|
}
|
|
|
|
/* Payment modal */
|
|
.payment-summary {
|
|
background: var(--bg-dark);
|
|
border-radius: var(--border-radius-sm);
|
|
padding: 16px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.payment-summary h4 {
|
|
margin-bottom: 12px;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.summary-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 6px 0;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.summary-row.total {
|
|
border-top: 1px solid var(--border);
|
|
margin-top: 8px;
|
|
padding-top: 12px;
|
|
font-weight: 700;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.qr-section {
|
|
text-align: center;
|
|
margin: 20px 0;
|
|
}
|
|
|
|
.qr-section p {
|
|
margin-bottom: 12px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
#qrcode {
|
|
display: flex;
|
|
justify-content: center;
|
|
margin: 16px 0;
|
|
}
|
|
|
|
#qrcode img {
|
|
border-radius: var(--border-radius-sm);
|
|
}
|
|
|
|
.qr-info {
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.payment-actions {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
/* ============================================
|
|
RESERVATIONS LIST
|
|
============================================ */
|
|
.reservations-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.reservation-card {
|
|
background: var(--bg-card);
|
|
border-radius: var(--border-radius);
|
|
padding: 20px;
|
|
border: 1px solid var(--border);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.reservation-info h4 {
|
|
margin-bottom: 8px;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.reservation-details {
|
|
display: flex;
|
|
gap: 16px;
|
|
font-size: 0.85rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.reservation-details span {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.reservation-price {
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
color: var(--primary-light);
|
|
}
|
|
|
|
.reservation-status {
|
|
padding: 4px 12px;
|
|
border-radius: 20px;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.status-active {
|
|
background: rgba(16, 185, 129, 0.2);
|
|
color: var(--success);
|
|
}
|
|
|
|
.status-completed {
|
|
background: rgba(148, 163, 184, 0.2);
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.status-cancelled {
|
|
background: rgba(239, 68, 68, 0.2);
|
|
color: var(--danger);
|
|
}
|
|
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 60px 20px;
|
|
background: var(--bg-card);
|
|
border-radius: var(--border-radius);
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.empty-icon {
|
|
font-size: 4rem;
|
|
margin-bottom: 16px;
|
|
display: block;
|
|
}
|
|
|
|
.empty-state p {
|
|
color: var(--text-muted);
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
/* ============================================
|
|
PROFILE
|
|
============================================ */
|
|
.profile-container {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 24px;
|
|
}
|
|
|
|
.profile-card,
|
|
.profile-stats {
|
|
background: var(--bg-card);
|
|
border-radius: var(--border-radius);
|
|
padding: 24px;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.profile-header {
|
|
text-align: center;
|
|
margin-bottom: 24px;
|
|
padding-bottom: 24px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.profile-avatar {
|
|
width: 80px;
|
|
height: 80px;
|
|
background: var(--bg-dark);
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin: 0 auto 12px;
|
|
font-size: 2.5rem;
|
|
}
|
|
|
|
.profile-header h3 {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.role-badge {
|
|
display: inline-block;
|
|
padding: 4px 12px;
|
|
background: var(--primary);
|
|
color: white;
|
|
border-radius: 20px;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.stats-cards {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 16px;
|
|
}
|
|
|
|
.stat-box {
|
|
background: var(--bg-dark);
|
|
border-radius: var(--border-radius-sm);
|
|
padding: 20px;
|
|
text-align: center;
|
|
}
|
|
|
|
.stat-box-value {
|
|
display: block;
|
|
font-size: 1.8rem;
|
|
font-weight: 700;
|
|
color: var(--primary-light);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.stat-box-label {
|
|
font-size: 0.8rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* ============================================
|
|
ADMIN
|
|
============================================ */
|
|
.admin-page .admin-stats-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 16px;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.admin-stat {
|
|
background: var(--bg-card);
|
|
border-radius: var(--border-radius);
|
|
padding: 20px;
|
|
text-align: center;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.admin-stat-value {
|
|
display: block;
|
|
font-size: 2rem;
|
|
font-weight: 700;
|
|
color: var(--primary-light);
|
|
}
|
|
|
|
.admin-stat-label {
|
|
font-size: 0.85rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.admin-section {
|
|
background: var(--bg-card);
|
|
border-radius: var(--border-radius);
|
|
padding: 24px;
|
|
border: 1px solid var(--border);
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.admin-section h3 {
|
|
margin-bottom: 20px;
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.admin-places-control {
|
|
max-width: 300px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.admin-places-list {
|
|
display: grid;
|
|
grid-template-columns: repeat(10, 1fr);
|
|
gap: 8px;
|
|
}
|
|
|
|
.admin-place-item {
|
|
aspect-ratio: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: var(--border-radius-sm);
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.admin-place-item.free { background: rgba(16, 185, 129, 0.2); color: var(--spot-free); }
|
|
.admin-place-item.occupied { background: rgba(239, 68, 68, 0.2); color: var(--spot-occupied); }
|
|
.admin-place-item.reserved { background: rgba(59, 130, 246, 0.2); color: var(--spot-reserved); }
|
|
|
|
/* Tables */
|
|
.table-container {
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.data-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.data-table th,
|
|
.data-table td {
|
|
padding: 12px 16px;
|
|
text-align: left;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.data-table th {
|
|
background: var(--bg-dark);
|
|
color: var(--text-secondary);
|
|
font-weight: 600;
|
|
font-size: 0.8rem;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.data-table tr:hover td {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
/* Log container */
|
|
.log-container {
|
|
max-height: 300px;
|
|
overflow-y: auto;
|
|
background: var(--bg-dark);
|
|
border-radius: var(--border-radius-sm);
|
|
padding: 12px;
|
|
}
|
|
|
|
.log-item {
|
|
display: flex;
|
|
gap: 12px;
|
|
padding: 8px 0;
|
|
border-bottom: 1px solid var(--border);
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.log-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.log-time {
|
|
color: var(--text-muted);
|
|
min-width: 70px;
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
/* ============================================
|
|
TOAST NOTIFICATIONS
|
|
============================================ */
|
|
.toast-container {
|
|
position: fixed;
|
|
bottom: 20px;
|
|
right: 20px;
|
|
z-index: 1001;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.toast {
|
|
background: var(--bg-card);
|
|
border-radius: var(--border-radius-sm);
|
|
padding: 16px 20px;
|
|
border-left: 4px solid var(--primary);
|
|
box-shadow: var(--shadow-lg);
|
|
animation: slideIn 0.3s ease;
|
|
max-width: 350px;
|
|
}
|
|
|
|
.toast.success { border-left-color: var(--success); }
|
|
.toast.error { border-left-color: var(--danger); }
|
|
.toast.warning { border-left-color: var(--warning); }
|
|
|
|
@keyframes slideIn {
|
|
from { transform: translateX(100%); opacity: 0; }
|
|
to { transform: translateX(0); opacity: 1; }
|
|
}
|
|
|
|
/* ============================================
|
|
UTILITAIRES
|
|
============================================ */
|
|
.hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
.admin-only {
|
|
display: none;
|
|
}
|
|
|
|
.admin-only.visible {
|
|
display: flex;
|
|
}
|
|
|
|
/* ============================================
|
|
RESPONSIVE
|
|
============================================ */
|
|
@media (max-width: 1024px) {
|
|
.stats-grid {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
|
|
.parking-section {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.pricing-cards {
|
|
grid-template-columns: repeat(3, 1fr);
|
|
}
|
|
|
|
.profile-container {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.admin-page .admin-stats-grid {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.header .container {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.nav {
|
|
order: 3;
|
|
width: 100%;
|
|
justify-content: center;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.nav-link {
|
|
padding: 8px 12px;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.stats-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.form-row {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.pricing-cards {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
|
|
.parking-map {
|
|
grid-template-columns: repeat(3, 1fr);
|
|
}
|
|
|
|
.stats-cards {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.admin-page .admin-stats-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.admin-places-list {
|
|
grid-template-columns: repeat(5, 1fr);
|
|
}
|
|
}
|
|
|
|
/* Scrollbar */
|
|
::-webkit-scrollbar {
|
|
width: 8px;
|
|
height: 8px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: var(--bg-dark);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--border);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: var(--secondary);
|
|
}
|