/* Global styles */

body {
  padding-top: 56px;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center top;
}

.jumbotron {
  border-radius: 8px;
  margin-top: 10px;
}
label {
  margin-bottom: 5px !important;
}
.form-check-label {
    margin-bottom: 0 !important;
}

.flatpickr-calendar {
  z-index: 2000 !important;
}

/* Google Places Autocomplete dropdown */
.pac-container {
  z-index: 2100 !important;
  position: fixed !important;
}

.card.bg-transparent {
  background: none !important;
  border: none !important;
}

.fs-11 {font-size: 11px;}
.fs-12 {font-size: 12px;}
.fs-13 {font-size: 13px;}
.fs-14 {font-size: 14px;}
.fs-16 {font-size: 16px;}

.widgetMover, .vehicleMover {
  cursor: move;
}

.nav-tabs {
  border-bottom: 1px solid transparent;
  border-image-slice: 100%;
  border-image-slice: 1;
}

/* Vehicle detail - parameters */

.carParametersHeader {
  font-size: 130%;
}

.carParametersWrapper .carInfoText:last-child {
  border:none;
}

.carParameterName {
  width: 160px;
  display: inline-block;
  font-size: 95%;
}
.carParametersWrapper .carInfoText {
  border-bottom: 1px solid transparent;
  border-image-slice: 1;
}

.carInfoText svg {
  font-size: 1.3rem;
}

/* Vehicle detail - right sidebar */

.carDetailSidebarRight {
  font-size: .875rem;
  min-width: 220px;
}

.carDetailSidebarRight .btn {
  display: block;
  text-align: left;
}
.carDetailSidebarRight .dropdown-toggle {
  text-decoration: none;
}
.carDetailSidebarRight .btnZone {
  border-bottom: 1px solid transparent;
  border-image-slice: 1;
}

/* Vehicle detail - top navigation - Modern styling in carDetailTopBar.latte */
.carDetailNavigation h1 {
  float:left;
  font-size:18px;
  margin-left:0;
}
.carDetailNavigation h1 .model {
  font-size:85%;
}
.carDetailNavigation .getBack a {
  float:left;
  font-size: 30px;
}
.carDetailNavigation .carDetailNavBoxWrapper .btnName {
  font-variant: all-small-caps;
  font-weight: normal;
  font-size: 15px;
}
.carDetailNavBoxWrapper {
  padding:5px;
}
.carDetailNavBox a:first-child {
  display: block;
}

.carDetailNavigation .btnName {
  display: inline-block;
  margin-left: 5px;
}
.carDetailNavigation .fa-2x {
  font-size: 1.3rem !important;
}
.carDetailLeftBarWrapper {
  border-style: solid;
  border-width: 0 1px 0 0;
  height: 100%;
}

/* Modern Vehicle Detail Left Sidebar */
.carDetailLeftBar {
  position: -webkit-sticky;
  position: sticky;
  top: 53px;
  height: calc(100vh - 53px);
  overflow-y: auto;
  overflow-y: overlay;
  -ms-flex: 0 0 320px;
  flex: 0 0 320px;
  max-width: 320px;
}

.carDetailLeftBarWrapper {
  padding: 0.5rem 0 1rem 0;
  border-right: 1px solid transparent;
}

.carDetailLeftBar .vehicle-item {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  margin: 0.5rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  position: relative;
  background: transparent;
  border: 1px solid transparent;
}

.carDetailLeftBar .vehicle-item:hover {
  transform: translateX(2px);
  color: inherit;
  text-decoration: none;
}

.carDetailLeftBar .vehicle-image {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
  margin-right: 1rem;
  flex-shrink: 0;
}

.carDetailLeftBar .vehicle-placeholder {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  margin-right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.carDetailLeftBar .vehicle-info {
  flex: 1;
  min-width: 0;
}

.carDetailLeftBar .vehicle-producer {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: inherit;
}

.carDetailLeftBar .vehicle-model {
  font-size: 0.8rem;
  opacity: 0.8;
  color: inherit;
}

.carDetailLeftBar .vehicle-license-plate {
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 0.2rem;
  padding: 0.1rem 0.3rem;
  border: 1px solid;
  border-radius: 3px;
  display: inline-block;
  letter-spacing: 0.5px;
}

.carDetailLeftBar .toggle-sidebar {
  text-align: center;
  padding: 1rem;
  margin-top: 1rem;
}

.carDetailLeftBar .toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.carDetailLeftBar .toggle-btn:hover {
  transform: scale(1.05);
  color: inherit;
  text-decoration: none;
}

.carDetailLeftBarSnippet {
  width: 320px;
  padding: 0;
}

.carDetailLeftBarSnippet.mini {
  -ms-flex: 0 0 100px;
  flex: 0 0 100px;
  width: 100px;
}

.carDetailLeftBarSnippet.mini .carDetailLeftBar {
  max-width: 100px;
}

.carDetailLeftBarSnippet.mini .vehicle-item {
  padding: 1rem 0.5rem;
  margin: 0.5rem;
  justify-content: center;
}

.carDetailLeftBarSnippet.mini .vehicle-info {
  display: none !important;
  opacity: 0;
  transition: none;
}

.carDetailLeftBarSnippet.mini .vehicle-license-plate {
  display: none !important;
  opacity: 0;
  transition: none;
}

.carDetailLeftBarSnippet .vehicle-info,
.carDetailLeftBarSnippet .vehicle-license-plate {
  transition: opacity 0.2s ease;
}

.carDetailLeftBarSnippet.mini .vehicle-image,
.carDetailLeftBarSnippet.mini .vehicle-placeholder {
  margin-right: 0;
}

/* Vehicle detail - widgets */
.widgetDetail.widgetVehicleDetail {
  height: 100%;
}

/* Modern Car Detail Navigation */
.carDetailNavigation {
    position: sticky;
    top: 68px;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.carDetailNavigation.scrolled {
    backdrop-filter: blur(16px);
    border-radius: 16px;
    border: 1px solid transparent;
}

/* Vehicle info section */
.car-nav-vehicle-info {
    border-radius: 12px;
    padding: 16px 20px 16px 0;
    margin: 8px 0;
    transition: all 0.3s ease;
}

.car-nav-back-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-right: 20px;
    border: 1px solid transparent;
    padding: 16px 12px;
}

.car-nav-back-icon {
    font-size: 16px;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.car-nav-back-label {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    line-height: 1.1;
}

.car-nav-back-btn:hover {
    transform: translateY(-1px);
    color: white;
}

.car-nav-vehicle-title {
    margin: 0;
    font-weight: 600;
}

.car-nav-producer {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.car-nav-producer img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 4px;
}

.car-nav-model {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
}

.car-nav-license-plate {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
    letter-spacing: 0.5px;
}

/* Navigation tabs container */
.car-nav-tabs-container {
    position: relative;
    overflow: hidden;
}

.car-nav-tabs {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 12px 0;
    gap: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.car-nav-tabs::-webkit-scrollbar {
    display: none;
}

.car-nav-tab {
    flex: 0 0 auto;
    min-width: 120px;
}

.car-nav-tab-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 500;
    min-height: 80px;
    position: relative;
    overflow: hidden;
}

.car-nav-tab-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.car-nav-tab-link:hover::before {
    opacity: 1;
}

.car-nav-tab-link:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.car-nav-tab-link.active {
    transform: translateY(-1px);
}

.car-nav-tab-icon {
    font-size: 20px;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.car-nav-tab-link:hover .car-nav-tab-icon {
    transform: scale(1.1);
}

.car-nav-tab-label {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

/* Scroll indicators */
.car-nav-scroll-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.car-nav-scroll-indicator:hover {
    transform: translateY(-50%) scale(1.05);
}

.car-nav-scroll-left {
    left: 8px;
}

.car-nav-scroll-right {
    right: 8px;
}

/* Mobile optimizations */
@media (max-width: 767px) {
    .car-nav-vehicle-info {
        margin: 4px 0;
        padding: 12px 16px;
        border-radius: 8px;
    }

    .car-nav-back-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
        margin-right: 12px;
    }

    .car-nav-producer {
        font-size: 16px;
    }

    .car-nav-tabs {
        padding: 8px 0;
        gap: 6px;
    }

    .car-nav-tab {
        min-width: 100px;
    }

    .car-nav-tab-link {
        padding: 12px 8px;
        min-height: 70px;
        border-radius: 8px;
    }

    .car-nav-tab-icon {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .car-nav-tab-label {
        font-size: 11px;
    }
}

/* Desktop improvements */
@media (min-width: 768px) {
    .carDetailNavigation {
        padding-bottom: 0;
    }

    .carDetailNavigation .row {
        gap: 16px;
        align-items: stretch;
        justify-content: space-between;
    }

    .car-nav-vehicle-info {
        margin: 8px 0;
        padding: 12px 16px 16px 0;
        min-width: 260px;
        display: flex;
        align-items: center;
        height: 64px;
    }

    .car-nav-vehicle-info .d-flex {
        width: 100%;
    }

    .car-nav-tabs-container {
        margin: 8px 0;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .car-nav-tabs {
        overflow: visible;
        flex-wrap: nowrap;
        justify-content: flex-end;
        padding: 0;
        gap: 8px;
        align-items: center;
        height: 64px;
    }

    .car-nav-scroll-indicator {
        display: none !important;
    }

    .car-nav-tab {
        flex: 0 0 auto;
        max-width: 120px;
        min-width: 100px;
    }

    .car-nav-tab-link {
        padding: 8px 12px;
        min-height: 52px;
        border-radius: 8px;
        font-size: 13px;
    }

    .car-nav-tab-icon {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .car-nav-tab-label {
        font-size: 11px;
        line-height: 1.1;
    }

    .car-nav-back-btn {
        max-height: 55px;
        font-size: 16px;
    }

    .car-nav-producer {
        font-size: 16px;
        margin-bottom: 2px;
    }

    .car-nav-model {
        font-size: 13px;
    }
}

/* XXL screens (1400px and up) */
@media (min-width: 1400px) {
    .vehicle-detail-container .col-lg-5:nth-child(2) {
        padding-right: 2rem;
    }

    .vehicle-detail-container .col-lg-2 {
        padding-left: 2rem;
    }
}

/* Vehicle Detail Layout */
.vehicle-detail-container {
    padding: 2rem 0 1rem 0;
}

@media (max-width: 767px) {
    .vehicle-detail-container {
        padding: 1rem 0;
    }
}

.vehicle-image-wrapper {
    position: relative;
    padding-top: 1rem;
}

.vehicle-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vehicle-image:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.vehicle-image-placeholder {
    opacity: 0.6;
}

.vehicle-image-link {
    display: block;
    text-decoration: none;
}

/* Vehicle Info Section */
.vehicle-info-wrapper {
    padding-left: 1rem;
}

.vehicle-basic-info {
    margin-bottom: 1rem;
}

.vehicle-info-grid {
    display: block;
}

.vehicle-info-item {
    display: flex;
    align-items: center;
    padding: 0.2rem 0;
    margin-bottom: 0.2rem;
}

.vehicle-info-icon {
    width: 18px;
    text-align: center;
    margin-right: 10px;
    opacity: 0.6;
    flex-shrink: 0;
}

.vehicle-info-text {
    flex: 1;
    font-size: 0.95rem;
}

.vehicle-age {
    opacity: 0.7;
    font-size: 0.85rem;
}

.copy-btn {
    background: none;
    border: none;
    padding: 2px 4px;
    margin-left: 6px;
    border-radius: 3px;
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-size: 0.8em;
}

.copy-btn:hover {
    opacity: 1;
    background-color: rgba(0,0,0,0.1);
}

.copy-notification {
    font-size: 0.75rem;
    margin-left: 8px;
    opacity: 0.7;
    animation: fadeOut 2s ease-out forwards;
}

@keyframes fadeOut {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* Vehicle Parameters */
.vehicle-parameters {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.parameters-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.collapse-icon {
    transition: transform 0.2s ease;
}

.collapse-icon[aria-expanded="true"] {
    transform: rotate(180deg);
}

/* Collapse button styling for mobile consistency */
@media (max-width: 991.98px) {
    .vehicle-parameters .btn[data-bs-toggle="collapse"] {
        padding: 8px 12px;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 500;
        border: 1px solid rgba(108,117,125,0.3);
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        transition: all 0.2s ease;
    }

    .vehicle-parameters .btn[data-bs-toggle="collapse"]:hover {
        box-shadow: 0 4px 12px rgba(0,123,255,0.2), 0 2px 6px rgba(0,0,0,0.15);
        background-color: rgba(108,117,125,0.1);
    }
}

/* Fix for Bootstrap collapse button */
.vehicle-parameters .btn[data-bs-toggle="collapse"] .collapse-icon {
    transition: transform 0.2s ease;
}

.vehicle-parameters .btn[data-bs-toggle="collapse"]:not(.collapsed) .collapse-icon {
    transform: rotate(180deg);
}

.parameters-grid {
    display: grid;
    gap: 0.1rem;
    margin-top: 0.5rem;
}

.parameter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.parameter-item:last-child {
    border-bottom: none;
}

.parameter-label {
    font-weight: 500;
    opacity: 0.7;
    flex: 0 0 auto;
    margin-right: 1rem;
    font-size: 0.9rem;
}

.parameter-value {
    text-align: right;
    flex: 1;
    font-size: 0.95rem;
}

/* Vehicle Actions */
.vehicle-actions-wrapper {
    padding-left: 1rem;
}

.action-section {
    margin-bottom: 1.5rem;
}

.action-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.btn-action {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.6rem 0.8rem;
    text-align: left;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    width: 100%;
    font-size: 0.9rem;
}


.btn-action:hover {
    transform: translateX(1px);
}

/* Mobile Actions */
.mobile-quick-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.mobile-secondary-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-action-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mobile-action-btn.secondary {
    background: transparent;
    border: 1px solid rgba(108,117,125,0.3);
    color: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mobile-action-btn i {
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
}

.mobile-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.2), 0 2px 6px rgba(0,0,0,0.15);
    text-decoration: none;
    color: white;
}

.mobile-action-btn.secondary:hover {
    background-color: rgba(108,117,125,0.1);
    box-shadow: 0 4px 12px rgba(0,123,255,0.2), 0 2px 6px rgba(0,0,0,0.15);
    color: inherit;
}

.mobile-quick-actions .mobile-action-btn {
    flex: 1;
    justify-content: center;
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .vehicle-detail-container {
        padding: 0.75rem 0;
    }

    .vehicle-info-wrapper {
        padding-left: 0;
        margin-top: 1rem;
    }

    .vehicle-actions-wrapper {
        padding-left: 0;
        margin-top: 1rem;
    }

    .vehicle-info-grid {
        gap: 0.4rem;
    }

    .parameters-grid {
        gap: 0.3rem;
        margin-top: 0.5rem;
    }

    .parameter-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 0.5rem;
    }

    .parameter-value {
        text-align: left;
        margin-top: 0.2rem;
    }

    .action-section {
        margin-bottom: 1rem;
    }
}

@media (max-width: 575.98px) {
    .vehicle-info-item {
        padding: 0.2rem 0;
        margin-bottom: 0.1rem;
    }

    .parameter-item {
        padding: 0.2rem 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        margin-bottom: 0.1rem;
    }

    .parameter-item:last-child {
        border-bottom: none;
    }
}

/* Vehicle list */
.vehicle-wrapper img {
  max-width: 100%;
}
.vehicle-wrapper:last-child {
  /*border-bottom:none;*/
}
.widgetDetail.widgetList {
  border-radius: 4px;
  height:96px;
}

/* Vehicle list - right sidebar */
.carListSideItem .header:not(.collapsed) .rotate-icon {
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
}
.carListSideItem .header {
  padding: 7px 0;
  cursor: pointer;
}
.carListSideItem .icon {
  position:absolute;
  top:8px;
  right:20px;
  font-size: 15px;
}

.vehicleSortWrapper .btn.btn-radio {
  padding: 3px 9px !important;
}

/* Navbar related styles */

.navbarMain .dropdown-menu {
  top: 50px;
  right: 0;
  border-radius: 5px;
  min-width: 280px;
  padding-bottom: 10px;
}
.navbarMain .dropdown-menu a {
  position: relative;
}
.navbarMain .dropdown-menu a .svg-inline--fa {
  position: absolute;
  right: 12px;
  top: 8px;
}

.navbarMain .dropdownUser .name {
  font-size: 15px;
}
.navbarMain .dropdown-toggle:after {
  content: none;
}

.navbarMain .dropdown-toggle > .svg-inline--fa {
  font-size: 21px;
}

/* Modal specific styles */

.newRecordNoteWrapper textarea {
  height: 120px;
}

/* Loader styles */
.loader {
  max-width: 12rem;
  width: 100%;
  height: auto;
  stroke-linecap: round;
}

circle {
  fill: none;
  stroke-width: 3.5;
  animation-name: preloader;
  animation-duration: 3s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  transform-origin: 170px 170px;
  will-change: transform;
}
circle:nth-of-type(1) {
   stroke-dasharray: 550px;
    animation-delay: 0s;
 }

circle:nth-of-type(2) {
   stroke-dasharray: 500px;
  animation-delay: 0.2s;
 }

circle:nth-of-type(3) {
   stroke-dasharray: 450px;
  animation-delay: 0.3s;
 }

circle:nth-of-type(4) {
   stroke-dasharray: 300px;
  animation-delay: 0.5s;
 }

@keyframes preloader {
  50% {
    transform: rotate(360deg);
  }
}

/* borders.css */

/* Badge outline */
.badge-outline {
  border-style: solid;
  border-width: 1px;
}
.badge-outline.badge-info {
  border-style: solid;
  border-width: 1px;
}

/* Cards */
.card {
  border-style: solid;
  border-width: 1px;
}

/* Widget detail */
.widgetDetail.widgetList, .widgetDetail.widgetVehicleDetail {
  border-style: solid;
  border-width: 1px;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.widgetDetail.widgetList:hover,
.widgetDetail.widgetVehicleDetail:hover {
  transform: translateY(-2px);
}

/* Form select by theme */
.form-select.colorByTheme {
  border-style: solid;
  border-width: 1px;
}

/* Record wrapper – top border only */
.recordWrapper {
  border-style: solid;
  border-width: 3px 0 0 0;  /* top right bottom left */
}

/* Car detail navigation – bottom border only */
.carDetailNavBox {
  border-style: solid;
  border-width: 0 0 3px 0;  /* top right bottom left */
}
.carDetailNavBox.active {
  border-style: solid;
  border-width: 0 0 3px 0;
}

/* Nav tabs */
.nav-tabs {
  border-style: solid;
  border-width: 0 0 2px 0;
}
.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
  border-style: solid;
  border-width: 1px;
}
.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
  border-style: solid;
  border-width: 1px;
}

/* Vehicle list & sidebar */
.vehicle-wrapper {
  border-style: solid;
  border-width: 0 0 1px 0;
}
#vehicleListSidebar {
  border-style: solid;
  border-width: 0 0 0 1px;
  height: 100%;
}

/* Car list header */
.carListSideItem .header {
  border-style: solid;
  border-width: 0 0 1px 0;
}

/* Navbar */
.navbarMain {
  border-style: solid;
  border-width: 0 0 1px 0;
}
.navbarMain .dropdown-menu {
  border-style: solid;
  border-width: 1px;
}
.navbarMain .dropdown-divider {
  border-style: solid;
  border-width: 1px 0 0 0;  /* top border only */
}

/* Gradient borders (requires border-width) */
.carParametersWrapper .carInfoText,
.carDetailSidebarRight .btnZone {
  border-style: solid;
  border-width: 0 0 1px 0;
}

.copyLicPlate {
  cursor: copy;
}
#notificationBadge {
  position: absolute;
  color: #fff;
}

.select2-container--default .select2-selection--multiple {
  padding-bottom: 2px !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
  margin-top: 2px !important;
  margin-left: 2px !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__clear {
  margin-top: 0 !important;
}
.select2-container .select2-search--inline .select2-search__field {
  height: 18px !important;
  font-size: 0.875rem;
}
#tracy-debug table {
  color: #333 !important;
}
.navbar-collapse {
  align-items: baseline;
}

/* Timeline */
.timeline{
  position:relative;
  display:grid;
  grid-template-columns:1fr 70px 1fr;
  row-gap:18px;
  column-gap:18px;
  padding-left:100px;
  padding-right:100px;
}
.timeline .axis{
  position:absolute;
  top:0;
  bottom:0;
  left:50%;
  width:2px;
}
.timeline .event{
  display:contents;
}
.timeline .event .left{
  grid-column:1;
  text-align: right;
}
.timeline .event .left .badge {
  float: right;
  margin-left: 10px;
}
.timeline .event .right .badge {
  float: left;
  margin-right: 10px;
}
.timeline .event .center{
  grid-column:2;
  display:flex;
  justify-content:center;
  align-items:center;
}
.timeline .event .right{
  grid-column:3;
}
.timeline .dot{
  width:13px;
  height:13px;
  border-radius:50%;
  z-index:300;
}
.timeline .cardTimeline{
  padding:10px 12px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.timeline .cardTimeline:hover {
  transform: translateY(-2px);
}

.timeline .badge{
  font-size:14px;
  font-weight:700;
  padding:2px 8px;
  border-radius:999px;
  transition: all 0.2s ease;
}

.timeline .badge:hover {
  transform: translateY(-1px);
}
.timeline .title{
  margin:0 0 2px;
  font-size:15px;
  font-weight:700;
}
.timeline .desc{
  margin:0;
  font-size:12.5px;
}

.timeline .interval{
  display:contents;
}
.timeline .interval .center{
  grid-column:1 / 4;
  display:flex;
  justify-content:center;
}
.timeline .pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border-radius:20px;
  padding:6px 10px;
  font-size:12px;
  z-index:300;
  transition: all 0.2s ease;
}

.timeline .pill:hover {
  transform: translateY(-1px);
}
.timeline .pill .dot-mini{
  width:6px;
  height:6px;
  border-radius:50%;
}
@media (max-width: 820px){
  .timeline{
    grid-template-columns:1fr;
    padding-left:15px;
    padding-right:15px;
    gap: 12px;
  }
  .timeline .axis{
    left:29px;
  }
  .timeline .event .left{
    grid-column:1;
    text-align: left;
  }
  .timeline .event .right{
    grid-column:1;
    text-align: left;
  }
  .timeline .event .center{
    display: none !important;
  }
  .timeline .axis{
    display: none !important;
  }
  .timeline .event .left .badge,
  .timeline .event .right .badge {
    float: none !important;
    margin: 0 !important;
  }
  .timeline .cardTimeline .d-flex {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
  }
  .timeline .cardTimeline .flex-fill:first-child {
    order: 1 !important;
    flex: 0 0 auto !important;
    margin-right: 12px !important;
    padding-top: 0 !important;
  }
  .timeline .cardTimeline .flex-fill:not(:first-child) {
    order: 2 !important;
    flex: 1 1 auto !important;
    min-width: 0;
  }
  .timeline .cardTimeline .flex-shrink-1 {
    order: 3 !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
  }
  .timeline .cardTimeline{
    padding:8px 10px;
    font-size:14px;
  }
  .timeline .cardTimeline .flex-fill {
    min-width:0;
    padding:2px 4px;
  }
  .timeline .cardTimeline .d-flex {
    gap:4px;
  }
  .timeline .interval .center{
    grid-column:1 / 4;
  }
  .timeline .pill{
    font-size:11px;
    padding:4px 8px;
  }
}
/* KPI Cards */
.refuel-kpi .kpi-card,
.service-kpi .kpi-card {
  border-radius: 12px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.refuel-kpi .kpi-card:hover,
.service-kpi .kpi-card:hover {
  transform: translateY(-2px);
}

/* Refuel KPI */
.refuel-kpi .kpi-icon {
  width: 46px;
  height: 46px;
  border-radius: .9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex: 0 0 46px;
}
.refuel-kpi .kpi-label {
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .15rem;
}
.refuel-kpi .kpi-value {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
}
.refuel-kpi .kpi-value .kpi-unit {
  font-size: .95rem;
  font-weight: 500;
  margin-left: .1rem;
}
.refuel-kpi .kpi-subtext {
  font-size: .82rem;
  margin-top: .25rem;
  opacity: 0.8;
}
.refuel-kpi .kpi-chart {
  min-height: 90px;
}
.refuel-date-wrap {
  position: relative;
}
/* Refuel styles */
.refuel-date-wrap .btn-clear-date{
  position: absolute;
  right: .5rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  padding: 0;
  line-height: 1;
  font-size: 1rem;
  color: gray;
  cursor: pointer;
}
.refuel-date-wrap .form-control {
    padding-right: 1.8rem;
    border-top-right-radius: 0.25rem !important;
    border-bottom-right-radius: 0.25rem !important;
}
.refuel-date-wrap .btn-clear-date:hover {
  color: var(--bs-danger);
}

/* Vehicle Detail Navbar - Structure only */
.vehicle-detail-navbar {
    padding: 16px 0;
    margin-bottom: 24px;
    border-radius: 12px;
}

.vehicle-nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Mobile dropdown button */
.vehicle-nav-mobile-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 320px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    outline: none;
    border-width: 0;
}

.vehicle-nav-mobile-btn::after {
    display: none !important;
}

.vehicle-nav-mobile-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(13,110,253,0.25);
}

.vehicle-nav-mobile-btn:hover {
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.2);
}

.vehicle-nav-mobile-icon {
    font-size: 16px;
    min-width: 16px;
}

.vehicle-nav-mobile-text {
    flex: 1;
    text-align: left;
}

.vehicle-nav-arrow {
    font-size: 12px;
    margin-left: 12px;
    transition: transform 0.3s ease;
}

.vehicle-nav-mobile-btn[aria-expanded="true"] .vehicle-nav-arrow {
    transform: rotate(180deg);
}

/* Mobile dropdown menu */
.vehicle-nav-dropdown {
    border-radius: 12px;
    padding: 8px;
    margin-top: 4px;
    min-width: 280px;
    animation-duration: 0.15s !important;
}

.vehicle-nav-dropdown.show {
    animation-name: dropdownFadeIn;
    animation-duration: 0.15s;
    animation-fill-mode: both;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.vehicle-nav-dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.vehicle-nav-dropdown-item:hover {
    transform: translateX(4px);
}

.vehicle-nav-dropdown-item.active {
    color: white;
}

.vehicle-nav-dropdown-item i {
    width: 16px;
    text-align: center;
}

/* Desktop tabs */
.vehicle-nav-tabs {
    display: flex;
    gap: 8px;
    border-radius: 12px;
    padding: 12px;
}

.vehicle-nav-tab {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 0;
    text-decoration: none;
}

.vehicle-nav-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vehicle-nav-tab:hover::before {
    opacity: 1;
}

.vehicle-nav-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.2), 0 2px 6px rgba(0,0,0,0.15);
    text-decoration: none;
}

.vehicle-nav-tab.active {
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,123,255,0.3), 0 2px 8px rgba(0,0,0,0.2);
}

.vehicle-nav-tab-icon {
    font-size: 16px;
    margin-right: 8px;
}

.vehicle-nav-tab-text {
    font-weight: 600;
}

/* Tab content styling */
.tab-content {
    margin-top: 24px;
}

.tab-pane {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile optimizations */
@media (max-width: 767px) {
    .vehicle-detail-navbar {
        padding: 12px 0;
        margin-bottom: 16px;
        border-radius: 8px;
    }

    .vehicle-nav-mobile-btn {
        padding: 10px 14px;
        font-size: 13px;
    }

    .vehicle-nav-mobile-icon {
        font-size: 14px;
        margin-right: 10px;
    }

    .tab-content {
        margin-top: 16px;
    }
}

/* Responsive table improvements */
@media (max-width: 767px) {
    .table {
        font-size: 13px;
    }

    .table th,
    .table td {
        padding: 8px 4px;
    }

    .btn-sm {
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* Service Book KPI styling - matching refuel KPI */
.service-kpi .kpi-icon {
    width: 46px;
    height: 46px;
    border-radius: .9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex: 0 0 46px;
}

.service-kpi .kpi-label {
    font-size: .82rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: .15rem;
}

.service-kpi .kpi-value {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.1;
}

.service-kpi .kpi-value .kpi-unit {
    font-size: .95rem;
    font-weight: 500;
    margin-left: .1rem;
}

.service-kpi .kpi-subtext {
    font-size: .82rem;
    margin-top: .25rem;
}

/* Costs KPI styling */
.costs-kpi .kpi-value {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.1;
}

.costs-kpi .kpi-value .kpi-unit {
    font-size: .95rem;
    font-weight: 500;
    margin-left: .1rem;
}

.costs-kpi .kpi-subtext {
    font-size: .82rem;
    margin-top: .25rem;
}

/* Category Badge Styling */
.category-badge-wrapper {
    margin-top: 2rem !important;
    margin-bottom: 1.25rem !important;
    padding-left: 0.25rem;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    user-select: none;
}

.category-badge i {
    font-size: 1.15rem;
    opacity: 0.7;
}

.category-toggle-icon {
    transition: transform 0.3s ease;
}

.category-count {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.6;
    margin-left: 0.25rem;
}

.category-vehicles {
    overflow: hidden;
}

.category-actions {
    display: flex;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
}

.category-action-btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* User Settings Styles */
.user-settings-header {
    margin-bottom: 0;
}

.user-settings-top {
    padding: 1.5rem 0 1rem;
}

.user-info {
    display: flex;
    flex-direction: row;
    gap: 0.25rem;
}

.user-settings-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.02em;
}

.user-email {
    font-size: 0.875rem;
    margin: 0;
    opacity: 0.65;
}

.user-settings-nav {
    position: relative;
}

.nav-scroll-wrapper {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.nav-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.user-settings-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-bottom: 2px solid transparent;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.user-settings-nav .nav-icon {
    font-size: 0.9rem;
    opacity: 0.7;
}

.user-settings-nav .nav-item.active {
    font-weight: 600;
}

.user-settings-content {
    min-height: calc(100vh - 300px);
}


.settings-card {
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.settings-card-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.settings-icon {
    font-size: 1.1rem;
    opacity: 0.7;
}

.settings-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
}

.settings-card-body {
    padding: 1.25rem;
    flex: 1;
}

.settings-card-body .btn:focus,
.settings-card-body .btn:active {
    box-shadow: none !important;
    outline: none !important;
}

.settings-card-body .btn-primary:focus,
.settings-card-body .btn-primary:active {
    color: #fff !important;
}

.settings-card-footer {
    padding: 1rem 0 1.25rem 0;
    display: flex;
    justify-content: flex-end;
}

.settings-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 576px) {
    .settings-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .settings-form-grid.single-column {
        grid-template-columns: 1fr;
    }
}

.settings-form-grid .form-label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.settings-form-grid .form-control,
.settings-form-grid .form-select {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

.settings-switches-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.settings-switch {
    padding-left: 0 !important;
    margin-bottom: 0 !important;
}

.settings-switch .form-check-input {
    width: 2.5rem;
    height: 1.25rem;
    cursor: pointer;
    margin-top: 0.125rem;
    margin-left: 0 !important;
}

.settings-switch .form-check-label {
    cursor: pointer;
    margin-left: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.empty-state-simple {
    text-align: center;
    padding: 2rem 1.5rem;
}

.empty-state-simple i {
    font-size: 2.5rem !important;
}

.categories-table {
    font-size: 0.875rem;
}

.categories-table thead th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.categories-table tbody tr {
    transition: background-color 0.15s ease;
}

.categories-table tbody td {
    padding: 0.75rem 1rem;
}

.category-drag-handle {
    cursor: grab;
    user-select: none;
}

.category-drag-handle:active {
    cursor: grabbing;
}

.category-row.sortable-ghost {
    opacity: 0.4;
}

.category-row.sortable-drag {
    opacity: 1;
    background: var(--bs-table-hover-bg);
}

.category-section.sortable-ghost {
    opacity: 0.4;
}

.category-section.sortable-drag {
    opacity: 1;
}

/* Notification Type Cards */
.notification-type-card {
    transition: all 0.2s ease;
    background-color: #f8f9fa !important;
}

.notification-type-card:hover {
    box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.08);
    background-color: #fff !important;
}

.notification-type-card .form-check {
    margin-bottom: 0;
}

.notification-type-card .form-check-label {
    cursor: pointer;
    user-select: none;
}

/* Notification Master Controls */
.notification-master-badge {
    position: absolute;
    top: -12px;
    right: 16px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.notification-arrow {
    font-size: 0.875rem;
    opacity: 0.6;
}

.master-check-item {
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.master-check-item:hover {
    transform: translateY(-1px);
}

.master-check-item .form-check-input {
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.125rem;
}

.master-check-item .form-check-label {
    display: flex;
    align-items: center;
}

.notification-master-header {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 0.5rem !important;
}

/* Dark Blue Theme */
body.darkBlue .notification-type-card {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.darkBlue .notification-type-card:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.3);
}

body.darkBlue .notification-type-card h6 {
    color: #fff !important;
}

body.darkBlue .notification-type-card .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

body.darkBlue .notification-type-card .form-check-label {
    color: rgba(255, 255, 255, 0.9);
}

/* Light Blue Theme */
body.lightBlue .notification-type-card {
    background-color: rgba(255, 255, 255, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
}

body.lightBlue .notification-type-card:hover {
    background-color: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.1);
}

@media (max-width: 991px) {
    .user-settings-title {
        font-size: 1.35rem;
    }

    .user-settings-nav .nav-text {
        font-size: 0.85rem;
    }

    .settings-card-header {
        padding: 1rem;
    }

    .settings-card-body {
        padding: 1rem;
    }

    .settings-card-footer {
        padding: 0.75rem 0 1rem 0;
    }

    .settings-form-grid {
        grid-template-columns: 1fr;
    }

}

/* Service filters styling */
.service-filters .btn-group {
    align-items: center;
}

.service-filters .input-group {
    align-items: center;
}

.service-filters .form-check {
    margin-bottom: 0;
    height: fit-content;
}

.service-filters .btn-radio {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 31px;
    margin-bottom: 0 !important;
}

.service-date-wrap {
    position: relative;
}

.service-date-wrap .btn-clear-date{
    position: absolute;
    right: .5rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    padding: 0;
    line-height: 1;
    font-size: 1rem;
    color: gray;
    cursor: pointer;
}

.service-date-wrap .form-control {
    padding-right: 1.8rem;
    border-top-right-radius: 0.25rem !important;
    border-bottom-right-radius: 0.25rem !important;
}

.service-date-wrap .btn-clear-date:hover {
    color: var(--bs-danger);
}

/* Service book filter select2 customizations */
.serviceBookFilter.select2-container .select2-selection--multiple {
    min-height: 31px;
    align-items: center;
}

.serviceBookFilter.select2-container .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.1rem 0.375rem;
}

.serviceBookFilter.select2-container .select2-selection--multiple .select2-selection__choice {
    background-color: #0d6efd;
    color: white;
    border: 1px solid #0d6efd;
    border-radius: 0.25rem;
    padding: 0.1rem 0.5rem;
    font-size: 0.875rem;
    margin: 0;
}

.serviceBookFilter.select2-container .select2-selection--multiple .select2-selection__choice__remove {
    color: white;
    font-weight: bold;
    margin-right: 0.25rem;
}

.serviceBookFilter.select2-container .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #ff4444;
}

/* Mobile optimizations for service filters */
@media (max-width: 767px) {
    .service-filters .btn-group-sm .btn {
        padding: 0.25rem 0.375rem;
        font-size: 0.8rem;
        height: 31px;
    }

    .service-filters .input-group-sm .input-group-text {
        padding: 0.25rem 0.375rem;
        font-size: 0.8rem;
        height: 31px;
        display: flex;
        align-items: center;
    }

    .service-filters .input-group-sm .form-control {
        padding: 0.25rem 0.375rem;
        font-size: 0.8rem;
        height: 31px;
    }
}

/* Modern Service Cards Design */
.service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
}

.service-card:hover {
    transform: translateY(-2px);
}

.service-card-content {
    flex: 1;
    min-width: 0;
}

/* Card Header */
.service-card-header {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.02);
}

.service-card-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .service-card-stats {
        grid-template-columns: 180px 150px 150px;
        gap: 1rem;
        justify-content: start;
    }
}

/* Add border when categories are shown */
.service-card-header:has(.service-card-categories-summary:not([style*="display: none"])) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Service Categories Summary */
.service-card-categories-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-category-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary, #212529);
}

.service-category-badge img {
    width: 16px;
    height: 16px;
}

.service-card-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.service-card-stat-label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-muted, #6c757d);
    font-weight: 500;
}

.service-card-stat-label i {
    width: 16px;
    color: var(--text-muted, #6c757d);
    font-size: 0.85rem;
}

.service-card-stat-value {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary, #212529);
}

/* Special styling for date values */
.service-card-stat:first-child .service-card-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bs-primary, #0d6efd);
}

/* Larger values on desktop */
@media (min-width: 768px) {
    .service-card-stat-value {
        font-size: 1.1rem;
    }

    .service-card-stat:first-child .service-card-stat-value {
        font-size: 1.2rem;
    }
}

/* Card Actions */
.service-card-actions {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.375rem;
    padding: 0.8rem 0.8rem;
    background: rgba(0, 0, 0, 0.02);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    width: 55px;
}

.service-card-action-btn {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted, #6c757d);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.8rem;
}

.service-card-action-btn:hover {
    background: var(--btn-hover-bg, #f8f9fa);
    color: var(--primary-color, #0d6efd);
    border-color: var(--primary-color, #0d6efd);
    text-decoration: none;
}

.service-card-action-btn.service-card-delete:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.service-card-toggle svg {
    transition: transform 0.2s ease;
    transform: rotate(0deg);
}

.service-card-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.service-card-toggle:not(.collapsed) svg {
    transform: rotate(180deg);
}

.service-card-toggle.rotated svg {
    transform: rotate(180deg);
}

/* Timeline Service Cards - consistent with cards view */
.timeline-service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.timeline-service-card:hover {
    transform: translateY(-2px);
}

.timeline-service-header {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.02);
}

/* Timeline Flex Layout */
.timeline-service-flex {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}


.timeline-date-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.timeline-date-badge {
    display: inline-block;
    background: var(--bs-primary, #0d6efd);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Add border when categories are shown */
.timeline-service-header:has(.timeline-service-categories-summary:not([style*="display: none"])) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-service-stats {
    display: flex;
    gap: 1.5rem;
    flex: 1;
    align-items: center;
}

/* Right cards - stats on right side */
.right .timeline-service-stats {
    justify-content: flex-end;
}

/* Left cards - stats on left side */
.left .timeline-service-stats {
    justify-content: flex-start;
}

.timeline-service-stats:has(+ .timeline-service-categories-summary) {
    margin-bottom: 0.75rem;
}

.timeline-service-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}


.timeline-service-stat-label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: var(--text-primary, #212529);
    font-weight: 600;
}

.timeline-service-stat-label i {
    width: 16px;
    color: var(--text-muted, #6c757d);
    font-size: 0.85rem;
}

.timeline-service-stat-value {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary, #212529);
}

/* Special styling for date values */
.timeline-date-badge {
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

/* Timeline Service Categories */
.timeline-service-categories-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Timeline Service Details */
.timeline-service-details {
    padding: 1rem;
}

/* Timeline service categories spacing */
.timeline-service-details .service-card-category {
    margin-bottom: 1rem;
}

.timeline-service-details .service-card-category:last-child {
    margin-bottom: 0;
}

/* Timeline Service Note */
.timeline-service-note {
    padding: 0.75rem 1rem;
    background: rgba(255, 243, 205, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #dbc684 !important;
    font-size: 0.875rem;
    line-height: 1.5;
}

.timeline-service-note i {
    margin-top: 0.125rem;
    color: var(--note-icon, #ffc107);
    flex-shrink: 0;
}

/* Timeline Service Actions */
.timeline-service-actions {
    display: flex;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-service-action-btn {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(13, 110, 253, 0.3);
    background: rgba(13, 110, 253, 0.1);
    color: white;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.8rem;
}

.timeline-service-action-btn:hover {
    background: var(--btn-hover-bg, #f8f9fa);
    color: var(--primary-color, #0d6efd);
    border-color: var(--primary-color, #0d6efd);
    text-decoration: none;
}

.timeline-service-action-btn.timeline-service-delete:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.timeline-service-toggle svg {
    transition: transform 0.2s ease;
    transform: rotate(0deg);
}

.timeline-service-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

/* Remove any borders from timeline collapse elements */
.timeline-service-card .collapse,
.timeline-service-card .collapse.show,
.timeline-service-card .collapse.collapsing {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    margin: 0 !important;
}


/* Service Note */
.service-card-note {
    padding: 0.75rem 1rem;
    background: rgba(255, 243, 205, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--note-text, #856404);
    font-size: 0.875rem;
}

/* Service note always has border-top */
.service-card-note {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Remove border-top from note when header has border-bottom (categories shown) */
.service-card-header:has(.service-card-categories-summary:not([style*="display: none"])) ~ .service-card-note {
    border-top: none;
}

.service-card-note i {
    margin-top: 0.125rem;
    color: var(--note-icon, #ffc107);
    flex-shrink: 0;
}

/* Service Details */
.service-card-details {
    padding: 1rem;
}

/* Remove any borders from collapse elements */
.service-card-content .collapse,
.service-card-content .collapse.show,
.service-card-content .collapse.collapsing {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    margin: 0 !important;
}

.service-card-category {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
}

.service-card-category:last-child {
    margin-bottom: 0;
}

.service-card-category-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Desktop: horizontal layout for categories */
@media (min-width: 769px) {
    .service-card-details {
        display: flex;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .service-card-category {
        flex: 0 1 auto;
        min-width: 200px;
        max-width: 100%;
        margin-bottom: 0;
    }

    .service-card-attachments {
        flex-basis: 100%;
        margin-top: 0.5rem;
    }
}

.service-card-category-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-card-category-icon img {
    width: 20px;
    height: 20px;
}

.service-card-category-info h6 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary, #212529);
}

.service-card-category-count {
    font-size: 0.75rem;
    color: var(--text-muted, #6c757d);
}

.service-card-category-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.service-card-tag {
    background: rgba(255, 255, 255, 0.08);
    color: var(--tag-text, #495057);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    word-break: break-word;
    max-width: 100%;
    white-space: normal;
}

/* Attachments */
.service-card-attachments {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card-attachments-header {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary, #212529);
    font-size: 0.875rem;
}

.service-card-attachments-header i {
    color: var(--attachment-icon, #6c757d);
    font-size: 0.75rem;
}

.service-card-attachments-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
}

.service-card-attachment {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.service-card-attachment:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.service-card-attachment img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .service-card {
        flex-direction: column;
    }

    .service-card-actions {
        flex-direction: row;
        justify-content: center;
        width: auto;
        padding: 0.75rem;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .service-card-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .service-card-stat {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem;
        background: rgba(0, 0, 0, 0.05);
        border-radius: 6px;
    }

    .service-card-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .service-card-category-icon {
        width: 32px;
        height: 32px;
    }

    .service-card-category-icon img {
        width: 20px;
        height: 20px;
    }

    .service-card-attachments-items {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}
/* Vehicle List - Kompaktnější verze */

/* Vehicle Wrapper - bez marginu a paddingu */
.vehicle-wrapper.vehicle-card {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    position: relative;
    z-index: 10;
}

.vehicle-wrapper.vehicle-card:has(.show) {
    z-index: 1020 !important;
}

.vehicle-actions .dropdown-menu {
    z-index: 1020 !important;
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: none;
    min-width: 220px;
    margin-top: 0.5rem;
}

.vehicle-actions .dropdown-item {
    border-radius: 8px;
    padding: 0.65rem 1rem;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.vehicle-actions .dropdown-item:last-child {
    margin-bottom: 0;
}

.vehicle-actions .dropdown-item i {
    width: 1.2rem;
    margin-right: 0.5rem;
    opacity: 0.7;
}

.vehicle-actions .dropdown-divider {
    margin: 0.5rem 0;
    opacity: 0.15;
}

/* Mobile Widgets Section */
.widgets-section-mobile {
    margin-top: 1rem;
    overflow: visible;
    position: relative;
}

.widget-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    font-size: 0.8rem;
    z-index: 10;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.widget-scroll-btn:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.widget-scroll-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.widget-scroll-left {
    left: 0.5rem;
}

.widget-scroll-right {
    right: 0.5rem;
}

.widgets-section-mobile .widgetList {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.75rem;
    padding: 0.5rem 0;
    margin: 0 !important;
}

.widgets-section-mobile .widgetList::-webkit-scrollbar {
    display: none;
}

.widgets-section-mobile .col {
    flex: 0 0 auto;
    width: 260px;
    padding: 0 !important;
}

.widgets-section-mobile .widgetDetail,
.widgets-section-mobile .widget-card {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
    min-height: 96px;
    padding: 0.75rem !important;
}

.widgets-section-mobile .widgetDetail-add {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 96px;
    border-radius: 12px;
}

.widgets-section-mobile .widget-select {
    width: 100%;
    margin-bottom: 0.5rem;
}

/* Filter Toggle Button */
.btn-filter-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 0;
}

.btn-filter-toggle:hover {
    background: rgba(0, 0, 0, 0.03);
}

.btn-filter-toggle i.fa-chevron-down {
    transition: transform 0.2s ease;
}

.btn-filter-toggle[aria-expanded="true"] i.fa-chevron-down {
    transform: rotate(180deg);
}

/* Mobile Vehicle Card Layout */
@media (max-width: 575px) {
    .content-wrapper.cars {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .vehicle-card .vehicle-image-col {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
    }

    .vehicle-card .vehicle-image {
        width: 120px !important;
        height: 90px;
        object-fit: cover;
    }

    .vehicle-card .vehicle-info-col {
        flex: 1 !important;
        min-width: 0;
        padding-top: 0 !important;
    }

    .vehicle-card .vehicle-header {
        margin-top: 0 !important;
        margin-bottom: 0.35rem !important;
    }

    .vehicle-card .vehicle-producer-logo {
        width: 24px !important;
        height: 24px !important;
    }

    .vehicle-card .vehicle-parameters {
        margin-top: 0 !important;
        margin-bottom: 0.5rem !important;
        padding-top: 0;
        border-top: none;
    }

    .vehicle-card .vehicle-title-link {
        font-size: 0.9rem;
    }

    .vehicle-card .vehicle-producer {
        font-size: 0.85rem !important;
    }

    .vehicle-card .vehicle-model {
        font-size: 0.85rem !important;
    }

    .vehicle-card .vehicle-parameters {
        margin-bottom: 0.5rem !important;
    }

    .vehicle-card .vehicle-params-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        row-gap: 0.4rem;
    }

    .vehicle-card .vehicle-param {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
        border-radius: 6px;
        display: flex;
        align-items: center;
        gap: 0.3rem;
        background: rgba(0, 0, 0, 0.03);
        border: 1px solid rgba(0, 0, 0, 0.08);
    }

    .vehicle-card .vehicle-param-icon {
        font-size: 0.7rem;
        margin: 0;
    }

    .vehicle-card .vehicle-param-value {
        font-size: 0.7rem;
        line-height: 1.2;
    }

    .vehicle-card .vehicle-param-value strong {
        font-weight: 600;
    }

    .vehicle-card .vehicle-param-age {
        display: none;
    }

    .vehicle-card .vehicle-actions {
        flex-wrap: nowrap;
        gap: 0.5rem !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.25rem;
    }

    .vehicle-card .vehicle-actions::-webkit-scrollbar {
        display: none;
    }

    .vehicle-card .btn-vehicle-action {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
        white-space: nowrap;
        border-radius: 8px;
    }

    .vehicle-card .btn-vehicle-action i {
        font-size: 0.9rem;
    }

    .vehicle-card .btn-vehicle-service,
    .vehicle-card .btn-vehicle-refuel {
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .vehicle-card .btn-vehicle-service i,
    .vehicle-card .btn-vehicle-refuel i {
        font-size: 0.9rem;
    }

    .vehicle-card .btn-vehicle-action .d-none,
    .vehicle-card .btn-vehicle-service .d-none,
    .vehicle-card .btn-vehicle-refuel .d-none {
        display: none !important;
    }

    .vehicle-card .btn-group {
        flex: 0 0 auto;
        flex-wrap: nowrap;
        border-radius: 8px;
        overflow: hidden;
    }

    .vehicle-card .btn-group .btn-vehicle-service,
    .vehicle-card .btn-group .btn-vehicle-refuel {
        border-radius: 0;
        padding: 0.5rem 0.75rem;
    }

    .vehicle-card .btn-group .btn-vehicle-service-add,
    .vehicle-card .btn-group .btn-vehicle-refuel-add {
        padding: 0.5rem 0.6rem;
        border-radius: 0;
        min-width: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .vehicle-card .btn-group .btn-vehicle-service-add i,
    .vehicle-card .btn-group .btn-vehicle-refuel-add i {
        margin: 0;
        font-size: 1rem;
    }

    .vehicle-card .dropdown {
        flex: 0 0 auto;
    }

    .vehicle-card .dropdown .btn {
        padding: 0.5rem 0.75rem;
    }

    .vehicle-card .widgets-section-mobile {
        margin-top: 0.75rem;
    }

    /* Skrýt drag handle na mobilu */
    .vehicle-drag-handle {
        display: none !important;
    }
}

/* Mobile Filters */
@media (max-width: 991px) {
    .vehicle-list-filters {
        position: sticky;
        top: 56px;
        z-index: 100;
        margin-top: 0 !important;
        padding: 0 !important;
    }

    .vehicle-list-filters .card {
        border-radius: 0 0 12px 12px;
        border-left: none;
        border-right: none;
        border-top: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        padding: 0 1rem;
    }

    .vehicle-list-filters .card-body {
        padding: 0.75rem 0 !important;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }

    .vehicle-list-filters .row {
        gap: 0.5rem !important;
    }

    .vehicle-list-filters .filter-section {
        margin-bottom: 0;
    }

    .vehicle-list-filters .filter-label {
        font-size: 0.7rem;
        margin-bottom: 0.35rem !important;
        opacity: 0.7;
    }

    .vehicle-list-filters .btn-group {
        width: 100%;
    }

    .vehicle-list-filters .btn-radio {
        font-size: 0.7rem;
        padding: 0.4rem 0.5rem;
        white-space: nowrap;
    }

    .vehicle-list-filters .form-check {
        margin-bottom: 0;
    }

    .vehicle-list-filters .form-check-label {
        font-size: 0.75rem;
    }

    .vehicle-list-filters .d-flex.flex-wrap {
        gap: 0.75rem !important;
        justify-content: center;
    }

    .vehicle-list-filters .filter-section-bordered {
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .vehicle-list-filters .col-12 {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Vehicle Cards - kompaktnější, vždy 100% šířka */
.vehicle-item-card {
    width: 100% !important;
    border-radius: 8px;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: default;
    overflow: visible !important;
}

.vehicle-item-card:hover {
    transform: none !important;
}

.vehicle-item-card .card-body {
    display: flex;
    flex-direction: column;
    overflow: visible !important;
}

.vehicle-item-card .card-body > .row {
    flex: 1;
    align-items: stretch;
    overflow: visible !important;
}

.vehicle-info-col {
    overflow: visible !important;
}

.vehicle-actions {
    overflow: visible !important;
}

/* Vehicle Info Column */
.vehicle-info-col {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 0.5rem;
    min-width: 0;
}

/* Vehicle Header */
.vehicle-header {
    margin-top: 4px;
    margin-bottom: 0.25rem;
}

.vehicle-title-block {
    flex: 1;
}

.vehicle-producer-logo {
    max-width: 32px !important;
    height: auto;
    opacity: 0.8;
}

.vehicle-title-link {
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
}

.vehicle-producer {
    display: block;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.125rem;
}

.vehicle-model {
    display: block;
    font-size: 0.8125rem;
    line-height: 1.4;
    opacity: 0.85;
}

.vehicle-license-plate {
    font-weight: 600;
}

/* Vehicle Image */
.vehicle-card .vehicle-image-wrapper {
    border-radius: 8px;
    overflow: hidden;
    padding: 0.25rem;
    position: relative;
}

.vehicle-card .vehicle-image {
    width: 260px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.vehicle-card .vehicle-image-placeholder {
    opacity: 0.5;
}

.vehicle-card .vehicle-image-link {
    position: relative;
    display: block;
}

.vehicle-card .vehicle-image-link::after {
    content: '\f06e  ' attr(data-detail-text);
    font-family: 'Font Awesome 5 Free', sans-serif;
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.95rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vehicle-card .vehicle-image-link:hover::after {
    opacity: 1;
}

.vehicle-card .vehicle-image-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vehicle-card .vehicle-image-link:hover::before {
    opacity: 1;
}

.vehicle-card .vehicle-image-link:hover .vehicle-image {
    transform: scale(1.05);
}

.vehicle-status-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
}

/* Vehicle Parameters */
.vehicle-parameters {
    margin-bottom: 0;
}

.vehicle-params-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(auto, max-content));
    gap: 0.5rem;
    row-gap: 0.25rem;
}

.vehicle-param {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8125rem;
    transition: all 0.2s ease;
    cursor: default;
}

.vehicle-param.copyLicPlate,
.vehicle-param.copyVin {
    cursor: pointer;
}

@media (max-width: 767px) {
    .vehicle-params-grid {
        grid-template-columns: 1fr;
    }
}

.vehicle-param-icon {
    font-size: 0.875rem;
    opacity: 0.7;
}

.vehicle-param-value {
    font-weight: 500;
}

.vehicle-param-age {
    opacity: 0.7;
    font-weight: 400;
}

/* Vehicle Actions */
.vehicle-actions {
    gap: 0.5rem;
}

/* Filtry - kompaktnější */
.vehicle-list-filters .card-body {
    padding: 0.75rem !important;
}

.filter-section {
    margin-bottom: 0;
}

.filter-label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.filter-section .form-check.form-switch {
    margin-right: 0.75rem;
    margin-bottom: 0.5rem;
}

.filter-section .d-flex.flex-wrap.gap-3 {
    margin-top: 10px !important;
}

.filter-section-bordered {
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    padding-left: 1.9rem !important;
    margin-left: 1.5rem !important;
}

@media (max-width: 991px) {
    .filter-section-bordered {
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        padding-left: 0 !important;
        margin-left: 0 !important;
        padding-top: 1.5rem;
        margin-top: 1.5rem;
    }
}

/* Empty State - kompaktnější */
.empty-state-card {
    margin-top: 1rem !important;
}

.empty-state-card .card-body {
    padding: 3rem 2rem !important;
}

/* Widgets */
.widgetList {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 0;
}

.widget-card {
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
}

/* Widgets v rámci vehicle card */
.widgets-section {
    display: flex;
    align-items: stretch;
}

.widgets-section .widgetList {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
}

.widgets-section .widgetList > .widgetMovable {
    display: flex;
    flex-direction: column;
    flex: 0 0 263px;
    width: 263px;
}

.widgets-section .widgetMovable .widget-card {
    height: 100%;
}

/* Responsive min-width pro widgets-section podle počtu widgetů */
@media (min-width: 1400px) {
    /* 3 widgety po 263px */
    .widgets-section {
        min-width: calc(3 * 263px);
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    /* 2 widgety po 263px */
    .widgets-section {
        min-width: calc(2 * 263px);
    }

    .widgets-section .widgetList > .widgetMovable:nth-child(3) {
        display: none;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    /* 2 widgety po 263px */
    .widgets-section {
        min-width: calc(2 * 263px);
    }

    .widgets-section .widgetList > .widgetMovable:nth-child(3) {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    /* 1 widget na šířku, zbytek dole */
    .widgets-section .widgetList {
        flex-wrap: wrap;
    }

    .widgets-section .widgetList > .widgetMovable {
        flex: 0 0 263px;
        width: 263px;
    }
}

@media (max-width: 767px) {
    /* Stack widgety vertikálně na mobilu */
    .widgets-section .widgetList {
        flex-direction: column;
    }

    .widgets-section .widgetList > .widgetMovable {
        flex: 1 1 auto;
        width: 100%;
    }
}

.widgets-section .widget-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.widgets-section .widget-link {
    display: flex;
    flex: 1;
    min-height: 0;
}

.widgets-section .widget-link > div,
.widgets-section .widget-content > div:not(.dropdown-menu) {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.widgets-section .widget-header {
    flex-shrink: 0;
}

.widgets-section .widget-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
}

.widget-drag-handle {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 10;
    cursor: move;
    padding: 0.25rem 0.375rem;
    border-radius: 4px;
    font-size: 0.8125rem;
    opacity: 0.5;
    transition: all 0.2s ease;
    user-select: none;
    pointer-events: auto;
}

.widget-drag-handle:hover {
    opacity: 1;
}

.widget-menu-dropdown {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
}

.widget-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    font-size: 0.875rem;
    opacity: 0.4;
    transition: all 0.2s ease;
    text-decoration: none;
}

.widget-menu-toggle:hover {
    opacity: 0.8;
}

/* Skrýt šipku když je edit mode */
.widgets-section .widgetMovable.widget-edit-mode .widget-arrow {
    display: none;
}

/* V edit módu zakázat klikání na widget link */
.widgets-section .widgetMovable.widget-edit-mode .widget-link {
    pointer-events: none;
}

.widgets-section .widgetMovable.widget-edit-mode .widget-drag-handle {
    pointer-events: auto;
}

.widget-content {
    height: 100%;
}

.widget-add-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    background: transparent;
    cursor: default;
    transition: all 0.3s ease;
}

.widget-add-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.widget-add-content {
    padding: 1.5rem 1rem;
    width: 100%;
    text-align: center;
}

.widget-add-icon {
    font-size: 2.5rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.widget-add-content .form-select {
    margin-bottom: 1rem;
    text-align: center;
    font-size: 0.875rem;
}

.widget-add-content .btn {
    width: 100%;
    padding: 0.5rem 1rem;
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
}

.widget-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 1rem;
}

.widget-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.widget-title {
    font-size: 0.875rem;
    font-weight: 600;
}

.widget-body {
    padding: 0.5rem 0;
}

.widget-stat {
    margin-bottom: 1rem;
    text-align: center;
}

.widget-stat:last-child {
    margin-bottom: 0;
}

.widget-stat-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.widget-stat-value {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
}

.widget-stat-empty {
    opacity: 0.5;
}

/* Widget Oils - kompaktnější */
.widget-oils .widget-header {
    margin-bottom: 0.375rem;
    padding-bottom: 0.375rem;
}

.widget-oils .widget-body {
    padding: 0.25rem 0;
}

/* Widget Oils Grid */
.widget-oils-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.widget-oil-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.widget-oil-item:last-child {
    border-bottom: none;
}

.widget-oil-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
}

.widget-oil-icon .widget-icon-img {
    width: 20px;
    height: 20px;
}

.widget-oil-data {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.widget-oil-value {
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.widget-oil-date {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.widget-oil-empty {
    font-size: 0.875rem;
    opacity: 0.3;
    font-style: italic;
}

.widget-no-data {
    text-align: center;
    padding: 1rem 0;
    font-size: 0.875rem;
}

.widget-no-data i {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

/* Widget Dates - kompaktnější */
.widget-dates .widget-header {
    margin-bottom: 0.375rem;
    padding-bottom: 0.375rem;
}

.widget-dates .widget-body {
    padding: 0.25rem 0;
}

/* Widget Dates Grid */
.widget-dates-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.widget-date-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.widget-date-item:last-child {
    border-bottom: none;
}

.widget-date-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.9375rem;
}

.widget-date-data {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.widget-date-label {
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.widget-date-value {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.widget-date-empty {
    font-size: 0.75rem;
    opacity: 0.3;
    font-style: italic;
}

@media (max-width: 1399.98px) {
    .vehicle-card .vehicle-image {
        width: 220px;
    }
}

/* Copy Toast Notification */
.copy-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.copy-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Widget Link */
.widget-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.2s ease;
}

.widget-link:hover {
    text-decoration: none;
    color: inherit;
}

.widget-arrow {
    margin-left: auto;
    font-size: 0.875rem;
    opacity: 0.5;
    transition: all 0.2s ease;
}

.widget-link:hover .widget-arrow {
    opacity: 1;
    transform: translateX(3px);
}

.widget-stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.widget-stat-row:last-child {
    margin-bottom: 0;
}

.widget-stat-full {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.widget-stat-full .widget-stat-label {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-bottom: 0.25rem;
}

.widget-stat-full .widget-stat-value {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Garage dropdown styles */
.garage-dropdown {
    min-width: 360px !important;
    width: 360px !important;
}

.garage-dropdown-scroll {
    max-height: 450px;
    overflow-y: auto;
    overflow-x: hidden;
}

.garage-vehicle-item {
    list-style: none;
}

.garage-vehicle-item .dropdown-item {
    padding: 0.75rem 1rem;
    white-space: normal;
}

.garage-vehicle-item .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Over-limit vehicle styling */
.vehicle-over-limit {
    opacity: 0.6;
}

.vehicle-over-limit .dropdown-item {
    position: relative;
}

.vehicle-over-limit .dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
}

.vehicle-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.vehicle-thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

/* Mobile responsive adjustments */
@media (max-width: 575px) {
    .garage-dropdown {
        min-width: 90vw !important;
        width: 90vw !important;
        max-width: 350px !important;
    }

    .garage-vehicle-item .dropdown-item {
        padding: 0.5rem 0.75rem;
    }

    .garage-dropdown .vehicle-thumb {
        width: 50px;
        height: 50px;
    }

    .garage-dropdown .vehicle-thumb img {
        width: 50px;
        height: 50px;
    }

    .garage-dropdown .vehicle-actions .btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .garage-dropdown .vehicle-name {
        font-size: 0.9rem;
    }

    .garage-dropdown .vehicle-model {
        font-size: 0.75rem;
    }
}

.vehicle-thumb-placeholder {
    width: 60px;
    height: 60px;
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
}

.vehicle-thumb-placeholder i {
    font-size: 1.5rem;
}

.vehicle-info {
    min-width: 0;
    flex: 1;
}

.vehicle-name {
    font-size: 0.95rem;
}

.vehicle-model {
    font-size: 0.8rem;
}

.garage-dropdown .vehicle-actions {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
    align-items: center;
}

.garage-dropdown .vehicle-actions .btn {
    padding: 0;
    font-size: 0.875rem;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.garage-dropdown .vehicle-actions .btn .btn-icon {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
}

.garage-vehicle-item:hover .vehicle-actions .btn {
    opacity: 1;
}

.garage-dropdown .vehicle-actions .btn:hover {
    opacity: 1 !important;
}

/* Scrollbar styling for garage dropdown */
.garage-dropdown-scroll::-webkit-scrollbar {
    width: 8px;
}

.garage-dropdown-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.garage-dropdown-scroll::-webkit-scrollbar-thumb {
    background: rgba(108, 117, 125, 0.5);
    border-radius: 4px;
}

.garage-dropdown-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(108, 117, 125, 0.7);
}

/* ============================================
   Detail Widgets Container & Wrapper
   ============================================ */

/* Detail Widgets Container */
.widget-detail-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
    transition: all 0.2s ease;
    height: 100%;
}

.widget-detail-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

/* Detail Widget Menu */
.widget-detail-menu {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
}

.widget-detail-menu-btn {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 6px;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: inherit;
    opacity: 0.6;
}

.widget-detail-menu-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    opacity: 1;
}

/* Widget Add Card */
.widget-detail-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    min-height: 200px;
}

.widget-detail-add-icon {
    font-size: 2.5rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.widget-detail-picker {
    width: 100%;
}

/* Widget Intro Card */
.widget-detail-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    min-height: 250px;
    text-align: center;
    gap: 1.25rem;
}

.widget-detail-intro-icon {
    font-size: 3rem;
    opacity: 0.25;
    line-height: 1;
}

.widget-detail-intro-icon i {
    display: block;
}

.widget-detail-intro-text {
    font-size: 0.938rem;
    opacity: 0.75;
    line-height: 1.5;
    max-width: 320px;
}

@media (max-width: 767px) {
    .widget-detail-intro {
        padding: 2rem 1.5rem;
        min-height: 220px;
        gap: 1rem;
    }

    .widget-detail-intro-icon {
        font-size: 2.5rem;
    }

    .widget-detail-intro-text {
        font-size: 0.875rem;
    }
}

/* ============================================
   Detail Widgets - Modern Clean Design
   ============================================ */

.detail-widget {
    padding: 0;
}

.detail-widget-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.detail-widget-link:hover {
    text-decoration: none;
    color: inherit;
}

.detail-widget-link:hover .detail-widget-header {
    background: rgba(0, 0, 0, 0.02);
}

.detail-widget-link:hover .detail-widget-arrow {
    transform: translateX(4px);
    opacity: 1;
}

.detail-widget-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1rem;
    padding-right: 3rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: background 0.2s ease;
    position: relative;
}

.detail-widget-arrow {
    margin-left: auto;
    font-size: 0.875rem;
    opacity: 0.5;
    transition: all 0.2s ease;
    position: absolute;
    right: 3rem;
}

.detail-widget-header img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.detail-widget-header i {
    width: 28px;
    font-size: 24px;
    text-align: center;
}

.detail-widget-header span {
    font-size: 1rem;
    font-weight: 600;
}

.detail-widget-body {
    padding: 1rem;
}

.detail-widget-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.875rem;
}

/* Modern Specs Layout */
.detail-widget-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.875rem;
}

.spec-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    border-radius: 6px;
    font-size: 0.813rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.spec-item i {
    font-size: 0.75rem;
    opacity: 0.9;
}

.spec-item span {
    line-height: 1.2;
}

.spec-item.spec-primary {
    font-weight: 600;
}

.spec-item.spec-secondary {
    font-weight: 600;
}

@media (max-width: 767px) {
    .spec-item {
        font-size: 0.75rem;
        padding: 0.313rem 0.5rem;
    }

    .spec-item i {
        font-size: 0.688rem;
    }
}

.detail-widget-badges .badge {
    font-size: 0.8125rem;
    padding: 0.375em 0.625em;
    font-weight: 500;
}

.detail-widget-badges .badge i {
    font-size: 0.75rem;
    margin-right: 0.25rem;
}

.detail-widget-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
}

.detail-widget-info.single {
    grid-template-columns: 1fr;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item small {
    font-size: 0.75rem;
    opacity: 0.65;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item strong {
    font-size: 0.9375rem;
    font-weight: 600;
}

.detail-widget-next-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-widget-next-label {
    font-size: 0.75rem;
    opacity: 0.65;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.detail-widget-next {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.08) 0%, rgba(13, 202, 240, 0.08) 100%);
    border-left: 3px solid rgba(13, 110, 253, 0.5);
}

.detail-widget-next.text-success {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.08) 0%, rgba(32, 201, 151, 0.08) 100%);
    border-left-color: rgba(25, 135, 84, 0.5);
}

.detail-widget-next.text-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.1) 100%);
    border-left-color: rgba(255, 193, 7, 0.6);
}

.detail-widget-next.text-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.08) 0%, rgba(231, 74, 59, 0.08) 100%);
    border-left-color: rgba(220, 53, 69, 0.5);
}

.next-mileage,
.next-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
}

.next-mileage i,
.next-date i {
    font-size: 1rem;
    opacity: 0.7;
}

.detail-widget-stat {
    text-align: center;
    margin-bottom: 1rem;
}

.stat-main {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.375rem;
    margin-bottom: 0.375rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.stat-unit {
    font-size: 0.875rem;
    opacity: 0.7;
}

.detail-widget-stat small {
    font-size: 0.75rem;
    opacity: 0.65;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-widget-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 1rem;
    text-align: center;
}

.detail-widget-empty i {
    font-size: 2rem;
    opacity: 0.3;
}

.detail-widget-empty span {
    font-size: 0.875rem;
    opacity: 0.6;
}

/* Mobile responsive */
@media (max-width: 767px) {
    .detail-widget-header {
        padding: 0.75rem 0.875rem;
    }

    .detail-widget-header img,
    .detail-widget-header i {
        width: 24px;
        height: 24px;
        font-size: 20px;
    }

    .detail-widget-header span {
        font-size: 0.9375rem;
    }

    .detail-widget-body {
        padding: 0.875rem;
    }

    .detail-widget-meta {
        font-size: 0.75rem;
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .detail-widget-info {
        gap: 0.625rem;
    }

    .info-item small {
        font-size: 0.6875rem;
    }

    .info-item strong {
        font-size: 0.875rem;
    }

    .detail-widget-next {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.625rem 0.875rem;
    }

    .next-mileage,
    .next-date {
        font-size: 0.875rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-unit {
        font-size: 0.8125rem;
    }

    .detail-widget-empty {
        padding: 1.5rem 0.875rem;
    }

    .detail-widget-empty i {
        font-size: 1.5rem;
    }
}

/* ============================================
   Widget Detail Oils - Grid Layout
   ============================================ */

.oils-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.oil-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.625rem;
}

.oil-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oil-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.oil-data {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.oil-data strong {
    font-size: 0.9375rem;
    font-weight: 600;
}

.oil-data span {
    font-size: 0.8125rem;
}

.oil-no-data {
    font-size: 1.25rem;
    opacity: 0.3;
    font-weight: 300;
}

/* Mobile responsive for oils grid */
@media (max-width: 767px) {
    .oils-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .oil-icon {
        width: 32px;
        height: 32px;
    }

    .oil-data strong {
        font-size: 0.875rem;
    }

    .oil-data span {
        font-size: 0.75rem;
    }

    .oil-no-data {
        font-size: 1.125rem;
    }
}

/* OilsWidget Compact Detail Styles */
.detail-widget-oils-compact {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.oil-compact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.oil-compact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 6px;
    flex-shrink: 0;
    padding: 0.375rem;
    transition: all 0.2s ease;
}

.oil-compact-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Status color variants for oil icons */
.oil-compact-icon.text-success {
    background: rgba(25, 135, 84, 0.1);
}

.oil-compact-icon.text-warning {
    background: rgba(255, 193, 7, 0.1);
}

.oil-compact-icon.text-danger {
    background: rgba(220, 53, 69, 0.1);
}

.oil-compact-icon:not(.text-success):not(.text-warning):not(.text-danger) {
    background: rgba(108, 117, 125, 0.1);
}

.oil-compact-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    gap: 0.5rem;
}

.oil-compact-label {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.85;
}

.oil-compact-values {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.125rem;
}

.oil-compact-km {
    font-size: 0.813rem;
    font-weight: 700;
    line-height: 1.2;
}

.oil-compact-date {
    font-size: 0.75rem;
    font-weight: 600;
}

.oil-compact-empty {
    font-size: 0.875rem;
    opacity: 0.3;
    font-weight: 600;
}

@media (max-width: 767px) {
    .oil-compact-icon {
        width: 2rem;
        height: 2rem;
        padding: 0.25rem;
    }

    .oil-compact-label {
        font-size: 0.813rem;
    }

    .oil-compact-km {
        font-size: 0.75rem;
    }

    .oil-compact-date {
        font-size: 0.688rem;
    }

    .oil-compact-empty {
        font-size: 0.813rem;
    }
}

/* DatesWidget Detail Styles */
.detail-widget-dates-compact {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.date-compact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.date-compact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 6px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.date-compact-icon i {
    font-size: 1rem;
}

/* Status color variants for icons */
.date-compact-icon.text-success {
    background: rgba(25, 135, 84, 0.1);
    color: rgba(25, 135, 84, 0.9);
}

.date-compact-icon.text-warning {
    background: rgba(255, 193, 7, 0.1);
    color: rgba(255, 193, 7, 0.9);
}

.date-compact-icon.text-danger {
    background: rgba(220, 53, 69, 0.1);
    color: rgba(220, 53, 69, 0.9);
}

.date-compact-icon:not(.text-success):not(.text-warning):not(.text-danger) {
    background: rgba(108, 117, 125, 0.1);
    color: rgba(108, 117, 125, 0.9);
}

.date-compact-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    gap: 0.5rem;
}

.date-compact-label {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.85;
}

.date-compact-value {
    font-size: 0.875rem;
    font-weight: 700;
}

.date-compact-empty {
    font-size: 0.875rem;
    opacity: 0.3;
    font-weight: 600;
}

@media (max-width: 767px) {
    .date-compact-icon {
        width: 2rem;
        height: 2rem;
    }

    .date-compact-icon i {
        font-size: 0.875rem;
    }

    .date-compact-label,
    .date-compact-value {
        font-size: 0.813rem;
    }
}

/* RefuellingWidget Detail Styles */
.detail-widget-stat-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.08) 0%, rgba(13, 202, 240, 0.08) 100%);
    border-left: 3px solid rgba(13, 110, 253, 0.5);
}

.stat-main-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.15);
    flex-shrink: 0;
}

.stat-main-icon i {
    font-size: 1.25rem;
    color: rgba(13, 110, 253, 0.9);
}

.stat-main-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.stat-main-label {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.stat-main-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-main-unit {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.7;
}

.stat-main-empty {
    opacity: 0.4;
}

.detail-widget-refuel-info {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.refuel-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.refuel-info-label {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.85;
}

.refuel-info-value {
    font-size: 0.875rem;
    font-weight: 700;
}

@media (max-width: 767px) {
    .detail-widget-stat-main {
        padding: 0.875rem;
    }

    .stat-main-icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .stat-main-icon i {
        font-size: 1.125rem;
    }

    .stat-main-label {
        font-size: 0.688rem;
    }

    .stat-main-value {
        font-size: 1.25rem;
    }

    .stat-main-unit {
        font-size: 0.75rem;
    }

    .refuel-info-label,
    .refuel-info-value {
        font-size: 0.813rem;
    }
}

/* Service Presets Management */
.preset-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.preset-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid;
    transition: all 0.2s;
    cursor: move;
}

.preset-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.preset-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.preset-drag-handle {
    cursor: move;
    font-size: 1.2rem;
    opacity: 0.4;
    transition: opacity 0.2s;
    user-select: none;
}

.preset-drag-handle:hover {
    opacity: 0.7;
}

.preset-item.dragging {
    opacity: 0.5;
}

.preset-item.drag-over {
    border-top: 3px solid #1e3a8a;
}

.preset-icon-preview {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid;
    font-size: 1.5rem;
}

.preset-info {
    flex: 1;
}

.preset-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.preset-desc {
    font-size: 0.875rem;
    margin: 0 0 0.5rem 0;
    opacity: 0.7;
}

.preset-services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

.preset-service-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
}

.preset-service-badge i {
    font-size: 0.7rem;
}

.preset-actions {
    display: flex;
    gap: 0.5rem;
}

/* Modern Preset Modal */
.preset-modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.preset-modal-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1f2937 100%);
    color: white;
    padding: 1.25rem 1.5rem;
    border: none;
}

.preset-modal-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.preset-modal-icon {
    font-size: 1.25rem;
    opacity: 0.9;
}

.preset-modal-header .modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.preset-modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.preset-modal-header .btn-close:hover {
    opacity: 1;
}

.preset-modal-body {
    padding: 1.5rem;
    background: #f8f9fa;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
}

.preset-modal-footer {
    background: white;
    border-top: 1px solid #e9ecef;
    padding: 0.75rem 1.5rem;
    gap: 0.5rem;
}

.preset-modal-footer .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Preset Sections */
.preset-section {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.preset-section:last-child {
    margin-bottom: 0;
}

.preset-section-services {
    padding: 0.75rem;
}

/* Icon Selector */
.preset-icon-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
    gap: 0.4rem;
}

.preset-icon-btn {
    width: 100%;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    color: #64748b;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.15s;
}

.preset-icon-btn:hover {
    border-color: #1e3a8a;
    color: #1e3a8a;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(30, 58, 138, 0.15);
}

.preset-icon-btn.active {
    border-color: #1e3a8a;
    background: linear-gradient(135deg, #1e3a8a 0%, #1f2937 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(30, 58, 138, 0.35);
}

/* Services Wrapper */
.preset-services-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.preset-service-category {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.625rem;
}

.preset-service-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.625rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.preset-category-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.preset-category-title-wrapper i {
    color: #1e3a8a;
    font-size: 0.875rem;
}

.preset-category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 0.375rem;
    background: #1e3a8a;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 11px;
    margin-left: 0.375rem;
}

.preset-search-wrapper {
    position: relative;
    flex: 1;
    max-width: 200px;
}

.preset-search-input {
    width: 100%;
    padding: 0.375rem 2rem 0.375rem 0.625rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.8125rem;
    transition: all 0.15s;
    background: white;
}

.preset-search-input:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.08);
}

.preset-search-clear {
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    padding: 0;
    font-size: 0.75rem;
}

.preset-search-clear:hover {
    background: #e2e8f0;
    color: #475569;
}

.preset-service-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.preset-service-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.375rem 0.625rem;
    border-radius: 5px;
    background: white;
    border: 1.5px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.15s;
    margin: 0;
}

.preset-service-item:hover {
    border-color: #cbd5e1;
    background: #fafbfc;
}

.preset-service-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.preset-service-item input[type="checkbox"]:checked ~ .preset-service-label {
    color: #1e3a8a;
    font-weight: 600;
}

.preset-service-item input[type="checkbox"]:checked ~ .preset-service-check {
    opacity: 1;
    transform: scale(1);
}

.preset-service-item:has(input:checked) {
    border-color: #1e3a8a;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.04) 0%, rgba(31, 41, 55, 0.04) 100%);
}

.preset-service-label {
    font-size: 0.8125rem;
    color: #475569;
    transition: all 0.15s;
    white-space: nowrap;
}

.preset-service-check {
    color: #1e3a8a;
    font-size: 0.8125rem;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.15s;
}

/* Modal Header Styles */
.rw-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1f2937 100%);
    padding: 16px 20px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.rw-header-content {
    flex: 1;
}

.rw-header-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rw-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.rw-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.rw-step-info {
    font-size: 13px;
    opacity: 0.85;
    line-height: 1.3;
}

.rw-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.rw-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Service Presets Description */
.preset-description {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    border-left: 3px solid;
}

.preset-description i {
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Password Change Form Styles */
.password-info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    border-left: 3px solid;
}

.password-info-box i {
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.password-requirements {
    margin-top: 0.5rem;
    padding: 0.75rem;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.02);
}

.password-requirements small {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.password-requirements small i {
    font-size: 0.9rem;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.25rem 0;
    font-size: 0.875rem;
}

.requirements-list li i {
    font-size: 0.75rem;
    opacity: 0.6;
}

/* Registration Form Styles */
.registration-info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1.6;
    border-left: 3px solid;
}

.registration-info-box i {
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Admin Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-navbar {
    width: 250px;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 2rem 0;
}

.admin-navbar-header {
    padding: 0 1.5rem 1.5rem;
    margin-bottom: 1rem;
}

.admin-navbar-title {
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.admin-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.admin-nav-item {
    margin: 0;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9375rem;
    border-left: 3px solid transparent;
}

.admin-nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.admin-navbar-footer {
    padding: 1.5rem 1.5rem 0;
}

.admin-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
    width: 100%;
}

.admin-main {
    flex: 1;
    margin-left: 250px;
    padding: 2rem;
}

/* Admin Settings */
.settings-container {
    max-width: 900px;
}

.settings-header {
    margin-bottom: 2rem;
}

.settings-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 0.5rem 0;
}

.settings-subtitle {
    font-size: 0.9375rem;
    margin: 0;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Toggle Switch */
.toggle-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.toggle-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    border-radius: 14px;
    transition: all 0.3s;
    flex-shrink: 0;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s;
}

.toggle-checkbox:checked + .toggle-switch::after {
    left: 27px;
}

.toggle-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.toggle-text strong {
    font-size: 0.9375rem;
}

.toggle-text small {
    font-size: 0.8125rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
}


/* Status Card */
.status-card {
    border-radius: 12px;
    overflow: hidden;
}

.status-header {
    padding: 1.25rem 1.5rem;
}

.status-header h3 {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.status-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-radius: 6px;
}

.status-label {
    font-size: 0.875rem;
    font-weight: 500;
}

.status-value {
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

@media (max-width: 768px) {
    .admin-navbar {
        width: 100%;
        position: relative;
        height: auto;
    }

    .admin-main {
        margin-left: 0;
        padding: 1rem;
    }

    .admin-layout {
        flex-direction: column;
    }

    .toggle-label {
        padding: 0.875rem;
    }

    .status-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Admin Users Management - Structure */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
}

.admin-header {
    margin-bottom: 2rem;
}

.admin-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.admin-subtitle {
    font-size: 0.9375rem;
    margin: 0;
}

.filter-bar {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    border-radius: 12px;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 500;
}

.filter-input {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    border: 1px solid;
    transition: all 0.2s;
}

.filter-input:focus {
    outline: none;
}

.users-table-container {
    border-radius: 12px;
    overflow: hidden;
}

.users-table-header {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.users-table-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.users-table {
    overflow-x: auto;
}

.users-table table {
    margin: 0;
}

.users-table th {
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.users-table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

.user-info {
    flex-direction: row !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
    text-transform: uppercase;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 500;
}

.user-email {
    font-size: 0.75rem;
}

.role-badge,
.tariff-badge,
.trial-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tariff-info {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.tariff-expiry {
    font-size: 0.75rem;
}

.pending-tariff {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid;
}

.pending-info {
    font-size: 0.7rem;
    font-style: italic;
}

.user-stats {
    display: flex;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
}

.user-activity {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.activity-time,
.activity-date {
    font-size: 0.75rem;
}

.activity-none {
    font-size: 0.75rem;
}

/* Admin users table action buttons */
.users-table .action-buttons {
    display: flex;
    flex-direction: row;
    gap: 0.375rem;
}

.users-table .action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.users-table .action-btn:hover {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .filter-row {
        grid-template-columns: 1fr;
    }

    .users-table-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
}
