/* ============================================
   Car Manuals E-Commerce - Custom Styles
   ============================================ */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

/* General Styles */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Professional Font stack */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #333;
    /* Softer black */
    font-size: 0.95rem;
    /* Slightly smaller base for compactness */
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600 !important;
    /* Less bulky than bold (700) */
    color: #2c3e50;
    /* Professional dark blue-grey */
}

main {
    flex: 1;
}

/* Card Styles */
.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    /* softer shadow */
    transition: transform 0.2s, box-shadow 0.2s;
}

/* ... existing hover ... */

.card-header {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    /* refined weight */
}

/* Breadcrumb Updates */
.breadcrumb {
    background-color: transparent;
    /* Cleaner look */
    padding: 1rem 0;
    /* Remove horizontal padding */
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--warning-color) !important;
    /* Matches Hero Search Button */
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb-item.active {
    color: #6c757d;
}

.form-label {
    font-weight: 500;
    color: #444;
    font-size: 0.9rem;
    /* refined label size */
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-text {
    font-size: 0.875rem;
}

/* Button Styles */
.btn {
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Table Styles */
.table {
    background-color: white;
}

.table thead {
    background-color: var(--light-color);
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Alert Styles */
.alert {
    border-left: 4px solid;
    border-radius: 0.375rem;
}

.alert-success {
    border-left-color: var(--success-color);
}

.alert-danger {
    border-left-color: var(--danger-color);
}

.alert-warning {
    border-left-color: var(--warning-color);
}

.alert-info {
    border-left-color: var(--info-color);
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Cart Summary */
.cart-summary {
    position: sticky;
    top: 20px;
}

/* Order Summary */
.order-summary {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: 0.375rem;
}

.order-summary .row {
    margin-bottom: 0.5rem;
}

.order-summary .total-row {
    font-size: 1.25rem;
    font-weight: bold;
    border-top: 2px solid var(--dark-color);
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Download Link */
.download-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--success-color);
    color: white;
    text-decoration: none;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s;
}

.download-link:hover {
    background-color: #157347;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.download-link i {
    font-size: 1.25rem;
}

/* Expired Link */
.expired-link {
    background-color: var(--secondary-color);
    cursor: not-allowed;
    opacity: 0.6;
}

.expired-link:hover {
    background-color: var(--secondary-color);
    transform: none;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state i {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2.5rem 0;
    /* Reduced from 4rem */
    margin-bottom: 2rem;
    /* Kept or reduced slightly in context */
}

.hero-section h1 {
    font-size: 2.2rem;
    /* Reduced from 2.5rem */
    font-weight: bold;
    margin-bottom: 0.75rem;
    /* Reduced from 1rem */
}

.hero-section p {
    font-size: 1.1rem;
    /* Reduced from 1.25rem */
    opacity: 0.9;
}

/* Featured Brands */
.brand-card {
    text-align: center;
    padding: 2rem 1rem;
    background-color: white;
    border-radius: 0.375rem;
    transition: all 0.2s;
    cursor: pointer;
}

.brand-card:hover {
    background-color: var(--primary-color);
    color: white;
}

.brand-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .cart-summary {
        position: static;
        margin-top: 2rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Admin Panel Specific Styles */
.admin-sidebar {
    background-color: var(--dark-color);
    min-height: calc(100vh - 56px);
    padding: 1rem;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.75);
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
    transition: all 0.2s;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.admin-sidebar .nav-link i {
    margin-right: 0.5rem;
}

/* Stats Card */
.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 0.375rem;
}

.stats-card h3 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stats-card p {
    margin-bottom: 0;
    opacity: 0.9;
}

/* Pagination */
.pagination {
    margin-top: 2rem;
}

.page-link {
    color: var(--primary-color);
}

.page-link:hover {
    color: #0b5ed7;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Utility Classes */
.text-muted {
    color: var(--secondary-color) !important;
}

.bg-light-custom {
    background-color: #f8f9fa;
}

.shadow-sm-custom {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Motoro Theme Redesign Styles 
   ============================================ */
.hero-section-motoro {
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 100px 0 140px;
    /* Extra bottom padding for overlap */
    margin-bottom: 0;
}

.search-strip-container {
    background: #fff;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    margin-top: -60px;
    /* The overlap magic */
    position: relative;
    z-index: 10;
    border-radius: 4px;
}

/* Motoro Accent Colors */
.btn-motoro-green {
    background-color: #5cb85c;
    /* Motoro Green */
    border-color: #5cb85c;
    color: white;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 0;
    /* Square edges */
}

.btn-motoro-green:hover {
    background-color: #4cae4c;
    color: white;
}

.form-control-motoro,
.form-select-motoro {
    border-radius: 0;
    /* Square edges */
    border: 1px solid #eee;
    height: 45px;
    font-size: 0.9rem;
    color: #888;
}

.form-control-motoro:focus,
.form-select-motoro:focus {
    border-color: #f0ad4e;
    /* Motoro Orange Focus */
    box-shadow: none;
}

.accent-orange {
    color: #f0ad4e;
}

.accent-border-orange {
    border-left: 3px solid #f0ad4e;
    padding-left: 10px;
}

/* Brand Grid Clean Up */
.brand-grid-item {
    text-align: center;
    padding: 30px 10px;
    transition: all 0.3s ease;
}

.brand-grid-item:hover {
    transform: translateY(-5px);
}

.brand-grid-item img {
    max-height: 50px;
    /* Uniform height */
    opacity: 0.7;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.brand-grid-item:hover img {
    opacity: 1;
    filter: none;
}

.brand-name-small {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #999;
}