229 lines
5.6 KiB
CSS
229 lines
5.6 KiB
CSS
/* AFG CARS Enterprise Style - 100% Offline */
|
|
:root {
|
|
--primary: #e63946;
|
|
--secondary: #1d3557;
|
|
--accent: #457b9d;
|
|
--light: #f1faee;
|
|
--dark: #0f172a;
|
|
--glass-bg: rgba(255, 255, 255, 0.05);
|
|
--glass-border: rgba(255, 255, 255, 0.1);
|
|
--shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
}
|
|
|
|
body {
|
|
background-color: var(--dark);
|
|
color: var(--light);
|
|
line-height: 1.6;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
a { text-decoration: none; color: inherit; transition: 0.3s; }
|
|
ul { list-style: none; }
|
|
|
|
/* Components */
|
|
.btn {
|
|
display: inline-block;
|
|
padding: 10px 20px;
|
|
background: var(--primary);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
font-weight: bold;
|
|
text-align: center;
|
|
}
|
|
.btn:hover { background: #c1121f; transform: translateY(-2px); }
|
|
.btn-outline { background: transparent; border: 2px solid var(--primary); }
|
|
.btn-outline:hover { background: var(--primary); }
|
|
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 0 20px;
|
|
}
|
|
|
|
/* Navbar */
|
|
.navbar {
|
|
background: rgba(15, 23, 42, 0.95);
|
|
backdrop-filter: blur(10px);
|
|
border-bottom: 1px solid var(--glass-border);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 1000;
|
|
padding: 15px 0;
|
|
}
|
|
.navbar .container {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
.logo { font-size: 1.5rem; font-weight: bold; color: var(--primary); }
|
|
.nav-links { display: flex; gap: 20px; }
|
|
.nav-links a:hover { color: var(--primary); }
|
|
|
|
/* Hero */
|
|
.hero {
|
|
height: 80vh;
|
|
background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/hero.jpg');
|
|
background-size: cover;
|
|
background-position: center;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-align: center;
|
|
}
|
|
.hero h1 { font-size: 3rem; margin-bottom: 20px; }
|
|
.hero p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; }
|
|
|
|
/* Cards */
|
|
.grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
gap: 30px;
|
|
margin: 50px 0;
|
|
}
|
|
.card {
|
|
background: var(--glass-bg);
|
|
border: 1px solid var(--glass-border);
|
|
border-radius: 10px;
|
|
overflow: hidden;
|
|
backdrop-filter: blur(4px);
|
|
transition: 0.3s;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
|
|
.card img { width: 100%; height: 200px; object-fit: cover; }
|
|
.card-body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
|
|
.card-title { font-size: 1.2rem; margin-bottom: 10px; }
|
|
.card-price { color: var(--primary); font-size: 1.1rem; font-weight: bold; margin-bottom: 10px; }
|
|
.card-meta { font-size: 0.9rem; color: #ccc; margin-bottom: 15px; }
|
|
.card-actions { margin-top: auto; }
|
|
.badge {
|
|
background: var(--accent);
|
|
padding: 3px 8px;
|
|
border-radius: 4px;
|
|
font-size: 0.8rem;
|
|
margin-right: 5px;
|
|
}
|
|
|
|
/* Forms */
|
|
.form-group { margin-bottom: 15px; }
|
|
.form-control {
|
|
width: 100%;
|
|
padding: 10px;
|
|
background: rgba(255,255,255,0.05);
|
|
border: 1px solid var(--glass-border);
|
|
color: white;
|
|
border-radius: 5px;
|
|
}
|
|
.form-control:focus { outline: none; border-color: var(--primary); }
|
|
|
|
/* Auth Box */
|
|
.auth-box {
|
|
max-width: 400px;
|
|
margin: 50px auto;
|
|
padding: 40px;
|
|
background: var(--glass-bg);
|
|
border: 1px solid var(--glass-border);
|
|
border-radius: 10px;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Admin Dashboard */
|
|
.dashboard-container {
|
|
display: flex;
|
|
min-height: calc(100vh - 60px);
|
|
}
|
|
.sidebar {
|
|
width: 250px;
|
|
background: rgba(0,0,0,0.3);
|
|
padding: 20px;
|
|
border-right: 1px solid var(--glass-border);
|
|
}
|
|
.sidebar a {
|
|
display: block;
|
|
padding: 12px;
|
|
margin-bottom: 5px;
|
|
border-radius: 5px;
|
|
}
|
|
.sidebar a.active, .sidebar a:hover {
|
|
background: var(--primary);
|
|
color: white;
|
|
}
|
|
.main-content { padding: 30px; flex-grow: 1; overflow-y: auto; }
|
|
.stat-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 20px;
|
|
margin-bottom: 30px;
|
|
}
|
|
.stat-card {
|
|
background: var(--glass-bg);
|
|
padding: 20px;
|
|
border-radius: 10px;
|
|
text-align: center;
|
|
border: 1px solid var(--glass-border);
|
|
}
|
|
.stat-number { font-size: 2rem; font-weight: bold; color: var(--primary); }
|
|
|
|
/* Tables */
|
|
.table-responsive { overflow-x: auto; }
|
|
table { width: 100%; border-collapse: collapse; margin-top: 20px; }
|
|
th, td { padding: 12px; text-align: left; border-bottom: 1px solid var(--glass-border); }
|
|
th { background: rgba(255,255,255,0.05); }
|
|
tr:hover { background: rgba(255,255,255,0.02); }
|
|
|
|
/* Installment Calculator */
|
|
.calculator {
|
|
background: var(--glass-bg);
|
|
padding: 20px;
|
|
border-radius: 10px;
|
|
margin-top: 30px;
|
|
border: 1px solid var(--glass-border);
|
|
}
|
|
|
|
/* Footer */
|
|
footer {
|
|
background: rgba(0,0,0,0.5);
|
|
padding: 40px 0;
|
|
margin-top: auto;
|
|
border-top: 1px solid var(--glass-border);
|
|
text-align: center;
|
|
}
|
|
|
|
/* Helpers */
|
|
.text-center { text-align: center; }
|
|
.mt-5 { margin-top: 3rem; }
|
|
.mb-5 { margin-bottom: 3rem; }
|
|
.text-danger { color: #e63946; }
|
|
.text-success { color: #2a9d8f; }
|
|
|
|
/* Filter Bar */
|
|
.filter-bar {
|
|
background: var(--glass-bg);
|
|
padding: 20px;
|
|
border-radius: 10px;
|
|
margin-bottom: 30px;
|
|
display: flex;
|
|
gap: 15px;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
}
|
|
.filter-bar select, .filter-bar input {
|
|
padding: 8px;
|
|
background: rgba(0,0,0,0.3);
|
|
border: 1px solid var(--glass-border);
|
|
color: white;
|
|
border-radius: 5px;
|
|
}
|