:root {
    --primary-color: #0d3188;
    --primary-color-rgb: 13, 49, 136;
    --primary-color-hover: rgba(13, 49, 136, 0.08);
    --tertiary-color: #d6e2ff;
}

body {
    background-color: #f8f9fa;
    font-family: Arial, sans-serif;
}

.logo {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: bold;
}

.btn-main {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.back-link {
    color: var(--primary-color);
    text-decoration: none;
}

.user-greeting {
    color: var(--primary-color);
    font-weight: 700;
}

.verified-badge {
    background-color: var(--tertiary-color);
    color: var(--primary-color);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.8rem;
    font-weight: 700;
}

.passport-info {
    background-color: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}


.nav-tabs {
    border-bottom: none;
}

.nav-link {
    color: #6c757d;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
}

.nav-link.active {
    background-color: var(--primary-color) !important;
    color: white !important;
    border: none;
}

.main-content {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.info-section {
    padding: 10px;
    margin-bottom: 10px;
}

.info-label {
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.info-value {
    font-weight: bold;
    color: #444;
    font-size: 1.1rem;
}

.bg-light-gray {
    background-color: #f5f5f5;
    border-radius: 5px;
}

.qr-code-container {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 150px;
    text-align: center;
}

.qr-code {
    max-width: 100%; /* Changed from width: 100%; height: auto; to max-width */
    height: auto;
}

.qr-code img {
    width: 100%;
    height: auto;
}

.economic-operator {
    background-color: #f5f5f5;
    padding: 5px;
    border-radius: 5px;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

.spec-section {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.spec-row-strip-dark {
    background-color: #f6f6f6;
}

.spec-row-strip-light {
    background-color: #fbfbfb;
}

.spec-title {
    color: #666;
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
}

.spec-value {
    font-weight: 700;
    color: #444;
}

.empty-value,
.spec-value .empty-value {
    color: #9ca3af;
    font-size: 0.85rem;
    font-style: italic;
    font-weight: 400;
}

.image-placeholder {
    height: 100%;
    background-color: #f0f0f0;
    border: 1px dashed #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.summary-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
}

.summary-title {
    font-weight: 700;
    text-align: center;
}

.arrow-indicator {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #ddd;
    font-size: 1.2rem;
}

.chart-container {
    width: 100%;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.donut-chart {
    position: relative;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at center, white 40%, transparent 40%);
}

.donut-segment {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.recycled-chart {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.recycled-item {
    position: relative;
    background-color: #f9f9f9;
    padding: 10px;
    text-align: center;
}

.recycled-donut {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    position: relative;
    border-radius: 50%;
    background: radial-gradient(circle at center, white 50%, transparent 50%);
}

.hidden {
    display: none;
}

.view-details-btn {
    background-color: var(--primary-color);
    border: none;
    color: white;
    border-radius: 5px;
}

.view-details-btn:hover,
.view-details-btn:focus {
    background-color: var(--primary-color);
    color: white;
    opacity: 0.92;
}

.dropdown-toggle {
    background-color: white;
    color: #495057;
    border: 1px solid #ced4da;
    padding: 0.25rem 0.5rem;
}
.refresh-button {
    background: none;
    border: none;
    color: #6c757d;
    margin-left: 10px;
}
.scan-icon {
    color: #6c757d;
    font-size: 1.5rem;
    margin-left: 10px;
}
.dropdown-icon {
    color: var(--primary-color);
    margin-left: 5px;
}
.search-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 0;
}
.search-heading {
    color: #6c757d;
    margin-bottom: 2rem;
}
.search-input-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}
.search-input {
    border-radius: 20px;
    border: 1px solid #ced4da;
    padding: 0.5rem 1rem;
    width: 60%;
    max-width: 400px;
}
.search-button {
    background-color: #e9ecef;
    color: #495057;
    border: none;
    border-radius: 20px;
    padding: 0.5rem 2rem;
    margin-left: 10px;
}
.input-group {
    width: 300px;
    margin: 20px auto;
}

.input-group-append .btn {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.input-group-text {
    background-color: transparent;
    border: none;
}
.input-group {
    display: inline-flex; /* Use inline-flex to fit content */
    width: auto; /* Adjust as needed */
}

.input-group .form-control {
    border-right: none; /* Remove right border of input */
    border-top-right-radius: 0; /* Remove top-right radius */
    border-bottom-right-radius: 0; /* Remove bottom-right radius */
}

.input-group .btn {
    margin-left: -1px; /* Overlap button onto input */
    background-color: #fff; /* Match the input background */
    border: 1px solid #e6e6e6; /* Add border to button */
}

/* .btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-success:hover,
.btn-outline-warning:hover,
.btn-outline-danger:hover,
.btn-outline-info:hover,
.btn-outline-light:hover,
.btn-outline-dark:hover {
    pointer-events: none;
} */

.modal-content {
    background-color: #343a40; /* Dark background */
    color: white;
    border-radius: 10px;
}
.modal-header {
    border-bottom: none;
}
.modal-title {
    font-size: 1.25rem;
}
.modal-header .btn-close {
    background-color: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
}
.modal-body {
    padding: 20px;
}
.modal-footer {
    border-top: none;
    justify-content: center;
}
.btn-green {
    background-color: #00b386; /* Green button */
    border: none;
}
.btn-green:hover {
    background-color: #00966e;
}
#cameraFeed div video {
    width: 100%; /* Make the video fill the container */
    height: 100%; /* Make the video fill the container */
    object-fit: cover; /* Maintain aspect ratio and cover the container */
}
@media (max-width: 767.98px) {
    ul.nav.nav-tabs.flex-column .nav-item .nav-link {
        width: 100%;
        text-align: left;
    }
}

.qr-body {
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-container {
    /*  Optimized dimensions for 100x100 QR code */
    width: 180px;
    height: 200px;
    background-color: white;
    border: none;
    position: relative;
}

.inner-border {
    position: absolute;
    top: 2px;
    left: 4px;
    right: 4px;
    bottom: 2px;
}

.qr-area {
    /*  Set to exactly 100x100 pixels for QR code */
    width: 100px;
    height: 100px;
    background-color: white;
    border: 1px solid #ddd;
    margin: 20px auto;
    position: relative;
    top: 10px;
}

.battery-info {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
}

.battery-label {
    font-size: 8px;
    font-weight: normal;
    letter-spacing: 2px;
    margin-bottom: 8px;
    color: black;
}

.battery-id {
    font-size: 18px;
    font-weight: bold;
    color: black;
    letter-spacing: 1px;
}

.placeholder {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 2px dashed #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-family: system-ui, -apple-system, sans-serif;
    color: #6b7280;
    font-size: 12px;
    text-align: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.placeholder-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.placeholder:hover {
    border-color: #9ca3af;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}

.serial-number-desktop {
    display: block;
}

.serial-number-mobile {
    display: none;
}

@media (max-width: 1400px) {
    .serial-number-desktop {
        display: none;
    }
    .serial-number-mobile {
        display: block;
    }
    
}

.image-container {
    max-width: 12rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: inline-block;
}

.image-content {
    width: 12rem;
    height: 12rem;
}

@media (max-width: 767px) {
    .image-container {
        max-width: 9rem;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        display: inline-block;
    }

    .image-content {
        width: 9rem;
        height: 9rem;
    }
}