/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    margin: 0;
    padding: 0;
    background: url('/background.png') no-repeat center center/cover;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Top Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: black;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 2rem;
}

.navbar img {
    width: 150px;
    margin-right: 1rem;
}

.services-text {
    flex-grow: 1;
    text-align: center;
    font-size: 1rem;
}

.hamburger-menu {
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    position: absolute;
    transition: all 0.3s ease;
}

.hamburger-menu span:nth-child(1) {
    top: 0;
}

.hamburger-menu span:nth-child(2) {
    top: 8px;
}

.hamburger-menu span:nth-child(3) {
    top: 16px;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 8px;
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 8px;
}

.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    max-width: 300px;
    height: calc(100% - 60px);
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding: 2rem 1rem;
}

.side-menu.show {
    transform: translateX(0);
}

.side-menu a {
    display: block;
    color: #fff;
    text-decoration: none;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-align: right;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.side-menu a:hover {
    background: #ffcc00;
    color: #000;
}

/* Media Queries for Navbar */
@media (max-width: 768px) {
    .navbar .services-text {
        display: none;
    }

    .navbar img {
        width: 120px;
        margin-right: 0.5rem;
    }

    .side-menu {
        width: 200px;
        overflow-y: hidden;
    }

    .side-menu a {
        font-size: 1rem;
    }
}

@media (min-width: 769px) {
    .side-menu {
        width: auto;
        max-width: 350px;
    }

    .side-menu a {
        font-size: 1.3rem;
    }
}

/* Table Styles for Dealers List */
.table-container {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 1400px;
    width: 100%;
    margin-top: 80px;
    margin-bottom: 60px;
    overflow-x: auto;
}

.table-container table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
}

.table-container table th,
.table-container table td {
    border: 1px solid #ccc;
    padding: 0.5rem;
    text-align: center;
}

.table-container table td:nth-child(7) {
    min-width: 200px;
    white-space: normal;
    text-align: right;
}

.table-container table th {
    background: #333;
    color: #ffcc00;
}

.table-container table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.1);
}

/* Media Queries for Table */
@media (max-width: 768px) {
    .table-container {
        padding: 1rem;
    }

    .table-container table th,
    .table-container table td {
        padding: 0.3rem;
        font-size: 0.9rem;
    }

    .table-container table td:nth-child(7) {
        min-width: 150px;
    }
}

/* Search Box Styles */
.search-container {
    margin-bottom: 1rem;
    text-align: center;
}

.search-container input {
    padding: 0.5rem;
    width: 100%;
    max-width: 300px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
}

.search-container input::placeholder {
    color: #ccc;
}

.search-container input:focus {
    outline: none;
    border-color: #ffcc00;
}

/* Form Styles (for Survey and Complaints) */
form {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
    margin-top: 80px;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

form h1 {
    text-align: center;
    color: #ffcc00;
}

form label {
    font-weight: bold;
    margin-top: 0.5rem;
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="date"],
form textarea {
    width: 100%;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

form textarea {
    resize: vertical;
}

form .table {
    color: #fff;
    background: none;
}

form .table th,
form .table td {
    border: 1px solid #ccc;
    padding: 0.5rem;
    text-align: center;
}

form .table th {
    background: #333;
    color: #ffcc00;
}

form .table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.1);
}

form button {
    background: #ffcc00;
    color: #000;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 1rem;
}

form button:hover {
    background: #e6b800;
}

/* Index Page Styles */
.content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: 60px;
    padding-bottom: 80px;
}

/* Welcome Section Styles */
.welcome-section {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 80px auto 20px;
}

.welcome-title {
    font-size: 1.8rem;
    color: #ffcc00;
    margin-bottom: 1rem;
}

.welcome-text {
    font-size: 1.1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .welcome-section {
        max-width: 90%;
        padding: 1.5rem;
    }

    .welcome-title {
        font-size: 1.5rem;
    }

    .welcome-text {
        font-size: 0.9rem;
    }
}

@media (min-width: 769px) {
    .welcome-title {
        font-size: 2.2rem;
    }

    .welcome-text {
        font-size: 1.3rem;
    }
}

/* Warning Box (Yellow Background) */
.warning {
    background: #ffcc00;
    color: #000;
    padding: 1rem;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    max-width: 300px;
    margin: 20px auto;
}

/* Address Section */
.address-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 20px;
}

.address,
.province-instructions {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 1rem;
    border-radius: 8px;
    max-width: 300px;
    text-align: right;
    font-size: 1.1rem;
}

/* Phone Link Color */
a {
    color: #ffcc00;
    text-decoration: none;
}

a:hover {
    color: #e6b800;
}

/* Responsive Design for Index Page */
@media (max-width: 768px) {
    .warning {
        max-width: 90%;
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .address-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }

    .address,
    .province-instructions {
        max-width: 90%;
        font-size: 0.9rem;
        text-align: center;
    }
}

/* Desktop Layout for Index Page */
@media (min-width: 769px) {
    .warning {
        position: absolute;
        top: 80px;
        left: 50px;
        margin-bottom: 60px;
    }

    .address-container {
        position: absolute;
        top: 260px;
        left: 50px;
        align-items: flex-start;
    }

    .address,
    .province-instructions {
        text-align: right;
    }
}

/* Footer Styles */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    z-index: 999;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.social-icon {
    width: 30px;
    height: 30px;
    vertical-align: middle;
    margin-left: 0.5rem;
    transition: opacity 0.3s ease;
}

.social-text {
    color: #ffcc00;
    font-size: 0.9rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.social-link:hover .social-icon {
    opacity: 0.8;
}

.social-link:hover .social-text {
    color: #e6b800;
}

.copyright-text {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 0.5rem;
    }

    .social-link {
        margin-bottom: 0.5rem;
    }
}

/* Submission Message Styles */
.message-box {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.message-box p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.back-link {
    display: inline-block;
    background: #ffcc00;
    color: #000;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
}

.back-link:hover {
    background: #e6b800;
    color: #000;
}

/* Modal Styles */
.modal-content {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 8px;
}

.modal-header {
    border-bottom: 1px solid #ccc;
}

.modal-header .modal-title {
    color: #ffcc00;
}

.modal-header .btn-close {
    filter: invert(1);
}

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

.modal-footer {
    border-top: 1px solid #ccc;
}

.modal-footer .btn-secondary {
    background: #ffcc00;
    color: #000;
    border: none;
}

.modal-footer .btn-secondary:hover {
    background: #e6b800;
}

/* Map Container Styles */
.map-container {
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem;
    border-radius: 8px;
    max-width: 300px;
    width: 100%;
}

.map-container iframe {
    border-radius: 4px;
}

/* Navigation Link Styles */
.navigation-link {
    display: inline-block;
    background: #ffcc00;
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 0.5rem;
}

.navigation-link:hover {
    background: #e6b800;
    color: #000;
}

/* Responsive Design for Map */
@media (max-width: 768px) {
    .map-container {
        max-width: 90%;
    }
}

@media (min-width: 769px) {
    .map-container {
        max-width: 300px;
    }
}

/* Warranty Page Styles */
.warranty-container {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
    margin-top: 80px;
    margin-bottom: 60px;
}

.warranty-container h1 {
    text-align: center;
    color: #ffcc00;
    margin-bottom: 1.5rem;
}

.warranty-container h2 {
    color: #ffcc00;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.warranty-details p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.warranty-exclusions {
    list-style-type: disc;
    padding-right: 1.5rem;
    margin-bottom: 1.5rem;
}

.warranty-exclusions li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.warranty-note {
    background: rgba(255, 0, 0, 0.3);
    border: 1px solid #ff0000;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.warranty-note p {
    margin: 0;
    font-weight: bold;
}

/* Responsive Design for Warranty Page */
@media (max-width: 768px) {
    .warranty-container {
        max-width: 90%;
    }

    .warranty-container h1 {
        font-size: 1.5rem;
    }

    .warranty-container h2 {
        font-size: 1.2rem;
    }

    .warranty-details p,
    .warranty-exclusions li {
        font-size: 0.9rem;
    }

    .warranty-note p {
        font-size: 0.9rem;
    }
}

/* About Page Styles */
.about-container {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
    margin-top: 80px;
    margin-bottom: 60px;
}

.about-container h1 {
    text-align: center;
    color: #ffcc00;
    margin-bottom: 1.5rem;
}

.about-container h2 {
    color: #ffcc00;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.about-section p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.about-list {
    list-style-type: disc;
    padding-right: 1.5rem;
    margin-bottom: 1.5rem;
}

.about-list li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Responsive Design for About Page */
@media (max-width: 768px) {
    .about-container {
        max-width: 90%;
    }

    .about-container h1 {
        font-size: 1.5rem;
    }

    .about-container h2 {
        font-size: 1.2rem;
    }

    .about-section p,
    .about-list li {
        font-size: 0.9rem;
    }
}

/* Admin Panel Styles */
.login-container {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.form-label {
    font-weight: bold;
}

.btn-login {
    width: 100%;
    background-color: #007bff;
    border: none;
}

.btn-login:hover {
    background-color: #0056b3;
}

.container {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.table th,
.table td {
    text-align: center;
    vertical-align: middle;
}

.btn-action {
    margin: 0 5px;
}

/* Responsive Design for Admin Panel */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .table {
        font-size: 0.9rem;
    }

    .btn-action {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
}