
body.light-theme {
    background-color: #f5f5f5; 
    color: #343a40; 
}

body.dark-theme {
    background-color: #2c2c2c; 
    color: #f5f5f5; 
}

h4 {
    font-size: 16px !important;
    color: #5c85d6;
}

.toast {
    width: 200px !important;
}

.container.my-3 {
    padding-left: 20px !important;
}

h1.mb-3 {
    font-size: 1.8rem !important;
}

.details-cell a {
    text-decoration: none !important;
    border-bottom: none !important;
}

.tire-name {
    color: #212B36;
    font-weight: 600;
    transition: color 0.3s; 
    white-space: normal;
    word-break: break-word;
}

.tire-name:hover {
    color: #343f49; 
}

.product-name {
    color: #212B36;
    font-weight: 600;
    transition: color 0.3s; 
}

.product-name:hover {
    color: #343f49; 
}

.purchase-price-cell {
    font-weight: 600;
}

.d-inline {
    display: flex !important;
}

p {
    font-size: 14px !important;
}

.form-group.mb-3 {
    margin-bottom: 0px !important;
}


.wrapper {
    display: flex;
    min-height: calc(100vh - 60px); 
    padding-top: 60px; 
}

.container {
    margin-top: 3rem !important;
}

.car-filter-widget {
    margin-top: 20px; 
    margin-bottom: 40px; 
}

.form-check-input[type=checkbox] {
    border-radius: .25em;
    width: 5px;
}

.autocomplete-dropdown {
    display: none; 
    position: absolute;
    z-index: 1000;
    background-color: white;
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
}

.autocomplete-input:focus + .autocomplete-dropdown {
    display: block; 
}

.autocomplete-item {
    padding: 10px;
    cursor: pointer;
}

.autocomplete-item:hover {
    background-color: #f0f0f0;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    float: left;
    min-width: 160px;
    padding: 0;
    margin: 0;
    font-size: 16px;
    text-align: left;
    list-style: none;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: .25rem;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: .25rem 1.5rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

div#default-product-table {
    max-width: -webkit-fill-available;
    margin-right: 0px !important;
}

.filter-container {
    margin-bottom: 20px; 
}

form#filterForm {
    border-radius: unset !important;
    border: 0px !important;
}

.bg-danger .rounded-pill {
    background-color: #0d6efd !important;
}


input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}


input[type="number"] {
    -moz-appearance: textfield !important;
}

.wrapper.d-flex.flex-grow-1 {
    margin-top: 20px !important;
}

.form-group.mb-3 {
    width: 100% !important;
}

header .fa-shopping-cart {
    color:#0d6efd;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px; 
    background-color: #ffffff; 
    color: #343a40; 
    z-index: 1001; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, color 0.3s;
}

body.dark-theme header {
    background-color: #343a40; 
    color: #f5f5f5; 
}


.sidebar {
    width: 250px;
    background-color: #f5f5f5;
    transition: transform 0.3s, background-color 0.3s;
    transform: translateX(0);
    position: fixed;
    top: 80px; 
    bottom: 0; 
    left: 0;
    z-index: 1000;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    overflow-y: auto; 
}

.shadow-sm {
    height: 80px;
}

body.dark-theme .sidebar {
    background-color: #2c2c2c;
}

.sidebar.closed {
    transform: translateX(-250px); 
}


.toggle-btn {
    position: fixed;
    top: 10px; 
    left: 10px;
    z-index: 1100;
    background-color: #5c85d6;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, color 0.3s;
}

body.dark-theme .toggle-btn {
    background-color: #495057;
    color: #f5f5f5;
}

.toggle-btn i {
    font-size: 20px;
}

.content.expanded {
    margin-left: 0;
    width: 100%;
}


footer {
    background-color: #343a40;
    color: #f5f5f5;
    padding: 20px;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
    position: relative;
    z-index: 1001; 
    width: 100%;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.light-theme footer {
    background-color: #f5f5f5;
    color: #343a40;
}


#sparkaFilterForm, #defaultFilterForm {
    max-width: 350px;
    padding: 15px !important;
    width: max-content;
    font-size: 14px;
}

#sparkaFilterForm .form-group,
#defaultFilterForm .form-group {
    margin-bottom: 8px;
}

#sparkaFilterForm label,
#defaultFilterForm label {
    font-size: 14px;
    margin-bottom: 4px;
}

#sparkaFilterForm input[type="text"],
#defaultFilterForm input[type="text"],
#sparkaFilterForm select,
#defaultFilterForm select {
    height: 30px;
    padding: 4px 8px;
    font-size: 0.85rem;
}

#sparkaFilterForm button,
#defaultFilterForm button {
    font-size: 10px;
    height: 30px;
    margin-top: 5px;
    padding: 4px 10px;
}

#sparkaFilterForm h4,
#defaultFilterForm h4 {
    font-size: 1rem;
    margin-bottom: 0px;
}

.form-check-label {
    font-size: 0.9rem;
}


.table-responsive {
    overflow-x: auto;
    display: grid;
    background-color: transparent;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, box-shadow 0.3s;
}

body.dark-theme .table-responsive {
    background-color: #3c3c3c;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.product-table th, .product-table td {
    padding: 8px; 
    vertical-align: middle;
}

.product-table th {
    background-color: #f1f1f1;
    text-align: center;
    font-size: 16px; 
}

body.dark-theme .product-table th {
    background-color: #4c4c4c;
}

.product-table td {
    background-color: #ffffff;
    color: #343a40;
    font-size: 16px; 
}

body.dark-theme .product-table td {
    background-color: #2c2c2c;
    color: #f5f5f5;
}

.product-image {
    max-width: 500px !important; 
    max-height: 50px;
    object-fit: cover;
    margin-left: 5px;
}


.filter-container {
    width: 350px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, box-shadow 0.3s;
}

body.dark-theme .filter-container {
    background-color: #3c3c3c;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.filter-container h2 {
    margin-bottom: 20px;
    font-size: 18px;
    color: #343a40;
}

body.dark-theme .filter-container h2 {
    color: #f5f5f5;
}

.filter-container {
     
     max-width: 350px !important;
     margin-top: -15px;
     background-color: #ffffff00;
     padding: 15px; 
     border-radius: 0px;
     box-shadow: none;
     transition: background-color 0.3s, box-shadow 0.3s;
}

body.dark-theme .filter-container {
    background-color: #3c3c3c;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.filter-container h2 {
    margin-bottom: 15px; 
    font-size: 16px; 
    color: #343a40;
}

body.dark-theme .filter-container h2 {
    color: #f5f5f5;
}

.filter-container .form-group {
    margin-bottom: 10px; 
}

.filter-container label {
    display: block;
    margin-bottom: 3px; 
    color: #343a40;
    font-size: 14px; 
}

body.dark-theme .filter-container label {
    color: #000000;
}

.filter-container select,
.filter-container input {
    width: 100%;
    padding: 6px; 
    box-sizing: border-box;
    color: #343a40;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: color 0.3s, background-color 0.3s, border-color 0.3s;
    font-size: 14px !important; 
}

body.dark-theme .filter-container select,
body.dark-theme .filter-container input {
    color: #f5f5f5;
    background-color: #4c4c4c;
    border-color: #5c5c5c;
}

.filter-container button {
    margin-right: 5px; 
    padding: 4px 6px; 
    font-size: 14px;
    border: none;
    border-radius: 4px;
    background-color: #5c85d6;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.filter-container button:hover {
    background-color: #0056b3;
}

body.dark-theme .filter-container button {
    background-color: #495057;
    color: #f5f5f5;
}

body.dark-theme .filter-container button:hover {
    background-color: #343a40;
}


.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    margin: 5px;
    transition: background-color 0.3s, color 0.3s;
}

footer {
    background-color: #343a40;
    color: #f5f5f5;
    padding: 20px;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
    position: relative;
    z-index: 1001;
    width: 100%;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    margin-top: auto; 
}


.btn-primary {
    background-color: #5c85d6;
    color: #ffffff;
    border: none;
}

.btn-primary:hover {
    background-color: #0056b3;
}

body.dark-theme .btn-primary {
    background-color: #495057;
    color: #f5f5f5;
}

body.dark-theme .btn-primary:hover {
    background-color: #343a40;
}

.btn-secondary {
    background-color: #6c757d;
    color: #ffffff;
    border: none;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

body.dark-theme .btn-secondary {
    background-color: #495057;
    color: #f5f5f5;
}

body.dark-theme .btn-secondary:hover {
    background-color: #343a40;
}

.btn-danger {
    background-color: #dc3545;
    color: #ffffff;
    border: none;
}

.btn-danger:hover {
    background-color: #c82333;
}

body.dark-theme .btn-danger {
    background-color: #a71d2a;
    color: #f5f5f5;
}

body.dark-theme .btn-danger:hover {
    background-color: #871321;
}


.search-results {
    display: none;
    position: absolute;
    background-color: #ffffff;
    border: 1px solid #ddd;
    max-height: 300px;
    overflow-y: auto;
    width: 100%; 
    z-index: 1000;
    top: 100%; 
    left: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, box-shadow 0.3s;
    border-radius: 0 0 5px 5px; 
}

body.dark-theme .search-results {
    background-color: #3c3c3c;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.search-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between; 
    padding: 10px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
    cursor: pointer;
}

body.dark-theme .search-result-item {
    border-bottom: 1px solid #4c4c4c;
}

.search-result-item img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    object-fit: cover;
    border-radius: 5px;
}

.search-result-item .product-info {
    flex-grow: 1; 
    padding-right: 10px;
}

.search-result-item .price-info {
    text-align: right; 
}

.search-result-item .cart-actions {
    display: flex;
    align-items: center;
}

.pagination {
    display: flex;
    justify-content: center;
    padding-left: 0;
    list-style: none;
    border-radius: .25rem;
}

.pagination .page-item {
    margin: 0 2px;
}

.pagination .page-link {
    position: relative;
    display: block;
    padding: .5rem .75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: #5c85d6;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    margin-top: 5px;
}

.pagination .page-item.active .page-link {
    z-index: 1;
    color: #fff;
    background-color: #5c85d6;
    border-color: #5c85d6;
}

.cart-actions input[type="number"] {
    width: 60px; 
    margin-right: 10px;
}

.cart-actions button {
    padding: 5px 10px; 
}

body.dark-theme .search-result-item {
    border-bottom: 1px solid #4c4c4c;
}

.search-result-item:hover {
    background-color: #f1f1f1;
}

body.dark-theme .search-result-item:hover {
    background-color: #4c4c4c;
}

.search-result-item:hover {
    background-color: #f1f1f1;
}

body.dark-theme .search-result-item:hover {
    background-color: #4c4c4c;
}

.placeholder {
    padding: 10px;
    background-color: white !important;
}

body.dark-theme .placeholder {
    color: #777;
}

.actions {
    flex-wrap: wrap; 
}

.search-form {
    width: 50%; 
    position: relative; 
}

.checkbox-dropdown label {
    overflow-x: hidden;
}

.dropdown-menu {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
}

.input-group + .checkbox-dropdown {
    position: absolute;
    bottom: 100%; 
    left: 0;
    z-index: 1000;
    display: none;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 0;
    margin: 0;
}

.checkbox-dropdown label {
    width: 100%; 
    display: block; 
    cursor: pointer;
}

.checkbox-dropdown li {
    padding: 5px 10px;
    cursor: pointer;
}

.checkbox-dropdown li:hover {
    background-color: #f0f0f0;
}

.checkbox-dropdown input[type="checkbox"] {
  margin-right: 5px;
}

@media (max-width: 768px) {
    .search-results {
        width: 100%; 
    }

    .search-form {
        margin: 10px 0;
        width: 100%;
    }
    .container-header {
        flex-direction: column;
        text-align: center;
    }

    .search-form {
        margin: 10px 0;
        width: 100%;
    }

    .user-info {
        margin-top: 10px;
    }

    .wrapper {
        padding-top: 60px; 
    }

    .sidebar {
        transform: translateX(-100%); 
    }

    .sidebar.closed {
        transform: translateX(0); 
    }

    .content {
        flex-direction: column;
        margin: 0;
    }

    .filter-container {
        width: 100%;
    }

    .product-table th, .product-table td {
        font-size: 16px; 
        padding: 5px;
    }

    .toggle-btn {
        top: 10px; 
        left: 10px;
        z-index: 1100;
    }
    .product-table th, .product-table td {
        font-size: 16px; 
        padding: 5px;
    }    
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 0px;
    }

    .container-header {
        flex-direction: row;
        align-items: flex-start;
    }

    .logo img {
        height: 40px;
        margin-bottom: 10px;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    nav ul li {
        margin-right: 0;
        margin-bottom: 5px;
    }

    nav ul li a {
        font-size: 14px;
    }

    .user-info {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 10px;
    }

    .user-info a {
        margin-bottom: 5px;
    }

    #cart-link {
        margin-right: 0;
    }

    form button {
        width: 100%;
        text-align: left;
    }
}


@media (max-width: 480px) {
    .logo img {
        height: 30px;
    }

    nav ul li a {
        font-size: 12px;
    }

    .user-info {
        font-size: 12px;
    }
}


.product-table {
    width: auto !important; 
    table-layout: fixed; 
}

.product-table td:nth-child(1) {
    width: 50px; 
}

.product-table td:nth-child(2) {
    width: 25%;
}

.product-table td:nth-child(3) {
    width: 3%; 
}

.product-table td:nth-child(4) {
    width: 3%; 
}

.product-table td:nth-child(5) {
    width: 3%; 
}

.product-table td:nth-child(6) {
    width: 3%; 
}

.product-table td:nth-child(7) {
    width: 3%; 
}

.product-table .actions-cell {
    text-align: center;
}

.product-table td {
    word-break: break-all; 
    font-size: 16px;
}

.product-table .image-cell {
    width: 50px; 
    justify-content: center;
    align-items: center;
    padding: 0;
    box-sizing: border-box; 
  }



.checkout-container {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 20px;
    border-radius: 5px;
  }
  
  .checkout-form .form-group {
    margin-bottom: 15px; 
  }
  
  .checkout-form label {
    display: block; 
    margin-bottom: 5px;
  }
  
  .checkout-table .product-image {
      width: 60px;
  }
  
  .checkout-table .total-price {
      font-weight: bold; 
  }

.car-filter-widget {
    width: 250px; 
    margin-top: -15px;
    background-color: #ffffff00;
    padding: 15px; 
    border-radius: 0px;
    box-shadow: none;
    transition: background-color 0.3s, box-shadow 0.3s;
}

#filter-form {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 0px;
    border-radius: 5px;
    margin-bottom: 20px;
}

#filter-form input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    font-size: 16px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

#filter-form button[type="submit"] {
    padding: 10px 20px;
    font-size: 10px;
    margin-top: 10px;
    background-color: #5c85d6;
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
}

#filter-form button[type="submit"]:hover {
    background-color: #0056b3;
}

#filter-form button[type="reset"],
#filter-form button.btn-secondary {
    padding: 10px;
    font-size: 10px;
    margin-top: 10px;
    background-color: #5c85d6;
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
}

#filter-form button[type="reset"]:hover,
#filter-form button.btn-secondary:hover {
    background-color: #5a6268;
}

#tire-filter-form {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 0px;
    border-radius: 5px;
    margin-bottom: 20px;
}