/* ROAM Car Rental - Modern Design */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@700;800;900&display=swap');

/* CSS Variables */
:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #e6b800;
    --accent-hover: #d4a800;
    --light: #f8f9fa;
    --dark: #0f0f1a;
    --text: #333;
    --text-muted: #6c757d;
    --border: #e5e7eb;
    --card-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
    --radius: 12px;
    --radius-lg: 20px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: #fff;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.navbar-brand i {
    font-size: 1.8rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text) !important;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-link:hover {
    color: var(--primary) !important;
}

/* Buttons */
.btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: var(--transition);
    border: none;
}

.btn-accent {
    background: var(--accent);
    color: var(--dark);
}

.btn-accent:hover {
    background: var(--accent-hover);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 184, 0, 0.4);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.btn-outline-dark {
    border: 2px solid var(--dark);
    background: transparent;
}

.btn-outline-dark:hover {
    background: var(--dark);
    color: #fff;
}

.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.6);
    background: transparent;
    color: #fff;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

/* Language Switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-switch a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.85rem;
    transition: var(--transition);
}

.lang-switch a:hover,
.lang-switch a.active {
    color: var(--primary);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: var(--dark);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.hero-section .container {
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-section {
        min-height: 70vh;
    }
}

/* Cards */
.card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* Car Cards */
.car-card {
    background: #fff;
}

.car-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.car-card:hover .card-img-top {
    transform: scale(1.05);
}

.car-card .card-body {
    padding: 1.5rem;
}

.car-price {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.car-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.spec-item {
    text-align: center;
}

.spec-icon {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.spec-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
}

/* Forms */
.form-control,
.form-select {
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(230, 184, 0, 0.15);
}

.form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: var(--dark);
    color: #fff;
    padding: 4rem 0 2rem;
}

footer a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--accent);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}

/* Badges */
.badge {
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-primary {
    background: #cce5ff;
    color: #004085;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-secondary {
    background: #e2e3e5;
    color: #383d41;
}

/* ================================ */
/* ADMIN PANEL STYLES              */
/* ================================ */

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Admin Sidebar */
.admin-sidebar {
    width: 260px;
    background: var(--dark);
    color: #fff;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    transition: var(--transition);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    text-decoration: none;
}

.sidebar-header i {
    font-size: 1.5rem;
    color: var(--accent);
}

.sidebar-header span {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 800;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav .nav-item {
    padding: 0 1rem;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem !important;
    color: rgba(255,255,255,0.6) !important;
    border-radius: var(--radius);
    margin-bottom: 0.25rem;
}

.sidebar-nav .nav-link i {
    width: 24px;
    font-size: 1.1rem;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: #fff !important;
}

.sidebar-nav .nav-link.active {
    background: var(--accent);
    color: var(--dark) !important;
}

.sidebar-nav .nav-link::after {
    display: none;
}

/* Admin Main Content */
.admin-main {
    flex: 1;
    margin-left: 260px;
    padding: 2rem;
    background: #f5f7fa;
    min-height: 100vh;
}

/* Admin Header */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.admin-header h1 {
    font-size: 1.75rem;
    margin: 0;
}

/* Stat Cards */
.stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Data Tables */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
    padding: 1rem;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
}

.table tbody tr:hover {
    background: rgba(230, 184, 0, 0.05);
}

/* Action Buttons */
.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.9rem;
}

.btn-group-sm .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
}

/* Modal Enhancements */
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
}

.modal-header {
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem;
}

/* Calendar Styles */
.calendar-container {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}

.fc {
    font-family: 'Inter', sans-serif;
}

.fc .fc-toolbar-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
}

.fc .fc-button-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.fc .fc-event {
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.75rem;
}

/* Filter Card */
.filter-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--card-shadow);
}

.filter-card .form-control,
.filter-card .form-select {
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
}

/* Pagination */
.pagination {
    gap: 0.25rem;
}

.page-link {
    border-radius: 8px;
    padding: 0.5rem 0.875rem;
    border: none;
    color: var(--text);
}

.page-link:hover {
    background: var(--accent);
    color: var(--dark);
}

.page-item.active .page-link {
    background: var(--primary);
    color: #fff;
}

/* Image Upload Preview */
.image-preview {
    width: 100%;
    height: 150px;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    background: #fafafa;
    position: relative;
    overflow: hidden;
}

.image-preview:hover {
    border-color: var(--accent);
    background: #fff;
}

.image-preview img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview .upload-text {
    text-align: center;
    color: var(--text-muted);
}

.image-preview .upload-text i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item .cover-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: var(--accent);
    color: var(--dark);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Responsive Admin */
@media (max-width: 992px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    
    .admin-sidebar.show {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
    }
}

/* ================================ */
/* PUBLIC PAGE SPECIFIC STYLES     */
/* ================================ */

/* Cars Page Filter */
.filter-sidebar {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    position: sticky;
    top: 100px;
}

.filter-sidebar h5 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    display: block;
}

/* Reservation Form */
.reservation-form {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

.price-summary {
    background: var(--light);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.price-row.total {
    border-top: 2px solid var(--border);
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-weight: 700;
    font-size: 1.25rem;
}

/* Success Page */
.success-icon {
    width: 100px;
    height: 100px;
    background: #d4edda;
    color: #155724;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 2rem;
}

/* About Page */
.about-hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--secondary) 100%);
    color: #fff;
    padding: 5rem 0;
}

.team-card {
    text-align: center;
}

.team-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

/* Contact Page */
.contact-info-card {
    background: var(--light);
    border-radius: var(--radius);
    padding: 2rem;
    height: 100%;
}

.contact-info-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* FAQ Page */
.accordion-item {
    border: none;
    margin-bottom: 1rem;
}

.accordion-button {
    background: #fff;
    border-radius: var(--radius) !important;
    box-shadow: var(--card-shadow);
    font-weight: 600;
    padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: var(--primary);
    color: #fff;
}

.accordion-body {
    background: #fff;
    border-radius: 0 0 var(--radius) var(--radius);
    margin-top: -0.5rem;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}

/* Loading States */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 4rem;
    color: var(--border);
    margin-bottom: 1rem;
}

.empty-state h4 {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Utilities */
.fw-black { font-weight: 900; }
.text-accent { color: var(--accent); }
.bg-accent { background: var(--accent); }
.rounded-xl { border-radius: var(--radius-lg); }

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Print Styles */
@media print {
    .admin-sidebar,
    .whatsapp-float,
    .btn {
        display: none !important;
    }
    
    .admin-main {
        margin-left: 0 !important;
    }
}
