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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

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




h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0071ce;
}

/* Form Elements */
input, select, textarea {
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    width: 100%;
    font-size: 14px;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #0071ce;
    box-shadow: 0 0 0 0.25rem rgba(0, 113, 206, 0.25);
}

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

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

/* Inline error styling */
.form-group.has-error .form-control,
.has-error input,
.has-error select,
.has-error textarea {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.15rem rgba(220, 53, 69, 0.15);
}

.input-error-message {
    color: #dc3545;
    margin-top: 6px;
    display: block;
    font-size: 12px;
}

/* Buttons */
.btn {
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #0071ce;
    color: white;
}

.btn-primary:hover {
    background-color: #005aa3;
    color: white;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
    color: white;
}

.btn-dark {
    background-color: #343a40;
    color: white;
}

.btn-dark:hover {
    background-color: #23272b;
    color: white;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
    color: white;
}

.btn-outline-primary {
    background-color: transparent;
    border: 1px solid #0071ce;
    color: #0071ce;
}

.btn-outline-primary:hover {
    background-color: #0071ce;
    color: white;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Alerts */
.alert {
    padding: 12px 44px 12px 20px; /* extra right space for close button */
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Alert enhancements (non-admin) */
.alert {
    position: relative;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.alert.hide {
    opacity: 0;
    transform: translateY(-6px);
}

.alert .close-alert {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    color: inherit;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.6;
}

.alert .close-alert:hover {
    opacity: 1;
}

/* Support Bootstrap-like close button on non-admin pages */
.alert .btn-close {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    opacity: 0.6;
    cursor: pointer;
}

/* Fallback glyph when Bootstrap icons are not present */
.alert .btn-close::before {
    content: '×';
    font-size: 18px;
    line-height: 1;
}

/* Spacing for global alerts under sticky header (non-admin) */
#global-alerts {
    margin-top: 16px; /* keep away from header */
    padding-top: 4px;
    padding-bottom: 0;
}

#global-alerts .alert {
    margin-left: 0;
    margin-right: 0;
}

/* Dashboard */
.dashboard-header {
    padding: 20px 0;
    background-color: #f8f9fa;
    margin-bottom: 30px;
}

.dashboard-content {
    padding: 20px 0;
}

.dashboard-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    height: 100%;
}

.dashboard-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.dashboard-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.stat-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    flex: 1;
    margin: 0 10px;
    text-align: center;
}

.stat-card:first-child {
    margin-left: 0;
}

.stat-card:last-child {
    margin-right: 0;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #0071ce;
}

.stat-label {
    font-size: 14px;
    color: #6c757d;
}

/* Navigation Menu */
.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    margin-bottom: 10px;
}

.nav-menu li a {
    display: block;
    padding: 10px;
    border-radius: 4px;
    color: #333;
    transition: all 0.3s ease;
}

.nav-menu li a:hover, .nav-menu li a.active {
    background-color: #f8f9fa;
    color: #0071ce;
}

.nav-menu li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Vehicle Form */
.vehicle-form {
    max-width: 800px;
    margin: 0 auto;
}

.vehicle-form .form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.vehicle-form .form-group {
    padding: 0 15px;
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .vehicle-form .form-group.col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Header Styles */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-bar {
    background-color: #343a40;
    color: #fff;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar a {
    color: #fff;
}

.top-bar a:hover {
    color: #0071ce;
}

.site-branding {
    padding: 15px 0;
}

.site-branding .logo {
    font-size: 24px;
    font-weight: 700;
    color: #0071ce;
}

.site-navigation {
    background-color: #f8f9fa;
    padding: 10px 0;
}

.nav-menu-horizontal {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu-horizontal li {
    margin-right: 20px;
}

.nav-menu-horizontal li:last-child {
    margin-right: 0;
}

.nav-menu-horizontal li a {
    color: #333;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-menu-horizontal li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #0071ce;
    transition: width 0.3s ease;
}

.nav-menu-horizontal li a:hover:after,
.nav-menu-horizontal li a.active:after {
    width: 100%;
}

/* Footer Styles */
.site-footer {
    background-color: #343a40;
    color: #fff;
    padding: 50px 0 20px;
}

.site-footer h5 {
    color: #fff;
    margin-bottom: 20px;
    font-weight: 600;
}

.site-footer p {
    color: rgba(255, 255, 255, 0.7);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-social {
    display: flex;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: #0071ce;
}

.newsletter-form {
    margin-top: 20px;
}

.newsletter-form input {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    margin-bottom: 10px;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .btn {
    background-color: #0071ce;
    color: #fff;
    border: none;
}

.newsletter-form .btn:hover {
    background-color: #005aa3;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* Shop Page Styles */
.page-header {
    background-color: #f8f9fa;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    color: #6c757d;
}

.filter-section {
    /* Removed */
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

.product-card:hover {
    /* Removed transform: translateY(-5px); */
    /* Removed box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15); */
}

.product-image {
    height: 300px;
    background-size: cover;
    background-position: center;
    background-color: #f3eef0;
}

.product-card .card-body {
    padding: 20px;
}

.product-title {
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 20px;
    color: #000;
}

.product-price {
    font-weight: 600;
    font-size: 16px;
    color: #666666;
    margin: 10px 0;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.rating {
    color: #ffc107;
}

/* Responsive Utility Classes */
.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

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

.mb-1 {
    margin-bottom: 5px;
}

.mb-2 {
    margin-bottom: 10px;
}

.mb-3 {
    margin-bottom: 15px;
}

.mb-4 {
    margin-bottom: 20px;
}

.mb-5 {
    margin-bottom: 30px;
}

.mt-1 {
    margin-top: 5px;
}

.mt-2 {
    margin-top: 10px;
}

.mt-3 {
    margin-top: 15px;
}

.mt-4 {
    margin-top: 20px;
}

.mt-5 {
    margin-top: 30px;
}

.py-1 {
    padding-top: 5px;
    padding-bottom: 5px;
}

.py-2 {
    padding-top: 10px;
    padding-bottom: 10px;
}

.py-3 {
    padding-top: 15px;
    padding-bottom: 15px;
}

.py-4 {
    padding-top: 20px;
    padding-bottom: 20px;
}

.py-5 {
    padding-top: 30px;
    padding-bottom: 30px;
}

/* Submissions Table Styles */
.submissions-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.submissions-table th,
.submissions-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.submissions-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.submissions-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.submissions-table tr:hover {
    background-color: #e9ecef;
}

/* Add loading indicator styles */
.loading-select {
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 0.7em top 50%;
    background-size: 0.65em auto;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
} 