html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.camera-preview {
    width: 100%;
    max-width: 500px;
    border: 2px dashed #007bff;
    border-radius: 8px;
}

.hidden {
    display: none;
}

.odometer-image {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.progress-step {
    font-size: 1.2rem;
    margin: 10px 0;
}

.touch-btn {
    min-height: 50px;
    font-size: 1.1rem;
    padding: 12px;
}

.toggle-btn {
    font-size: 1rem;
}

    .toggle-btn.active {
        background-color: #007bff;
        color: white;
        border-color: #007bff;
    }

.dropdown-item.active {
    background-color: #007bff;
    color: white;
}

/* Custom file input button */
.custom-file-button {
    min-height: 50px;
    font-size: 1.1rem;
    padding: 12px;
    width: 100%;
    text-align: center;
}

/* Hide default file input */
input[type="file"] {
    display: none;
}

/* Spinner alignment */
.spinner-border {
    vertical-align: middle;
    margin-left: 8px;
}

/* Desktop Styles */
@media (min-width: 768px) {
    .container-fluid {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
    }

    .odometer-image {
        max-height: 600px;
        border: 2px solid #ccc;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .card {
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .card-title {
        font-size: 1.5rem;
        font-weight: 600;
    }

    .form-control-lg {
        font-size: 1.25rem;
        padding: 12px;
    }

    .touch-btn, .custom-file-button {
        font-size: 1.25rem;
        padding: 14px 24px;
    }

    .dropdown-toggle {
        font-size: 1.1rem;
        padding: 10px 20px;
    }

    .dropdown-menu {
        min-width: 200px;
        font-size: 1rem;
    }

    #printSection .card-body {
        padding: 30px;
    }

    #printSection h4 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    #printSection p {
        font-size: 1.1rem;
    }

    .desktop-btn-group {
        text-align: center;
        margin-top: 20px;
    }
}

@media print {
    body * {
        visibility: hidden;
    }

    #printSection, #printSection * {
        visibility: visible;
    }

    #printSection {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }

    .odometer-image {
        max-width: 100%;
        max-height: none;
        page-break-inside: avoid;
    }

    #printSection h4, #printSection p {
        color: black;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #fff;
    }

    .card {
        background-color: #1e1e1e;
    }

    .toggle-btn.active, .dropdown-item.active {
        background-color: #0d6efd;
    }

    @media (min-width: 768px) {
        .card {
            background-color: #222;
            border: 1px solid #444;
        }

        .odometer-image {
            border-color: #444;
        }
    }
}