/* Parking Admin - Minimal CSS */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.5;
}

/* Navbar */
.navbar {
    background: #1a1a2e;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
}

.navbar .brand {
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
}

.nav-links a:hover { color: #fff; }
.nav-links .logout { color: #e74c3c; }

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Typography */
h1 { font-size: 1.5rem; margin-bottom: 1rem; }
h2 { font-size: 1.2rem; margin: 1.5rem 0 0.75rem; }

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-success { background: #d4edda; color: #155724; }
.alert-error { background: #f8d7da; color: #721c24; }

/* Login */
.login-box {
    max-width: 320px;
    margin: 100px auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.login-box h1 { margin-bottom: 1.5rem; }

.login-box input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.login-box button {
    width: 100%;
    padding: 0.75rem;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.login-box button:hover { background: #16213e; }

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #1a1a2e;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
}

/* Tables */
.data-table {
    width: 100%;
    background: #fff;
    border-radius: 8px;
    border-collapse: collapse;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 0.85rem;
}

.data-table tr:hover { background: #f8f9fa; }
.data-table input[type="checkbox"] { cursor: pointer; }

.data-table input[type="text"],
.data-table input[type="url"] {
    padding: 0.4rem;
    border: 1px solid #ddd;
    border-radius: 3px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 3px;
}

.badge-active { background: #d4edda; color: #155724; }
.badge-inactive { background: #f8d7da; color: #721c24; }
.badge-pending { background: #fff3cd; color: #856404; }
.badge-sale { background: #cce5ff; color: #004085; margin-left: 0.5rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #e9ecef;
    color: #333;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
}

.btn:hover { background: #dee2e6; }
.btn-primary { background: #1a1a2e; color: #fff; }
.btn-primary:hover { background: #16213e; }
.btn-danger { background: #dc3545; color: #fff; }
.btn-danger:hover { background: #c82333; }
.btn-sm { padding: 0.3rem 0.6rem; font-size: 0.8rem; }
.btn.active { background: #1a1a2e; color: #fff; }

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

/* Alphabet Filter */
.alphabet-filter {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.alphabet-filter a {
    display: inline-block;
    padding: 0.3rem 0.5rem;
    background: #e9ecef;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.85rem;
}

.alphabet-filter a:hover { background: #dee2e6; }
.alphabet-filter a.active { background: #1a1a2e; color: #fff; }

/* Filter Form */
.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.filter-form input,
.filter-form select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.filter-form input[type="text"] { width: 200px; }

/* Bulk Actions */
.bulk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.bulk-actions select,
.bulk-actions input { padding: 0.4rem; }

/* Form Card */
.form-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    max-width: 600px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea { resize: vertical; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-inline {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.form-inline input { width: auto; }

.delete-form {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 0.25rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination .current {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    background: #e9ecef;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
}

.pagination a:hover { background: #dee2e6; }
.pagination .current { background: #1a1a2e; color: #fff; }

/* Responsive */
@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .bulk-actions { flex-direction: column; align-items: stretch; }
    .nav-links { display: none; }
}
