:root {
    --royal-red: #921a13;
    --royal-red-dark: #7a1510;
    --royal-red-light: #a82620;
    --royal-gold: #d4af37;
    --royal-gold-light: #e5c76b;
    --royal-black: #000000;
    --royal-dark-gray: #222222;
    --royal-gray: #333333;
    --royal-light-gray: rgb(249, 249, 249);
    --royal-white: #ffffff;
}

body {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    line-height: 1.6;
    background-color: var(--royal-light-gray);
    color: var(--royal-gray);
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    z-index: -1;
}

header {
    background-color: var(--royal-light-gray);
    padding: 1rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--royal-red) 0%, var(--royal-gold) 50%, var(--royal-red) 100%);
}

.logo-container img {
    max-height: 50px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.logo-container img:hover {
    transform: scale(1.05);
}

nav a {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--royal-gray) !important;
    transition: all 0.3s ease;
    margin-left: 1.5rem;
    position: relative;
}

nav a:hover {
    color: var(--royal-gold) !important;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, var(--royal-red), var(--royal-gold));
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

main {
    min-height: 70vh;
    padding: 3rem 0;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

h1::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    bottom: 0;
    left: 20%;
    background: linear-gradient(90deg, var(--royal-red), var(--royal-gold), var(--royal-red));
}

.page-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

form {
    background-color: var(--royal-white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    border: none;
    overflow: hidden;
    position: relative;
}

form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--royal-red) 0%, var(--royal-gold) 50%, var(--royal-red) 100%);
}

.form-label {
    font-weight: 600;
    color: var(--royal-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control,
.form-select {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--royal-red);
    box-shadow: 0 0 0 0.2rem rgba(146, 26, 19, 0.15);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--royal-red), var(--royal-red-dark));
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--royal-red-dark), var(--royal-red));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(146, 26, 19, 0.3);
}

.btn-primary:hover::before {
    left: 100%;
}

.premium-texture-bg {
    background-color: #111;
    position: relative;
    overflow: hidden;
}

.premium-texture-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 100%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M0,0 L100,100 M20,0 L100,80 M0,20 L80,100 M40,0 L100,60 M0,40 L60,100 M60,0 L100,40 M0,60 L40,100 M80,0 L100,20 M0,80 L20,100" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    background-size: cover;
    z-index: 1;
}

.premium-texture-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(146, 26, 19, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 2;
}

footer {
    background-color: var(--royal-light-gray);
    color: var(--royal-gray);
    padding: 2rem 0;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--royal-red) 0%, var(--royal-gold) 50%, var(--royal-red) 100%);
}

footer img {
    filter: brightness(1.2) contrast(1.1);
    max-height: 60px;
    transition: transform 0.3s ease;
}

footer img:hover {
    transform: scale(1.05);
}

.warranty-info {
    background-color: var(--royal-white);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.warranty-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--royal-red), var(--royal-gold));
}

.warranty-info h3 {
    color: var(--royal-red);
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.warranty-info ul {
    padding-left: 1.5rem;
}

.warranty-info li {
    margin-bottom: 0.5rem;
    position: relative;
}

.warranty-info li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--royal-red);
    position: absolute;
    left: -1.5rem;
}

.chevron-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.chevron-pattern::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(135deg, transparent 49.5%, rgba(212, 175, 55, 0.15) 49.5%, rgba(212, 175, 55, 0.15) 50.5%, transparent 50.5%),
        linear-gradient(45deg, transparent 49.5%, rgba(212, 175, 55, 0.1) 49.5%, rgba(212, 175, 55, 0.1) 50.5%, transparent 50.5%);
    background-size: 30px 30px;
    z-index: 0;
}

/* Table Styling */
.table-responsive {
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.table {
    margin-bottom: 0;
    background-color: var(--royal-white);
}

.table thead th {
    background: linear-gradient(135deg, var(--royal-black), var(--royal-dark-gray));
    color: var(--royal-white);
    border: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 1rem;
    vertical-align: middle;
    position: relative;
}

.table thead th:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--royal-red), var(--royal-gold), var(--royal-red));
    opacity: 0.7;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table-hover tbody tr:hover {
    background-color: rgba(212, 175, 55, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.status-active {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    font-weight: 600;
    border-radius: 20px;
    padding: 5px 15px;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.status-out {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    font-weight: 600;
    border-radius: 20px;
    padding: 5px 15px;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.status-pending {
    background: linear-gradient(135deg, #fff3cd, #ffeeba);
    color: #856404;
    font-weight: 600;
    border-radius: 20px;
    padding: 5px 15px;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.status-approved {
    background: linear-gradient(135deg, #cce5ff, #b8daff);
    color: #004085;
    font-weight: 600;
    border-radius: 20px;
    padding: 5px 15px;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.status-rejected {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    font-weight: 600;
    border-radius: 20px;
    padding: 5px 15px;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.status-cancelled {
    background: linear-gradient(135deg, #e2e3e5, #d6d8db);
    color: #383d41;
    font-weight: 600;
    border-radius: 20px;
    padding: 5px 15px;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }

    nav a {
        font-size: 12px;
        margin-left: 1rem;
    }

    .btn-primary {
        padding: 0.6rem 1.2rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.5rem;
    }

    .page-description {
        font-size: 1rem;
    }

    nav a {
        font-size: 11px;
        margin-left: 0.75rem;
    }

    .form-label {
        font-size: 0.8rem;
    }

    .btn-primary {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* No Orders Message Styles */
#no-orders-message,
#no-orders-home-message {
    background-color: var(--royal-white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

#no-orders-message::before,
#no-orders-home-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--royal-red) 0%, var(--royal-gold) 50%, var(--royal-red) 100%);
}

#no-orders-message i,
#no-orders-home-message i {
    color: var(--royal-red);
    opacity: 0.7;
    animation: pulse 2s infinite;
}

#no-orders-message h3,
#no-orders-home-message h3 {
    color: var(--royal-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#no-orders-message .btn-outline-secondary,
#no-orders-home-message .btn-outline-secondary {
    border-color: var(--royal-gray);
    color: var(--royal-gray);
    transition: all 0.3s ease;
}

#no-orders-message .btn-outline-secondary:hover,
#no-orders-home-message .btn-outline-secondary:hover {
    background-color: var(--royal-gray);
    border-color: var(--royal-gray);
    color: var(--royal-white);
    transform: translateY(-2px);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }

    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

/* File Upload Styling */
.form-control[type="file"] {
    padding: 0.5rem;
}

.form-control[type="file"]:focus {
    border-color: var(--royal-red);
    box-shadow: 0 0 0 0.2rem rgba(146, 26, 19, 0.15);
}

#carImagesCount,
#carLicencesCount {
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

#carImagesCount.text-success,
#carLicencesCount.text-success {
    color: #28a745 !important;
}

#carImagesCount.text-danger,
#carLicencesCount.text-danger {
    color: #dc3545 !important;
}

#carImagesCount.text-muted,
#carLicencesCount.text-muted {
    color: #6c757d !important;
}

/* Painted Disclaimer Styling */
#paintedDisclaimer {
    border-left: 4px solid #ffc107;
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
    font-size: 0.9rem;
    animation: slideDown 0.3s ease-out;
}

#paintedDisclaimer i {
    color: #f39c12;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}