/* =================================================================
   STYLES LECTEUR QR CODE
   ================================================================= */

/* --- Onglets --- */
.tab-button.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    border-bottom-width: 2px;
}

.tab-button:not(.active) {
    color: #6b7280;
    border-bottom-color: transparent;
}

.tab-button:hover:not(.active) {
    color: #374151;
    border-bottom-color: #d1d5db;
}

.tab-content:not(.hidden) {
    display: block;
}

/* --- Camera --- */
#camera-content { color: #374151; }
#camera-content h3 { color: #111827; }
#camera-content p { color: #6b7280; }

#start-camera {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
}

#start-camera:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1);
}

#stop-camera {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
}

#stop-camera:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: translateY(-1px);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1);
}

#camera-container {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 2px solid #e2e8f0;
}

#camera-video {
    border: 3px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

#camera-status { color: #4b5563; font-weight: 500; }

#camera-error {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 2px solid #fecaca;
}

#camera-error p { color: #b91c1c; font-weight: 500; }

/* --- Result buttons --- */
.result-button-link {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.result-button-link:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(59, 130, 246, 0.4);
}

.result-button-copy {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(107, 114, 128, 0.3);
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.result-button-copy:hover {
    background: linear-gradient(135deg, #4b5563, #374151);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(107, 114, 128, 0.4);
}

.result-button-link svg,
.result-button-copy svg {
    color: #ffffff;
    stroke: #ffffff;
    fill: none;
    margin-right: 8px;
    width: 18px;
    height: 18px;
}

/* --- Upload zone --- */
.upload-zone {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    background-color: #fafafa;
}

.upload-zone:hover {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.upload-zone.drag-over {
    border-color: #3b82f6;
    background-color: #dbeafe;
}

/* --- Animation --- */
@keyframes fade-in {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.animate-fade-in {
    animation: fade-in 0.3s ease-out;
}
