* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Nunito', 'Poppins', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; background-color: #f8faff; color: #2d3748; line-height: 1.6; }
nav { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); padding: 1.2rem 0; box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3); border-radius: 0 0 20px 20px; margin-bottom: 2rem; }
nav .nav-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
nav a { color: #fff; text-decoration: none; font-weight: 700; margin-right: 20px; transition: transform 0.3s ease, color 0.3s; display: inline-block; }
nav a:hover { transform: translateY(-2px); color: #ffd700; }
.container { max-width: 1200px; margin: 0 auto 3rem auto; padding: 0 20px; }
h1 { margin-bottom: 2rem; font-size: 2.5rem; font-weight: 800; background: linear-gradient(135deg, #667eea, #764ba2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; border-bottom: none; display: inline-block; position: relative; }
h1::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 50%; height: 4px; background: #ffd700; border-radius: 2px; }
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.car-card { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: flex; flex-direction: column; border: 2px solid transparent; }
.car-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(118, 75, 162, 0.15); border-color: #667eea; }
.car-card img { width: 100%; height: 220px; object-fit: cover; border-bottom: 3px solid #f0f4f8; transition: transform 0.5s ease; }
.car-card:hover img { transform: scale(1.03); }
.car-card-body { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; z-index: 1; background: #fff; }
.car-card h2 { font-size: 1.4rem; margin-bottom: 10px; font-weight: 800; }
.car-card h2 a { color: #2d3748; text-decoration: none; transition: color 0.2s; }
.car-card h2 a:hover { color: #667eea; }
.car-price { font-size: 1.3rem; font-weight: 900; color: #fff; background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%); margin-top: auto; padding: 8px 15px; border-radius: 12px; display: inline-block; align-self: flex-start; box-shadow: 0 4px 10px rgba(255, 8, 68, 0.2); }
.car-detail { display: flex; gap: 40px; background: #fff; padding: 30px; border-radius: 24px; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05); }
.car-detail img { max-width: 50%; border-radius: 16px; object-fit: cover; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.car-detail-info { flex-grow: 1; display: flex; flex-direction: column; }
.car-detail-info .car-price { align-self: flex-start; margin: 20px 0; font-size: 1.8rem; padding: 10px 20px; border-radius: 16px; }
.table-responsive { overflow-x: auto; background: #fff; padding: 20px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th, td { padding: 15px; text-align: left; border-bottom: 1px solid #edf2f7; }
th { background-color: #f8faff; color: #764ba2; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem; border-bottom: 2px solid #e2e8f0; }
tr:last-child td { border-bottom: none; }
tr { transition: background-color 0.2s; }
tr:hover { background-color: #f8faff; }
.btn { display: inline-block; padding: 12px 24px; background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; text-decoration: none; border: none; border-radius: 999px; cursor: pointer; font-size: 1rem; font-weight: 700; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3); text-align: center; }
.btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 25px rgba(118, 75, 162, 0.4); color: #fff; }
.btn-danger { background: linear-gradient(135deg, #f5365c, #f56036); box-shadow: 0 4px 15px rgba(245, 54, 92, 0.3); }
.btn-danger:hover { box-shadow: 0 8px 25px rgba(245, 54, 92, 0.4); }
form { background: #fff; padding: 30px; border-radius: 24px; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05); max-width: 600px; border: 1px solid #edf2f7; margin-top: 10px; }
form p { margin-bottom: 20px; }
label { display: block; font-weight: 700; margin-bottom: 8px; color: #4a5568; font-size: 0.95rem; }
input[type="text"], input[type="number"], textarea, input[type="file"] { width: 100%; padding: 15px; border: 2px solid #e2e8f0; border-radius: 12px; font-family: inherit; font-size: 1rem; transition: all 0.3s ease; background-color: #f8faff; color: #2d3748; }
input:focus, textarea:focus { outline: none; border-color: #667eea; background-color: #fff; box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15); }
@media (max-width: 768px) {
    .car-detail { flex-direction: column; padding: 20px; }
    .car-detail img { max-width: 100%; }
    nav { border-radius: 0; }
    nav .nav-container { flex-direction: column; gap: 15px; }
    .car-grid { gap: 20px; }
}