/* TBM Application Styles */

/* Common Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    border-top: 5px solid #ff6b35; /* Test style to confirm CSS is loading */
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    margin: 0.25rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-outline {
    background-color: transparent;
    color: #007bff;
    border: 2px solid #007bff;
}

.btn-outline:hover {
    background-color: #007bff;
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Success Message */
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 0.75rem;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Menubar Styles */
.navbar {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    padding: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #ff6b35;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 70px;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 900;
    color: #ff6b35;
    text-decoration: none;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Arial Black', Arial, sans-serif;
}

.navbar-brand::before {
    content: "🏍️";
    margin-right: 0.5rem;
    font-size: 1.5rem;
}

.navbar-brand:hover {
    color: #fff;
    text-decoration: none;
    text-shadow: 0 0 10px #ff6b35;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item {
    margin: 0 0.2rem;
    position: relative;
}

.nav-link {
    color: #ccc;
    text-decoration: none;
    padding: 1rem 1.2rem;
    border-radius: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff6b35, #ffaa00);
    transition: left 0.3s ease;
}

.nav-link:hover {
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.nav-link:hover::before {
    left: 0;
}

.nav-link.active {
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    color: white;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
}

.user-menu {
    display: flex;
    align-items: center;
    color: white;
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 0.8rem;
    border: 2px solid #ff6b35;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.user-name {
    margin-right: 1rem;
    font-weight: 600;
    color: #ff6b35;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn-logout {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.3);
}

.btn-logout:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.5);
}

/* User Profile Dropdown Styles */
.user-profile {
    position: relative;
    cursor: pointer;
}

.user-profile-trigger {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.user-profile-trigger:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-icon {
    font-size: 0.7rem;
    margin-left: 0.5rem;
    color: #ccc;
    transition: transform 0.3s ease;
}

.user-profile:hover .dropdown-icon {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
    margin-top: 0.5rem;
}

.user-profile:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.dropdown-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    border: 2px solid #ff6b35;
}

.dropdown-user-info {
    display: flex;
    flex-direction: column;
}

.dropdown-user-name {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.dropdown-user-email {
    color: #666;
    font-size: 0.85rem;
    margin-top: 0.2rem;
}

.dropdown-divider {
    height: 1px;
    background-color: #eee;
    margin: 0;
}

.dropdown-menu {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

.dropdown-item {
    padding: 0;
}

.dropdown-item a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-item a:hover {
    background-color: #f8f9fa;
    color: #ff6b35;
}

.dropdown-item-icon {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.dropdown-logout {
    color: #dc3545 !important;
}

.dropdown-logout:hover {
    background-color: #fff5f5 !important;
}

.btn-login {
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    color: white;
    border: 2px solid #ff6b35;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

.btn-login:hover {
    background: transparent;
    color: #ff6b35;
    transform: translateY(-2px);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.5);
}

/* Chrome/Steel accent effects */
.navbar::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, silver 50%, transparent 100%);
}

/* Mobile Menu Styles */
.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-left: auto;
    position: relative;
    z-index: 1001;
}

.hamburger-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ff6b35;
    position: relative;
    transition: background-color 0.3s ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #ff6b35;
    transition: all 0.3s ease;
}

.hamburger-icon::before {
    top: -8px;
}

.hamburger-icon::after {
    bottom: -8px;
}

.mobile-menu-button:hover .hamburger-icon,
.mobile-menu-button:hover .hamburger-icon::before,
.mobile-menu-button:hover .hamburger-icon::after {
    background-color: #e55a2b;
}

/* Hamburger icon animation */
.mobile-menu-button.active .hamburger-icon {
    background-color: transparent;
}

.mobile-menu-button.active .hamburger-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-button.active .hamburger-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}

.mobile-menu-container {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    flex-direction: column;
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border-bottom: 3px solid #ff6b35;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
}

.mobile-user-menu {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-link {
    display: none; /* Hide by default, will be shown when mobile menu is active */
    align-items: center;
    padding: 0.8rem 0;
    color: #ccc;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    color: #ff6b35;
}

.mobile-nav-icon {
    margin-right: 0.8rem;
    font-size: 1.2rem;
}

.mobile-logout {
    color: #dc3545;
}

.mobile-login {
    color: #ff6b35;
    font-weight: 700;
}

.mobile-login:hover {
    color: #e55a2b;
}

/* Mobile Responsiveness for Menubar */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0 1rem;
        height: 70px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .navbar-brand {
        font-size: 1.4rem;
        margin-bottom: 0;
    }

    .mobile-menu-button {
        display: block;
    }

    .mobile-menu-container {
        position: fixed;
    }

    .mobile-menu-container.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-container.active .mobile-nav-link {
        display: flex;
        width: 100%;
        text-align: left;
    }

    /* Hide desktop navigation in mobile view */
    .navbar-container > .navbar-nav {
        display: none;
    }

    /* Style mobile navigation */
    .mobile-menu-container .navbar-nav {
        flex-direction: column;
        width: 100%;
        margin: 0.5rem 0;
    }

    .nav-item {
        margin: 0;
        width: 100%;
    }

    .nav-link {
        padding: 0.8rem 0;
        width: 100%;
        text-align: left;
    }

    .user-menu {
        display: none; /* Hide desktop user menu in mobile view */
    }

    .user-name {
        display: none;
    }

    .user-avatar {
        width: 35px;
        height: 35px;
    }

    /* No need to set additional properties for .mobile-nav-link here */

    .mobile-nav-link:hover {
        color: #ff6b35;
    }
}

@media (max-width: 480px) {
    .navbar-brand::before {
        display: none;
    }
}

/* Additional moto-themed elements */
.nav-item:nth-child(1) .nav-link::after { content: " 🔧"; font-size: 0.8rem; opacity: 0.7; }
.nav-item:nth-child(2) .nav-link::after { content: " ⚙️"; font-size: 0.8rem; opacity: 0.7; }
.nav-item:nth-child(3) .nav-link::after { content: " 🛠️"; font-size: 0.8rem; opacity: 0.7; }
.nav-item:nth-child(4) .nav-link::after { content: " 📊"; font-size: 0.8rem; opacity: 0.7; }

/* Index Page Styles */
.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px); /* Adjust based on menubar height */
    padding: 2rem 0;
}

.home-container {
    background-color: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.logo {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 1rem;
    font-weight: bold;
}

h1 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 2rem;
}

p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.button-group {
    margin-top: 2rem;
}

/* Dashboard Styles */
body.dashboard-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.dashboard-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    flex: 1;
}

.dashboard-header {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.welcome-text {
    color: #333;
    margin-bottom: 1rem;
}

.user-info {
    color: #666;
    line-height: 1.6;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-card h3 {
    color: #007bff;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

/* Login Page Styles */
body.login-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background-color: #f5f5f5;
    position: relative;
}

.login-container {
    background-color: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    width: 90%;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.btn-google {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #4285f4;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-google:hover {
    background-color: #3367d6;
}

/* Logout Page Styles */
.logout-container {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    width: 90%;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.logout-icon {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 1rem;
}

/* Access Denied Page Styles */
.access-denied-container {
    background-color: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    width: 90%;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.error-icon {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 1rem;
}

.contact-info {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1.5rem;
    border-left: 4px solid #007bff;
}

/* Utility Classes */
.mt-2 {
    margin-top: 2rem;
}

.inline-form {
    display: inline;
}

.login-note {
    color: #666;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

/* Contact Page Styles */
.map-container {
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #ff6b35;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    color: #ccc;
    padding: 2rem 0;
    border-top: 3px solid #ff6b35;
    margin-top: 2rem;
    position: relative;
}

.footer::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, silver 50%, transparent 100%);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-brand span {
    font-size: 1.5rem;
    font-weight: 900;
    color: #ff6b35;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Arial Black', Arial, sans-serif;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: #ccc;
    font-size: 0.9rem;
    margin: 0;
}

.footer-links {
    display: flex;
    justify-content: space-around;
}

.footer-section h4 {
    color: #ff6b35;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-section ul li a:hover {
    color: #ff6b35;
    text-decoration: none;
    padding-left: 5px;
}

.footer-copyright {
    text-align: right;
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #333;
    color: #fff;
    margin-left: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #ff6b35;
    transform: translateY(-3px);
}

/* Login Page Styles Overrides */
body.login-page .navbar {
    width: 100% !important;
}

body.login-page .navbar-container {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

/* Login Page Footer Styles */
body.login-page .footer {
    margin-top: auto;
    width: 100%;
}

/* Mobile Responsiveness for Footer */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-copyright {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

/* Motorcycle Offers Page Styles */
.offers-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.sidebar {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.offers-grid {
    flex: 3;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.offer-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.offer-image {
    height: 200px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.offer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-details {
    padding: 1.5rem;
}

.offer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.offer-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6b35;
    margin-bottom: 0.5rem;
}

.offer-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.offer-info-item {
    background-color: #f0f0f0;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #555;
}

.offer-description {
    color: #666;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.offer-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #ff6b35;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.offer-link:hover {
    background-color: #e55a2b;
}

.filter-section {
    margin-bottom: 1.5rem;
}

.filter-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #333;
}

.filter-form select,
.filter-form input {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.filter-form button {
    width: 100%;
    padding: 0.6rem;
    background-color: #ff6b35;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.filter-form button:hover {
    background-color: #e55a2b;
}

.reset-filters {
    display: block;
    text-align: center;
    margin-top: 0.8rem;
    color: #666;
    text-decoration: underline;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 0.5rem;
}

.pagination a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.pagination a:hover {
    background-color: #ddd;
}

.pagination a.active {
    background-color: #ff6b35;
    color: white;
}

.no-offers {
    text-align: center;
    padding: 3rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    color: #666;
}

/* Responsive adjustments for offers page */
@media (max-width: 768px) {
    .offers-container {
        flex-direction: column;
    }

    .sidebar {
        max-width: 100%;
        margin-bottom: 1.5rem;
    }

    .offers-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* Classes for inline styles */
.flex-gap-container {
    display: flex;
    gap: 0.5rem;
}

.promo-box {
    text-align: center;
    padding: 2rem;
    background-color: #f5f5f5;
    border-radius: 8px;
    margin: 1rem 0;
}

.margin-top-1 {
    margin-top: 1rem;
}

.no-border {
    border: 0;
}

/* Motorcycle Offer Detail Page Styles */
.offer-detail-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.main-image {
    width: 100%;
    height: 400px;
    background-color: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-gallery {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.thumbnail {
    width: 80px;
    height: 60px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.thumbnail:hover {
    transform: scale(1.05);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-info {
    flex: 1;
    min-width: 300px;
}

.offer-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.offer-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff6b35;
    margin-bottom: 1.5rem;
}

.offer-specs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.2rem;
}

.spec-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.offer-description-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.offer-description {
    line-height: 1.6;
    color: #444;
}

.contact-section {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-icon {
    font-size: 1.2rem;
    color: #ff6b35;
}

.contact-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #ff6b35;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.contact-button:hover {
    background-color: #e55a2b;
}

.related-offers-section {
    margin-top: 3rem;
}

.related-offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.offer-card-image {
    height: 200px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.offer-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-card-details {
    padding: 1.5rem;
}

.offer-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.offer-card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6b35;
    margin-bottom: 0.5rem;
}

.offer-card-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.offer-card-info-item {
    background-color: #f0f0f0;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #555;
}

.back-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 1rem;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #ddd;
}

/* Responsive adjustments for offer detail page */
@media (max-width: 768px) {
    .offer-detail-container {
        flex-direction: column;
    }

    .offer-gallery {
        max-width: 100%;
    }

    .main-image {
        height: 300px;
    }
}

.offer-gallery {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    margin-bottom: 20px;
}
.main-image {
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}
.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.thumbnail-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.thumbnail {
    width: 80px;
    height: 60px;
    border: 2px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s ease;
}
.thumbnail:hover {
    border-color: #007bff;
}
.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.thumbnail.active {
    border-color: #007bff;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-title {
    font-size: 2rem;
    color: #333;
}

.admin-form {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.admin-form h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #333;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 100px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-title {
    font-size: 2rem;
    color: #333;
}

.admin-form {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.admin-form h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #333;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-title {
    font-size: 2rem;
    color: #333;
}

.admin-actions {
    display: flex;
    gap: 1rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.admin-table th, .admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.admin-table tr:hover {
    background-color: #f8f9fa;
}

.admin-table .actions {
    display: flex;
    gap: 0.5rem;
}

.admin-form {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.admin-form h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #333;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 100px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

.status-active {
    color: #28a745;
    font-weight: 600;
}

.status-inactive {
    color: #dc3545;
    font-weight: 600;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 0.5rem;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.toggle-form-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.toggle-form-btn:hover {
    background-color: #0069d9;
}

#addOfferForm, #addMotorcycleForm {
    display: none;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-title {
    font-size: 2rem;
    color: #333;
}

.admin-actions {
    display: flex;
    gap: 1rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.admin-table th, .admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.admin-table tr:hover {
    background-color: #f8f9fa;
}

.admin-table .actions {
    display: flex;
    gap: 0.5rem;
}

.admin-form {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.admin-form h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #333;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 100px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

.status-active {
    color: #28a745;
    font-weight: 600;
}

.status-inactive {
    color: #dc3545;
    font-weight: 600;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 0.5rem;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.toggle-form-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.toggle-form-btn:hover {
    background-color: #0069d9;
}

#addOfferForm, #addMotorcycleForm {
    display: none;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-title {
    font-size: 2rem;
    color: #333;
}

.admin-form {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.admin-form h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #333;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* ==========================================================================
   PLAN-002 – styly přesunuté z inline atributů a <style> bloků (CSP style-src 'self')
   ========================================================================== */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.admin-section {
    margin-top: 2rem;
}

.admin-thumbnail {
    max-width: 100px;
    max-height: 75px;
}

.text-center {
    text-align: center;
}

/* Skryté POST formuláře, které odesílají tlačítka přes atribut form="…" */
.hidden-form {
    display: none;
}

.inline-form button {
    cursor: pointer;
}

/* Galerie fotek v editaci motocyklu (dříve inline <style> v edit-motorcycle.html) */
.pictures-gallery {
    margin-bottom: 20px;
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.gallery-item {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    width: 180px;
}

.gallery-image {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    height: 100px;
}

.gallery-thumbnail {
    max-width: 150px;
    max-height: 100px;
}

.gallery-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 5px;
}

.thumbnail-status {
    margin-bottom: 5px;
}

.badge {
    display: inline-block;
    padding: 0.25em 0.4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.badge-success {
    color: #fff;
    background-color: #28a745;
}

.picture-info {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-new-pictures {
    margin-top: 20px;
}

/* ==========================================================================
   PLAN-001 – Servis: zakázky, zákazníci, vozidla
   ========================================================================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.muted {
    color: #6c757d;
}

.plain-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plain-list li {
    padding: 0.25rem 0;
}

.info-message {
    background-color: #e7f1ff;
    color: #084298;
    border: 1px solid #b6d4fe;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.btn-sm {
    padding: 0.25rem 0.6rem;
    font-size: 0.85rem;
}

.workshop-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #eee;
}

.workshop-nav a {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #333;
    border-bottom: 3px solid transparent;
}

.workshop-nav a.active,
.workshop-nav a:hover {
    border-bottom-color: #ff6b35;
    color: #ff6b35;
}

.workshop-search {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.workshop-search input[type="search"] {
    flex: 1 1 320px;
    padding: 0.5rem;
}

.workshop-search select {
    padding: 0.5rem;
}

.workshop-columns-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.workshop-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    align-items: start;
}

.workshop-column {
    background: #f6f7f9;
    border-radius: 6px;
    padding: 0.75rem;
}

.workshop-column h3 {
    display: flex;
    justify-content: space-between;
    margin-top: 0;
}

.workshop-column .count {
    background: #ff6b35;
    color: #fff;
    border-radius: 999px;
    padding: 0 0.6rem;
    font-size: 0.9rem;
}

.workshop-card {
    background: #fff;
    border: 1px solid #ddd;
    border-left: 4px solid #ff6b35;
    border-radius: 4px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.workshop-card.overdue {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.workshop-card .card-number {
    font-weight: 700;
    text-decoration: none;
}

.workshop-card .card-vehicle,
.workshop-card .card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.9rem;
}

.status-badge,
.plan-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #e9ecef;
    color: #333;
    vertical-align: middle;
}

.status-received { background: #e7f1ff; color: #084298; }
.status-in_progress { background: #fff3cd; color: #664d03; }
.status-done { background: #d1e7dd; color: #0f5132; }
.status-handed_over { background: #e9ecef; color: #495057; }
.status-cancelled { background: #f8d7da; color: #842029; }
.plan-overdue { background: #f8d7da; color: #842029; }
.plan-due_soon { background: #fff3cd; color: #664d03; }
.plan-ok { background: #d1e7dd; color: #0f5132; }

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem 1.5rem;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 1rem;
}

.detail-grid > div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.detail-label {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
}

.preformatted {
    white-space: pre-wrap;
}

.workshop-form {
    display: block;
    margin-top: 1rem;
}

.form-note {
    color: #6c757d;
    font-size: 0.9rem;
}

.field-error {
    color: #dc3545;
    font-size: 0.85rem;
}

.status-actions,
.gdpr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

/* Tiskové stránky (zakázkový list, výpis údajů zákazníka) */
.print-page {
    background: #fff;
}

.print-toolbar {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.print-document {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem;
    font-size: 0.95rem;
}

.print-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #333;
    margin-bottom: 1rem;
}

.print-number {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 1.2rem;
}

.print-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.print-table th,
.print-table td {
    border: 1px solid #999;
    padding: 0.35rem 0.5rem;
    text-align: left;
    vertical-align: top;
}

.print-total {
    font-size: 1.1rem;
}

.print-signatures {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
}

.print-signatures > div {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.signature-line {
    border-top: 1px solid #333;
    padding-top: 0.25rem;
    font-size: 0.85rem;
}

.print-note {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #555;
}

@media print {
    .no-print,
    .navbar,
    footer {
        display: none !important;
    }

    .print-document {
        padding: 0;
        max-width: none;
    }
}
