@media only screen and (max-width: 768px) {
    .left-nav {
      display:none;
    }
  }
  
  .mobile-icon-nav {
    display: none;
  }
  
  /* Main Layout */
  body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: var(--primary-color);
  }
  
  /* Container Styles */
  .container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: calc(100% - 40px);
    box-sizing: border-box;
    max-width: 800px;
    margin: 20px auto;
    display: none;
  }
  
  .container.active {
    display: block;
  }
  
  .registration-form {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns */
    grid-template-rows: repeat(4, auto); /* Four auto-height rows*/
    grid-gap: 10px;
  }
  
  /* Style the carDetails area */
  
  .car-details-grid {
    grid-column: 1 / span 2; /* Span both columns */
    grid-row: 4; /* Place at bottom (adjust as needed) */
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto; /* Adjust as needed */
    grid-gap: 10px; /* Maintain consistent gap */
  }
  
  .expandable-section {
    margin-bottom: 10px; /* Add some space between sections */
  }
  
  .expandable-section h3 {
    cursor: pointer; /* Make headers clickable */
  }
  
  .expandable-section .section-content {
    margin-left: 20px; /* Indent content */
  }
  
  
  .car-details-grid img {
    display: block; /* Makes the image behave like a block element */
    margin-left: auto; /* Centers horizontally */
    margin-right: auto; /* Centers horizontally */
    max-width: 200px; /* Restricts the image size */
    height: auto; /* Maintains aspect ratio */
  }
  
  .column1 { grid-column: 1; grid-row: 1/span 3; } /* Span three rows*/
  .column2 { grid-column: 2; grid-row: 1/span 3; } /* In the second column, bottom right */
  
  
  
  
  .failed {
    color: red;
  }
  
  /* Registration Form */
  .registration-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    align-items: flex-end;
  }
  
  .input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .input-group label {
    color: #333;
    font-weight: 500;
  }
  
  .input-group input,
  .input-group select {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
  }
  
  .input-group input:focus,
  .input-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
  }
  
  #searchButton {
    padding: 0.5rem 1rem;
    background-color: #0C7489;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
    height: 38px; /* Match input height */
    margin-top: auto; /* Align with inputs */
  }
  
  #searchButton:hover {
    background-color: #0056b3;
  }
  
  /* Credits Section */
  .mainPic {
    display: flex;
    margin-bottom: 20px;
    justify-content: center;
  }
  
  .credits-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }
  
  .credits-info h2 {
    flex: 1;
    text-align: center;
  }
  
  .credits-row p {
    flex: 1;
    text-align: center;
    margin: 5px 0;
  }
  
  /* Vehicle Information Section */
  #vehicle-info {
    margin-top: 1rem;
  }
  
  /* Car Details Section */
  #carDetails {
    margin-top: 20px; /* Space above the car details section */
  }
  
  #carDetailsList {
    list-style-type: none; /* Remove default list styling */
    padding: 0; /* Remove default padding */
  }
  
  #carDetailsList li {
    font-size: 16px; /* Adjust font size as needed */
    margin-left: 10px;
    margin-right: 10px;
    line-height: 1.5; /* Increase line height for better readability */
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {  /* Adjust this breakpoint as needed */
    .mobile-icon-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100dvw;
        position: fixed;
        top: 0;
        left: 0;
        background-color: #119DA4; /* Adjust as needed */
        z-index: 1000;
        padding: 0;
    }
  
    .mobile-icon-nav ul {
        display: flex;
        width: 100%;
        padding: 0;
        margin: 0;
        list-style: none;
    }
  
    .mobile-icon-nav li {
        flex: 1;  /* Each li takes up equal space */
        text-align: center;
    }
  
    .mobile-icon-nav li img {
        width: 32px;
        height: 32px;
        display: block;
        margin: 10px auto;
    }
    .logo-container {
      display: flex
  ;
      justify-content: center;
      width: 100%;
      padding: 0 35px;
      margin-top: 40px;
  }
  .main-content {
    margin-left: 0px;
    padding: 0px;
    padding-top: 0px;
  }
  .credits-info {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    margin-left: 0px;
  }
  }
  
  /* Left Nav */
  .left-nav {
    width: 240px;
    background-color: #119DA4;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding-top: 180px;
    z-index: 1;
  }
  
  .left-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .left-nav li {
    margin: 5px 0;
    padding: 0 15px;
  }
  
  .left-nav a {
    color: black;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 4px;
    transition: color 0.2s;
  }
  
  /* Left Navigation Icons */
  .left-nav i {
    margin-right: 10px;
    width: 20px;
    color: black;
  }
  
  .mobile-icon-nav i {
    font-size: 20px;
    color: black;
  }
  
  .left-nav a:hover {
    color: rgba(255, 255, 255, 0.8);
  }
  
  .left-nav a:hover i {
    color: rgba(255, 255, 255, 0.8);
  }
  
  .mobile-icon-nav a:hover i {
    color: rgba(255, 255, 255, 0.8);
  }
  
  /* Active tab styling */
  .left-nav .tab.active {
    background-color: rgba(0, 0, 0, 0.1);
  }
  
  .mobile-icon-nav .tab.active {
    background-color: rgba(0, 0, 0, 0.1);
  }
  
  /* Quick links in dashboard */
  .quick-links a {
    color: #119DA4;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 4px;
    transition: color 0.2s;
  }
  
  .quick-links a:hover {
    color: #0d8186;
  }
  
  /* Main content positioning */
  .main-content {
    margin-left: 200px;
    padding: 20px;
  }
  
  @media (max-width: 768px) {
    .main-content {
        margin-left: 0;
    }
  }
  
  /* Main Header */
  .main-header {
    background-color: black;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    color: #040404;
    width: 100%;
    z-index: 101; /* Ensure the header stays on top of other fixed elements */
  }
  
  /* Text Container */
  .text-container {
    margin-top: 50px; /* Adjust spacing as needed */
    max-width: 800px; /* Limit the paragraph width */
    margin-left: auto;
    margin-right: auto; 
  }
  
  /* Text Container */
  .tab-content {
    margin-top: 50px; /* Adjust spacing as needed */
    max-width: 800px; /* Limit the paragraph width */
    margin-left: auto;
    margin-right: auto; 
  }
  
  /* Button */
  .button {
    display: block;
    width: 200px;
    padding: 15px;
    margin: 20px auto;
    text-align: center;
    text-decoration: none;
    background-color: #0C7489;
    color: black;
    border-radius: 5px;
  }
  
  .button:hover {
    background-color: #13505b; /* Darker green on hover */
  }
  
  /* Container Image */
  .container img {
    margin: 0;
    height: auto;
    max-width: 100%;
    width: 200px;
  }
  
  #carHistoryChart {
    width: 100%; /* Full width of the parent container */
    height: 400px; /* Set a height for the chart */
    display: block; /* Ensure it's displayed */
    z-index: 10; /* Higher z-index to ensure it's on top */
    position: relative; /* Required for z-index to work */
  }
  
  #carHistoryData {
    background-color: rgba(255, 255, 255, 0.5); /* Light background for visibility */
  }
  
  /* Container Heading */
  .container h2 { /* Adjust line-height for the heading */
    line-height: 1.2; 
  }
  
  /* Button Line Height */
  .button {
    line-height: 1; /* Adjust line-height for the button */
  }
  
  /* My Vehicles Dropdown */
  #my-vehicles-dropdown {
    width: 200px; /* Adjust width as needed */
    margin: 20px auto;
  }
  
  #vehicleSpecsList {
    list-style: none; /* Remove bullet points */
    padding-left: 0; /* Remove default left padding */
  }
  
  
  #vrnSelect {
    width: 100%;
    padding: 10px;
    border: 1px solid #000;
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
    background-color: #f0c139; /* UK number plate yellow */
    font-family: "Charles Wright", Arial, sans-serif; /* UK number plate font */
    text-transform: uppercase;
    appearance: none; /* Customize dropdown arrow (may require additional vendor prefixes) */
  }
  
  /* VRN Dropdown Styles */
  .vrn-dropdown {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
  }
  
  #vrnSelect {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f0c139;
    font-family: "Charles Wright", Arial, sans-serif;
    text-transform: uppercase;
  }
  
  #loadPreviousButton {
    padding: 8px 16px;
    background-color: #007bff;
    color: black;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
  }
  
  #loadPreviousButton:hover {
    background-color: #0056b3;
  }
  
  /* Marketing Activities Section */
  .activity-item {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }

  .activity-item h3 {
    margin-top: 0;
    color: #333;
  }

  .activity-item p {
    margin: 8px 0;
  }

  .activity-item a {
    color: #119DA4;
    word-break: break-all;
  }

  .form-group {
    margin-bottom: 15px;
  }

  .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
  }

  .form-group input[type="url"],
  .form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
  }

  .submit-button {
    background: #119DA4;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }

  .submit-button:hover {
    background: #0d8186;
  }

  .success-message {
    color: #28a745;
    padding: 10px;
    margin-top: 10px;
    border-radius: 4px;
    background: #d4edda;
  }

  .error-message {
    color: #dc3545;
    padding: 10px;
    margin-top: 10px;
    border-radius: 4px;
    background: #f8d7da;
  }

  #activities-list {
    margin-top: 20px;
  }
  
  /* Tab Sections */
  .tab-content {
    display: none;
  }

  .tab.active {
    background-color: #f0f0f0;
    border-radius: 4px;
  }

  .left-nav .tab.active {
    color: #119DA4;
    font-weight: bold;
  }

  .mobile-icon-nav .tab.active img {
    filter: brightness(0.8);
  }

  /* Empty State Messages */
  .empty-state {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
    font-style: italic;
    margin: 20px 0;
  }

  .activity-date {
    color: #6c757d;
    font-size: 0.9em;
    margin-top: 5px;
  }
  
  /* Dashboard Content */
  .dashboard-content {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
  }

  .welcome-section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
  }

  .welcome-section h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
  }

  .welcome-section p {
    color: #666;
    line-height: 1.5;
  }

  .quick-links {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }

  .quick-links h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
  }

  .quick-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .quick-links li {
    margin-bottom: 10px;
  }

  .quick-links a {
    color: #119DA4;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 4px;
    transition: color 0.2s;
  }

  .quick-links a:hover {
    color: #0d8186;
  }