:root {
    --vicer-blue: #29ABE2;
    --vicer-dark-blue: #1a8fc2;
    --vicer-gray: #333333;
    --vicer-light-gray: #f4f7fa;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--vicer-gray);
    background-color: var(--vicer-light-gray);
}

/* Navbar */
.vicer-navbar {
    background-color: #ffffff;
    border-bottom: 3px solid var(--vicer-blue);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.vicer-navbar .nav-link {
    color: var(--vicer-gray) !important;
    font-weight: 500;
    transition: color 0.2s;
}

.vicer-navbar .nav-link:hover {
    color: var(--vicer-blue) !important;
}

.vicer-navbar {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.navbar-logo {
    height: 52px;
    width: auto;
}

/* Hero Section */
.hero-section {
    padding: 4rem 1rem;
    margin-top: 2rem;
}

.hero-logo {
    max-width: 320px;
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--vicer-blue);
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--vicer-gray);
    margin-bottom: 0.5rem;
}

.hero-description {
    font-size: 1rem;
    color: #666;
    max-width: 500px;
    margin: 0 auto 1.5rem;
}

.vicer-divider {
    width: 80px;
    border: 2px solid var(--vicer-blue);
    margin: 1.5rem auto;
    opacity: 1;
}

/* Footer */
.vicer-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 1.2rem 0;
    background-color: var(--vicer-gray);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.vicer-footer .footer-link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s;
}

.vicer-footer .footer-link:hover {
    color: var(--vicer-blue);
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 1rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-logo {
        max-width: 220px;
    }
}

/* Focus states */
.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 var(--vicer-blue);
}

/* Buttons */
.btn-vicer {
    background-color: var(--vicer-blue);
    border-color: var(--vicer-blue);
    color: white;
}
.btn-vicer:hover {
    background-color: var(--vicer-dark-blue);
    border-color: var(--vicer-dark-blue);
    color: white;
}

/* Camera */
.camera-container {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}
.camera-container video {
    width: 100%;
    display: block;
}
.camera-container canvas {
    display: none;
}

/* Cards */
.asset-card {
    border-left: 4px solid var(--vicer-blue);
    margin-bottom: 1rem;
}

/* Thumbnails */
.asset-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    margin: 2px;
}

/* Captured photos preview */
.photo-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 1rem 0;
}
.photo-preview img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid var(--vicer-blue);
}

/* Language selector */
.lang-selector {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.85rem;
}
.lang-selector.active {
    background-color: var(--vicer-blue);
    color: white;
}

/* Spinner overlay */
.spinner-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Result fields */
.result-field label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 2px;
}

/* Table styles */
.table-vicer thead {
    background-color: var(--vicer-blue);
    color: white;
}

/* Responsive camera for mobile */
@media (max-width: 768px) {
    .camera-container {
        max-width: 100%;
    }
    .photo-preview img {
        width: 70px;
        height: 70px;
    }
}

/* Highlight empty/NA fields */
.field-empty {
    background-color: #fff3cd !important;
    border-color: #ffc107 !important;
}
.field-na {
    background-color: #f0f0f0 !important;
    border-color: #ccc !important;
    color: #999 !important;
}
