 /* General layout */
 @font-face {
  font-family: "StenaSans-Regular";
  src: url("https://cdnext.stenametall.com/StenaSans-Regular.ttf");
 }

  /* General layout */
  @font-face {
    font-family: "StenaSans-Medium";
    src: url("https://cdnext.stenametall.com/StenaSans-Medium.ttf");
   }

   @font-face {
    font-family: "StenaSans-Bold";
    src: url("https://cdnext.stenametall.com/StenaSans-Bold.ttf");
   }


  

 body {
  font-family: 'StenaSans-Regular';
}

/* Make the first form smaller */
/* Make the first form smaller */
.small-modal {
  max-width: 320px; /* Adjusted for a smaller form */
  margin: auto;
  width: 90%;
  padding: 20px;
  border-radius: 8px;
}

input#apiRegistrationNumber::placeholder {
  color:rgba(0, 0, 0, 0.3) !important; /* More shaded color (lighter gray) */
  font-size: 30px; /* Font size */
  text-align: center; /* Center the placeholder text */
  font-style: italic; /* Make the placeholder text italic */
  padding: 10px 15px; /* Increases the padding to make the field larger */

  
  
}


/* Ensure the form container doesn't use three columns */
.single-field-form {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center align */
}

/* Align label and input properly */
.centered-form-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.centered-form-group label {
  text-align: center;
  font-size: 20px !important;
  font-weight: bold;
  margin-bottom: 5px;
}

/* Make the input smaller */
.centered-form-group input {
  width: 80%;
  max-width: 250px;
  text-align: center;
  padding: 8px;
  font-size: 14px;
}



/* Ensure the title is centered */
.modal-title {
  text-align: center;
  font-family: 'StenaSans-Bold';
  font-size: 30px;
  margin-bottom: 20px;
}

#apiform .modal-content {
  max-width: 600px;
  /* Increased width */
  width: 95%;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  height: auto;
  padding: 30px;
}

#apiresultform .modal-content {
  max-width: 600px;
  /* Increased width */
  width: 95%;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  height: auto;
  padding: 30px;
}

#apiresultform label {
  font-family: "StenaSans-Regular";
  font-size: 20px !important;
}

.msgResult-container {
  font-size: 25px;
  font-weight: bold;
  text-align: center;
  margin-top: 20px;
}

.make-container {
  font-size: 20px;
  font-weight: medium;
}


/* Larger & bold registration number with different color */
/* Larger & bold registration number with different color */
.regnr-container {
  font-size: 32px;
  font-weight: bold;
  color: #657184; /* Adjust color as needed */
  text-align: center;
  margin-bottom: 10px;
}

/* Model & Year on the same line (inline) */
.model-year-container {
  font-size: 18px;
  text-align: center;
  color: #333; /* Adjust color as needed */
  display: flex; /* Makes items inline */
  justify-content: center; /* Align items to center */
}



#apiresultform span {
  font-family: "StenaSans-Medium";
}

#apiRegistrationNumber {
  width: 100%;
  padding: 10px 15px;
  font-size: 30px;
  border: 1px solid #C5BAAC; /* Example border */
  height: 50px; /* Adjust based on your design */
  background-image: url('Fordon/Swe.png');
  background-repeat: no-repeat;
  background-position: left center;
  background-size: auto 100%; /* Image matches input height */
  padding-left: 25px; /* Space for the image */
}






.shining-green {
  animation: shine 1s infinite;
}


 .main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
  }

  .content-wrapper {
    display: flex;
    flex-direction: column;
  }

  /* Adjusted the filter-section for less space below */
  .filter-section {
    margin-bottom: 5px;
  }

  /* Table styling */
  .table-container {
    overflow-x: auto;
    margin-top: 0;
  }

  table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
  }

  th,td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
  }

  th {
    background-color: #f5f5f5;
    font-family: 'StenaSans-Bold';
    font-size: 18px;
    position: sticky;
    top: 0;
    z-index: 10;
  }

  tbody tr:hover {
    background-color: #f0f0f0;
    transition: background-color 0.3s ease;
  }

  /* Button styling */
  button {
    background-color: #C5BAAC;
    color: white;
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    letter-spacing: 2.5px;
    font-family: 'StenaSans-Bold';
    font-size: 13px;
    font-weight: 700;
    height: 38px;
    width: 90px;
  }

  button.edit-button,
  button.delete-button {
    margin-left: 5px;
}

  button:hover {
    background-color: #C5BAAC;
  }

  .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: black;
    font-size: 20px;
    cursor: pointer;
  }


  /* Modal styling */
  .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background for a softer overlay */

  }

  .modal-content {
    background-color: #E9EBEC;
    margin: 0;
    padding: 20px;
    border: none;
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
  }



  /* Form styling */
  #editVehicleForm, #newVehicleForm .form-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    /* Three equal columns */
    gap: 20px;
  }



  .form-section {
    background-color: none;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .form-section-title {
    font-size: 18px;
    font-weight: normal;
    margin-bottom: 15px;
    color: #333;
  }

  .form-section.full-width {
    grid-column: 1 / -1;
  }

  .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
  }



  .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
    font-family: 'StenaSans-Bold';
    font-size: 17px;
  }

  .form-group input,
  .form-group select {
    width: 100%;
    padding: 8px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
  }

  .form-group input:focus,
  .form-group select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
  }

  .form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 66px;
    grid-column: 1 / -1;
  }

  .form-group input[readonly] {
    background-color: #e9ecef; /* Light gray background */
    color: #6c757d; /* Gray text color */
    border: 1px solid #ced4da; /* Light gray border */
    cursor: not-allowed; /* Change cursor to indicate it's not editable */
}


  .back-button {
    background-color: #B0715F;
  }

  .submit-button {
    background-color: #6D7C76;
  }

  .edit-button {
    background-color: #657184;
  }

  .delete-button {
    background-color: #B0715F;
  }

  #failPopup {
    display: none;
    /* Initially hidden */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    max-width: 90%;
    padding: 20px 30px;
    /* Padding for space inside the popup */
    background-color: #e04516;

    border-radius: 10px;
    /* Slightly rounded corners */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    /* Enhanced shadow for depth */
    z-index: 1000;
    /* Ensure it appears above other elements */
    text-align: center;
    /* Match the form's font */
    font-size: 16px;
    /* Consistent font size */
    height: 300px;
    /* Shorter height */
  }


  #successPopup, #successPopup-vehicleowner {
    display: none;
    /* Initially hidden */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    max-width: 90%;
    padding: 20px 30px;
    /* Padding for space inside the popup */
    background-color: #657184;

    border-radius: 10px;
    /* Slightly rounded corners */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    /* Enhanced shadow for depth */
    z-index: 1000;
    /* Ensure it appears above other elements */
    text-align: center;
    /* Match the form's font */
    font-size: 16px;
    /* Consistent font size */
    height: 300px;
    /* Shorter height */
  }

  #successPopup p, #successPopup-vehicleowner p, #failPopup p {
    margin: 0;
    padding: 0;
    font-weight: 500;
    font-family: 'StenaSans-Regular';
  }



  #successPopup .close-btn, #successPopup-vehicleowner .close-btn,  #failPopup .close-btn {
    margin-top: 20px;
    background-color: #B0715F;
  }

  p {
    font-family: 'StenaSans-Regular';
  }

  .cookie-notice p {
    font-family: 'StenaSans-Regular';
  }

  #deletePopup, #deletePopup-vehicleowner {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    max-width: 90%;
    padding: 20px 30px;
    background-color: #657184;
    color: #333;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    text-align: center;
    font-size: 16px;
    height: 300px;

  }
  

  #deletePopup p, #deletePopup-vehicleowner p {
    margin: 0;
    padding: 0;
    font-weight: 500;
    font-family: 'StenaSans-Regular';
    /* Make the text slightly bolder */
  }

  #deletePopup .popup-buttons, #deletePopup-vehicleowner .popup-buttons {
    margin-top: 60px;
    display: flex;
    justify-content: space-around;
  }

  #deletePopup .confirm-btn, #deletePopup-vehicleowner .confirm-btn {
    background-color: #6D7C76;
  
  }

  #deletePopup .close-btn, #deletePopup-vehicleowner .close-btn {
    background-color: #B0715F;
  }

table th:last-child,
table td:last-child,
table th:nth-last-child(2),
table td:nth-last-child(2) {
    text-align: right;
}




  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }

    100% {
      transform: rotate(360deg);
    }
  }

  /* Spinner */
  #spinner {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
  }

  #spinner>div {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid #4CAF50;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
  }

  #editForm .modal-content,
  #newVehicleForm .modal-content {
    max-width: 1200px;
    /* Increased width */
    width: 95%;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: auto;
    padding: 30px;
  }

  #apiform .modal {
      display: none;
      position: fixed;
      z-index: 1000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      overflow: auto;
      background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background for a softer overlay */
      display: flex;
      justify-content: center;
      align-items: center;
  }
  


  ch2 {
    color: #333;
    margin-bottom: 20px;
    font-family: 'StenaSans-Bold';
    font-size: 22px;
  }

  ch1 {
    color: #333;
    margin-bottom: 20px;
    margin-top: 40px;
    font-family: 'StenaSans-Bold';
    font-size: 30px;
  }

  .main-container p {
    color: #333;
    font-family: 'StenaSans-Regular';
    font-size: 20px;
  }

  .filter-and-action {
    display: flex;
    align-items: stretch;
    /* This will make children stretch to fill the container's height */
    margin-bottom: 5px;
  }

  .filter-section {
    flex-grow: 1;
    margin-right: 10px;
  }

  #searchInput {
    width: 100%;
    padding: 9px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    /* Adjust as needed to match your design */
    line-height: 1.5;
    /* Adjust as needed */
    box-sizing: border-box;
  }

  .new-button {
    background-color: #6D7C76;
    padding: 9px;
    width: 130px;
  }

  .new-button:hover {
    background-color: #C5BAAC;
  }

  #infoBanner {
    background-color: #e9ecef;
    /* Light background color */
    color: #343a40;
    /* Dark text color for readability */
    padding: 20px;
    border-radius: 8px;
    /* Rounded corners */
    margin-bottom: 20px;
    /* Space below the banner */
    text-align: center;

    /* Matching font */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* Light shadow for depth */
  }

  #infoBanner h1 {
    margin: 0;
    font-size: 24px;
    /* Heading size */
    font-weight: 600;
    /* Bold heading */
  }

  #infoBanner p {
    margin: 10px 0 0;
    /* Margin for spacing */
    font-size: 16px;
    /* Paragraph size */
    font-weight: 400;
    /* Normal weight */
  }


