/* THE BIKE SANCTUARY - Official Black & White Theme */

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-primary: #000000;
    --text-secondary: #6c757d;
    --text-tertiary: #495057;
    --border-color: #dee2e6;
    --border-light: #ced4da;
    --accent-primary: #000000;
    --accent-secondary: #495057;
    --success: #198754;
    --success-bg: #d1e7dd;
    --error: #dc3545;
    --error-bg: #f8d7da;
    --primary: #000000;
    --primary-hover: #212529;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-lg: rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] {
    --bg-primary: #000000;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #adb5bd;
    --text-tertiary: #dee2e6;
    --border-color: #2d2d2d;
    --border-light: #495057;
    --accent-primary: #ffffff;
    --accent-secondary: #adb5bd;
    --success: #198754;
    --success-bg: #0f3a2b;
    --error: #dc3545;
    --error-bg: #58151c;
    --primary: #ffffff;
    --primary-hover: #e9ecef;
    --shadow: rgba(255, 255, 255, 0.05);
    --shadow-lg: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
}

.loading-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.loading-screen .bike-icon {
    font-size: 5rem;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Login Page - Black & White with wrench logo style */
.auth-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-primary);
    padding: 20px;
}

.auth-container {
    max-width: 450px;
    width: 100%;
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.bike-sanctuary-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background: #000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

[data-theme="dark"] .bike-sanctuary-logo {
    background: #fff;
    color: #000;
}

.auth-logo h1 {
    font-size: 2rem;
    margin-bottom: 5px;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.auth-logo p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.auth-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-light);
    border-radius: 4px;
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.form-group input:disabled {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.btn {
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-primary);
}

[data-theme="dark"] .btn-primary {
    background-color: var(--accent-primary);
    color: #000;
}

[data-theme="dark"] .btn-primary:hover {
    background-color: transparent;
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-tertiary);
}

.btn-danger {
    background-color: var(--error);
    color: white;
    border-color: var(--error);
}

.btn-danger:hover {
    background-color: transparent;
    color: var(--error);
}

.btn-success {
    background-color: var(--success);
    color: white;
    border-color: var(--success);
}

.btn-success:hover {
    background-color: transparent;
    color: var(--success);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
    margin-right: 5px;
}

.theme-toggle {
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
}

.error, .success {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    border-left: 4px solid;
}

.error {
    color: var(--error);
    background-color: var(--error-bg);
    border-color: var(--error);
}

.success {
    color: var(--success);
    background-color: var(--success-bg);
    border-color: var(--success);
}

.auth-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Dashboard */
.navbar {
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
    padding: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-brand .bike-icon {
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background 0.3s;
    cursor: pointer;
    font-weight: 600;
}

.nav-link:hover {
    background: var(--bg-tertiary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    margin-bottom: 30px;
    border-bottom: 3px solid var(--accent-primary);
    padding-bottom: 15px;
}

.dashboard-header h1 {
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.bikes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.bikes-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 25px;
}

.bike-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    cursor: pointer;
}

.bike-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--shadow-lg);
    border-color: var(--accent-primary);
}

.bike-card-large {
    grid-column: span 1;
}

.bike-card-header {
    background: var(--accent-primary);
    color: var(--bg-primary);
    padding: 20px;
    border-bottom: 2px solid var(--accent-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

[data-theme="dark"] .bike-card-header {
    background: var(--accent-primary);
    color: #000;
}

.bike-card-header h3 {
    font-weight: 700;
    letter-spacing: 1px;
}

.bike-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: var(--bg-tertiary);
    border-bottom: 2px solid var(--border-color);
}

.bike-card-body {
    padding: 20px;
    color: var(--text-primary);
}

.bike-notes {
    margin-top: 15px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    border-left: 4px solid var(--accent-primary);
}

.bike-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.bike-image-thumb {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.bike-image-thumb:hover {
    transform: scale(1.05);
    border-color: var(--accent-primary);
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.tab {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-right: 2px solid var(--border-color);
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab:last-child {
    border-right: none;
}

.tab:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.tab.active {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

[data-theme="dark"] .tab.active {
    background: var(--accent-primary);
    color: #000;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid var(--border-color);
}

table th, table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

table th {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

[data-theme="dark"] table th {
    background-color: var(--accent-primary);
    color: #000;
}

table tr:hover {
    background-color: var(--bg-tertiary);
}

.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-bar input, .filter-bar select {
    padding: 10px 12px;
    border: 2px solid var(--border-light);
    border-radius: 4px;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.filter-bar button {
    padding: 10px 20px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

[data-theme="dark"] .modal-overlay {
    background-color: rgba(255, 255, 255, 0.1);
}

.modal {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 3px solid var(--accent-primary);
    border-radius: 8px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.transfer-code-display {
    background: var(--accent-primary);
    color: var(--bg-primary);
    padding: 20px;
    border-radius: 4px;
    text-align: center;
    margin: 20px 0;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 6px;
    font-family: 'Courier New', monospace;
    border: 3px solid var(--border-color);
}

[data-theme="dark"] .transfer-code-display {
    color: #000;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.modal-header h2 {
    font-weight: 700;
    letter-spacing: 1px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 300;
}

.close-btn:hover {
    color: var(--text-primary);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge {
    padding: 4px 12px;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid;
}

.badge-admin {
    background: #000;
    color: #fff;
    border-color: #000;
}

.badge-user {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.hidden {
    display: none !important;
}

/* Bike Icon - Wrench Style */
.bike-icon {
    font-size: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .bikes-grid, .bikes-grid-large {
        grid-template-columns: 1fr;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .admin-tabs {
        flex-direction: column;
    }
    
    .tab {
        border-right: none;
        border-bottom: 2px solid var(--border-color);
    }
    
    .tab:last-child {
        border-bottom: none;
    }
}

/* Professional Touches */
h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--text-primary);
}

a {
    color: var(--accent-primary);
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

/* Service Items */
.service-item-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.service-item-row input {
    padding: 8px;
    border: 2px solid var(--border-light);
    border-radius: 4px;
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Logo Style - Similar to The Bike Sanctuary */
.sanctuary-logo {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.sanctuary-logo::before {
    content: '🔧';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
}

.sanctuary-logo::after {
    content: '🔧';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
    font-size: 3rem;
}





