175 lines
3.4 KiB
CSS
175 lines
3.4 KiB
CSS
:root {
|
|
--primary-color: #0f172a;
|
|
--accent-color: #2563eb;
|
|
--bg-color: #f8fafc;
|
|
--surface-color: #ffffff;
|
|
--text-main: #1e293b;
|
|
--text-muted: #64748b;
|
|
--border-radius: 12px;
|
|
--sidebar-width: 260px;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Inter', system-ui, -apple-system, sans-serif;
|
|
background-color: var(--bg-color);
|
|
color: var(--text-main);
|
|
}
|
|
|
|
/* Navbar */
|
|
.navbar {
|
|
background: rgba(255, 255, 255, 0.8);
|
|
backdrop-filter: blur(10px);
|
|
border-bottom: 1px solid #e2e8f0;
|
|
}
|
|
|
|
.nav-link {
|
|
font-weight: 500;
|
|
color: var(--text-main);
|
|
}
|
|
|
|
/* Hero Section */
|
|
.hero-section {
|
|
padding: 100px 0;
|
|
background: linear-gradient(rgba(30, 41, 59, 0.8), rgba(30, 41, 59, 0.8)), url('https://images.pexels.com/photos/116675/pexels-photo-116675.jpeg?auto=compress&cs=tinysrgb&w=1600') center/cover;
|
|
color: white;
|
|
}
|
|
|
|
/* Search Container */
|
|
.search-container {
|
|
background: var(--surface-color);
|
|
padding: 20px;
|
|
border-radius: var(--border-radius);
|
|
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
|
|
margin-top: -50px;
|
|
}
|
|
|
|
/* Car Cards */
|
|
.car-card {
|
|
border: none;
|
|
border-radius: 16px;
|
|
overflow: hidden;
|
|
transition: all 0.3s ease;
|
|
box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
|
|
background: white;
|
|
}
|
|
|
|
.car-card:hover {
|
|
transform: translateY(-8px);
|
|
box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.car-card img, .card-img-top {
|
|
height: 220px;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.car-price, .price-tag {
|
|
color: var(--accent-color);
|
|
font-weight: 700;
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.badge-year {
|
|
background: #f1f5f9;
|
|
color: #475569;
|
|
border-radius: 6px;
|
|
padding: 4px 8px;
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* Buttons */
|
|
.btn-primary {
|
|
border-radius: 8px;
|
|
font-weight: 600;
|
|
background-color: var(--accent-color);
|
|
border-color: var(--accent-color);
|
|
padding: 0.5rem 1.5rem;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background-color: #1d4ed8;
|
|
border-color: #1d4ed8;
|
|
}
|
|
|
|
/* Admin Sidebar */
|
|
.sidebar {
|
|
width: var(--sidebar-width);
|
|
background: #0f172a;
|
|
min-height: 100vh;
|
|
position: fixed;
|
|
left: 0;
|
|
top: 0;
|
|
padding: 20px;
|
|
color: white;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.main-content {
|
|
margin-left: var(--sidebar-width);
|
|
padding: 40px;
|
|
}
|
|
|
|
.sidebar .nav-link {
|
|
color: #94a3b8;
|
|
border-radius: 8px;
|
|
margin-bottom: 5px;
|
|
padding: 12px 15px;
|
|
transition: all 0.3s;
|
|
border: none;
|
|
background: none;
|
|
width: 100%;
|
|
text-align: left;
|
|
text-decoration: none;
|
|
display: block;
|
|
}
|
|
|
|
.sidebar .nav-link:hover, .sidebar .nav-link.active {
|
|
background: #1e293b;
|
|
color: white;
|
|
}
|
|
|
|
.sidebar .nav-link.active {
|
|
background: var(--accent-color);
|
|
color: white;
|
|
}
|
|
|
|
/* Dashboard Cards */
|
|
.stat-card {
|
|
background: white;
|
|
border: none;
|
|
border-radius: 16px;
|
|
padding: 25px;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.table-card {
|
|
background: white;
|
|
border: none;
|
|
border-radius: 16px;
|
|
overflow: hidden;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
/* Form Cards */
|
|
.form-card {
|
|
background: white;
|
|
border-radius: 16px;
|
|
padding: 30px;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
/* Badges */
|
|
.bg-soft-primary { background-color: #e0e7ff; }
|
|
.bg-soft-success { background-color: #dcfce7; }
|
|
.bg-soft-warning { background-color: #fef9c3; }
|
|
.w-fit-content { width: fit-content; }
|
|
|
|
/* Footer */
|
|
.footer {
|
|
background-color: #0f172a;
|
|
color: #94a3b8;
|
|
padding: 60px 0 30px;
|
|
} |