* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Manual Page Styles */
.manual-content {
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-top: 20px;
}

.manual-content h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.manual-content p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

/* Manual IMEI Input Styles */
.manual-imei-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 20px 0;
}

.manual-imei-label {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    position: relative;
    margin-bottom: 5px;
}

/*.manual-imei-label::after {
    content: "";
    position: absolute;
    bottom: -8px;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 3px;
}*/

.manual-imei-input-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.manual-imei-input {
    width: 100%;
    max-width: 300px;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    outline: none;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
    background: white;
    color: #333;
    text-align: center;
}

.manual-imei-input:focus {
    border-color: #4facfe;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}

.manual-imei-input::placeholder {
    color: #adb5bd;
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #ffffff;
    color: #333333;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    background: #ffffff;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.page.active {
    display: flex;
}

.container {
    padding: 20px;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.logo {
    width: 300px;
    height: auto;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    text-align: center;
    margin-bottom: 40px;
}

.icon-button-group {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 20px;
}

.button-labels {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 30px;
    padding: 0 30px;
}

.label {
    width: 100px;
    text-align: center;
}

.label {
    font-size: 1rem;
    color: #7f8c8d;
    text-align: center;
    margin-top: 12px;
    font-weight: 500;
}

.btn {
    padding: 18px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 60px;
    text-align: center;
}

.icon-btn {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.icon-btn-camera {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    animation: float 3s ease-in-out infinite;
}

.icon-btn-manual {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    animation: float 3s ease-in-out infinite 1.5s;
}

/* Upload button styles - Hidden for production */
/*
.icon-btn-upload {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
*/

.icon-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: scale(0.95);
}

.icon-btn:not(:disabled):hover {
    transform: translateY(-8px) scale(1.08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.icon-btn:not(:disabled):active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.icon-btn-camera:not(:disabled):hover {
    transform: translateY(-8px) scale(1.08);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.5);
    animation: bounce 0.6s ease-in-out;
}

/* Upload button hover styles - Hidden for production */
/*
.icon-btn-upload:not(:disabled):hover {
    transform: translateY(-8px) scale(1.08);
    box-shadow: 0 12px 40px rgba(245, 87, 108, 0.5);
    animation: bounce 0.6s ease-in-out;
}
*/

.icon-btn .icon {
    font-size: 3rem;
    margin: 0;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.icon-btn:not(:disabled):hover .icon {
    transform: scale(1.1);
}

/* Animations */
@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(-8px) scale(1.08);
    }
    40% {
        transform: translateY(-12px) scale(1.1);
    }
    60% {
        transform: translateY(-10px) scale(1.09);
    }
}

/* Animation delay for camera button */
.icon-btn-camera {
    animation-delay: 0s;
}

/* Animation delay for manual button */
.icon-btn-manual {
    animation-delay: 1.5s;
}

/* Camera page specific icon styles */
.camera-controls .icon {
    font-size: 2rem;
    color: #ffffff;
}

/* Camera page perfect centering */
.camera-container {
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

#video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

.camera-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

.btn-capture {
    width: 70px;
    height: 70px;
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1002;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-secondary:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.4);
}

.btn-capture {
    background: #ff0000;
    border: 6px solid #ffffff;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    padding: 0;
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-capture:active {
    transform: translateX(-50%) scale(0.95);
}

.btn-capture:hover {
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.6);
    transform: translateX(-50%) scale(1.05);
}

.btn-capture:active {
    transform: translateX(-50%) scale(0.95);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

.icon {
    font-size: 1.5rem;
}

.permission-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.permission-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.permission-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.permission-icon.granted {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
}

.permission-icon.denied {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.permission-icon.loading {
    background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
    color: white;
}

.permission-icon i {
    font-size: 1.5rem;
}

.permission-text {
    font-size: 0.9rem;
    color: #7f8c8d;
    text-align: center;
    font-weight: 500;
}

/* Camera Page Styles */

.camera-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1000;
    border-bottom: 1px solid #333333;
}

.back-btn {
    background: none;
    border: none;
    color: #333333;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.3s ease;
}
.back-btn-white {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.3s ease;
}
.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.camera-header h2 {
    font-size: 1.3rem;
    color: #ffffff;
    flex: 1;
    text-align: center;
    margin-right: 40px;
}

.camera-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 20px;
    display: flex;
    justify-content: center;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

/* Upload Page Styles - Hidden for production */
/*
.upload-area {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 400px;
}
*/

/*
.upload-box {
    border: 3px dashed #bdc3c7;
    border-radius: 15px;
    padding: 50px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
    max-width: 320px;
    width: 100%;
}
*/

/*
.upload-box:hover {
    border-color: #3498db;
    background: #f8f9fa;
    transform: translateY(-2px);
}
*/

/*
.upload-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #7f8c8d;
}
*/

/*
.upload-box p {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 500;
}
*/

/*
.upload-box .small {
    font-size: 1rem;
    color: #7f8c8d;
    margin-top: 5px;
}
*/

/* Device Status Page Styles */
.device-status-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 400px;
    padding: 40px 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.device-status-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.info-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    min-width: 80px;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    font-family: "Courier New", monospace;
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    border: 2px solid #e1e8ed;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Vehicle Selection Styles - 3 Row Layout */
.vehicle-selection-container {
    text-align: center;
    margin-top: 30px;
    padding: 0 20px;
}

/* Row 1: Title */
.vehicle-selection-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Row 2: Vehicle Info */
.vehicle-info-row {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.vehicle-info-item {
    flex: 1;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    text-align: center;
}

.vehicle-info-label {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.vehicle-info-voltage {
    font-size: 0.85rem;
    font-weight: 500;
    color: #6c757d;
}

/* Row 3: Buttons */
.vehicle-button-row {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
}

.vehicle-btn {
    width: 80px;
    height: 80px;
    border: 3px solid #e1e8ed;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #7f8c8d;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
.manual-vehicle-btn {
    width: 80px;
    height: 80px;
    border: 3px solid #e1e8ed;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #7f8c8d;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.vehicle-btn:hover {
    border-color: #3498db;
    color: #3498db;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}
.manual-vehicle-btn:hover {
    border-color: #3498db;
    color: #3498db;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.vehicle-btn.active {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border-color: #3498db;
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}
.manual-vehicle-btn.active {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border-color: #3498db;
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}
/* Voltage selector for backward compatibility */
.voltage-selector {
    display: none;
}

.voltage-btn {
    display: none;
}

.check-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 30px auto 0;
}

.check-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

.check-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.5);
}

.check-btn:active {
    transform: translateY(0);
}

/* Manual check icon styles */
.manual-check-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 30px auto 0;
}

.manual-check-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

.manual-check-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.5);
}

/* Header for Upload and Result pages */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1002;
    border-bottom: 1px solid #ecf0f1;
    height: 50px;
}

.header h2 {
    font-size: 1.3rem;
    color: #2c3e50;
    flex: 1;
    text-align: center;
    margin-right: 40px;
}

/* Responsive adjustments */
@media (max-height: 700px) {
    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .btn {
        padding: 15px 20px;
        min-height: 50px;
        font-size: 1rem;
    }
}

@media (max-width: 380px) {
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 2rem;
    }

    .vehicle-selection-container {
        margin-top: 20px;
        padding: 0 15px;
    }

    .vehicle-selection-title {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .vehicle-info-row {
        gap: 20px;
        margin-bottom: 20px;
    }

    .vehicle-info-item {
        padding: 12px 15px;
    }

    .vehicle-info-label {
        font-size: 0.9rem;
    }

    .vehicle-info-voltage {
        font-size: 0.8rem;
    }

    .vehicle-button-row {
        gap: 30px;
    }

    .vehicle-btn {
        width: 65px;
        height: 65px;
        font-size: 1.9rem;
    }
    .manual-vehicle-btn {
        width: 65px;
        height: 65px;
        font-size: 1.9rem;
    }

    /*
    .upload-box {
        padding: 30px 20px;
    }
    */
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Status Page Styles */
.status-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 90px 20px 20px 20px;
    background: white;
    border-radius: 20px 20px 0 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.status-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 0;
}

/* Validation Status Styles */
.validation-status {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    border: 1px solid #e8eaed;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.validation-status.pass {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #0ea5e9;
}

.validation-status.fail {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #f87171;
}

.restart-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 10px auto 5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.restart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.restart-btn:active {
    transform: translateY(0);
}

.restart-btn i {
    color: white;
    font-size: 18px;
    animation: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.restart-btn:active i {
    animation: spin 0.6s linear infinite;
}

.restart-btn.loading i {
    animation: spin 1s linear infinite;
}

.restart-btn.loading {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    cursor: not-allowed;
}

.restart-btn.processing {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    cursor: not-allowed;
    opacity: 0.9;
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.restart-btn.processing:hover {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.restart-text {
    text-align: center;
    color: #9ca3af;
    font-size: 0.75rem;
    margin-top: 2px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.status-text {
    font-size: 1rem;
    font-weight: 500;
    color: #64748b;
    margin: 0;
}

.status-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.validation-status.pass .status-icon {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.25);
}

.validation-status.fail .status-icon {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(248, 113, 113, 0.25);
}

.status-result {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    color: #1e293b;
}

.validation-status.pass .status-result {
    color: #0284c7;
}

.validation-status.fail .status-result {
    color: #dc2626;
}

.status-info {
    padding: 16px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.status-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 6px 0;
}

.status-info-item:last-child {
    margin-bottom: 0;
}

.status-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #6b7280;
    min-width: 100px;
    letter-spacing: 0.025em;
}

.status-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
    text-align: right;
    word-break: break-all;
    max-width: 180px;
}

.status-value #statusLat,
.status-value #statusLon,
.status-value #deviceLat,
.status-value #deviceLon {
    font-family: "Courier New", monospace;
    background: white;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #e1e8ed;
    margin-bottom: 4px;
}

.status-value #statusLon,
.status-value #deviceLon {
    margin-bottom: 0;
}

/* Google Maps Button Styles */
.maps-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 50%;
    border: 1px solid #333;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

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

.maps-btn:hover {
    background: #f8f9fa;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-color: #000;
}

.maps-btn:active {
    transform: scale(0.98);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.api-status {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: white;
}

.loading-icon {
    font-size: 2rem;
}

.loading-text {
    font-size: 1rem;
    font-weight: 500;
}

.api-status.success {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.api-status.error {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.response-info {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-size: 0.9rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Loading Overlay Styles */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    border-radius: 20px;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.loading-content .loading-icon {
    font-size: 2rem;
    color: #667eea;
}

.loading-content .loading-text {
    font-size: 1rem;
    font-weight: 500;
    color: #2c3e50;
}

/* Validation Details Styles - Redesigned */
.validation-details {
    margin-top: 25px;
    padding: 20px 15px 50px 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.details-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.details-title i {
    color: #667eea;
    font-size: 1rem;
}

.details-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.validation-card {
    background: white;
    border-radius: 15px;
    padding: 0;
    display: flex;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    min-height: 70px;
}

.validation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.card-content {
    flex: 1;
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 4px;
}

.card-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.result-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
}

.result-status {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.result-status.pass {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.result-status.fail {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

/* Mobile optimizations */
@media (max-width: 380px) {
    .validation-details {
        padding: 15px 10px;
    }

    .card-icon {
        width: 50px;
        font-size: 1.1rem;
    }

    .card-content {
        padding: 10px 12px;
    }

    .card-title {
        font-size: 0.8rem;
    }

    .result-text {
        font-size: 0.9rem;
    }

    .result-status {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
}

/* Animation for better UX */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.validation-card {
    animation: slideInUp 0.3s ease-out;
}

.validation-card:nth-child(2) {
    animation-delay: 0.1s;
}

.validation-card:nth-child(3) {
    animation-delay: 0.2s;
}

/* Progressive Card Validation Page Styles */
.progressive-card-container {
    padding: 80px 15px 120px 15px;
    text-align: center;
    max-width: 450px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 998;
}

.progressive-title {
    font-size: 1.6rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 30px;
}

/* Progressive Steps Container */
.progressive-steps {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 30px 0;
}

.progressive-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
}

.progressive-step.active {
    opacity: 1;
    transform: translateY(0);
}

.step-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.step-label {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
    text-align: center;
}

/* Queue Animation Layout - Only one step visible at center */
.progressive-step {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10;
}

/* Active step - comes to center with bounce */
.progressive-step.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Previous step - slides up and fades out */
.progressive-step.previous {
    transform: translate(-50%, -150%) scale(0.8);
    opacity: 0;
    transition: all 0.6s ease-out;
}

.step-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.step-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 15px 0 8px 0;
    text-align: center;
}

.step-subtitle {
    font-size: 1rem;
    color: #007bff;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}

.step-description {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
    text-align: center;
    max-width: 280px;
    margin: 0 auto;
}

.progressive-step.active .step-circle {
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.7);
    animation: pulse 2s infinite;
}

.step-5 .step-circle {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.5);
}

.progressive-step.active.step-5 .step-circle {
    box-shadow: 0 12px 35px rgba(40, 167, 69, 0.7);
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 35px rgba(102, 126, 234, 0.7);
    }
}

.step-5 .step-circle {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

/* Fixed Message Bar (Bottom) */
.fixed-message-bar {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 2px solid #dee2e6;
    padding: 20px;
    margin: 20px -15px -15px -15px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

.message-icon {
    color: #007bff;
    font-size: 1.5rem;
    min-width: 30px;
}

.message-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.message-text {
    font-size: 1.1rem;
    color: #2c3e50;
    line-height: 1.4;
    font-weight: 600;
}

.message-hint {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.3;
    font-style: italic;
}

/* Progressive Loading */
.progressive-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #007bff;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.progressive-loading i {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 480px) {
    .progressive-card-container {
        padding: 70px 10px 120px 10px;
    }

    .progressive-title {
        font-size: 1.4rem;
    }

    .step-circle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .step-label {
        font-size: 0.8rem;
    }

    .step-circle {
        width: 70px;
        height: 70px;
        font-size: 1.6rem;
    }

    .step-title {
        font-size: 1.1rem;
    }

    .step-description {
        font-size: 0.8rem;
        max-width: 240px;
    }

    .fixed-message-bar {
        padding: 15px;
        margin: 15px 0 0 0;
        left: 0;
        right: 0;
    }

    .message-text {
        font-size: 1rem;
    }

    .message-hint {
        font-size: 0.8rem;
    }
}

/* Phase B Button Styles */
.phase-b-container {
    margin-top: 30px;
    text-align: center;
    padding: 20px;
    border-top: 1px solid #dee2e6;
}

.phase-b-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 10px auto 5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.phase-b-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.phase-b-btn:active {
    transform: translateY(0);
}

.phase-b-btn i {
    color: white;
    font-size: 22px;
    animation: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.phase-b-btn:active i {
    animation: spin 0.6s linear infinite;
}

.phase-b-btn.loading i {
    animation: spin 1s linear infinite;
}

.phase-b-btn.loading {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    cursor: not-allowed;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    }
}

@media (max-width: 480px) {
    .phase-b-btn {
        width: 45px;
        height: 45px;
    }

    .phase-b-btn i {
        font-size: 20px;
    }
}
