:root {
    --primary: #6d28d9;
    --primary-light: #7c3aed;
    --primary-dark: #5b21b6;
    --secondary: #ec4899;
    --accent: #06b6d4;
    --background: #ffffff;
    --surface: #f8fafc;
    --text: #0f172a;
    --text-light: #475569;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-card: rgba(255, 255, 255, 0.7);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.3s ease;
    --input-bg: #f1f5f9;
    --error: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --animation-speed: 0.3s;
}

[data-theme="dark"] {
    --primary: #8b5cf6;
    --primary-light: #a78bfa;
    --primary-dark: #7c3aed;
    --secondary: #f472b6;
    --accent: #22d3ee;
    --background: #0f172a;
    --surface: #1e293b;
    --text: #f8fafc;
    --text-light: #cbd5e1;
    --glass: rgba(0, 0, 0, 0.3);
    --glass-card: rgba(15, 23, 42, 0.7);
    --input-bg: #334155;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    background-color: var(--surface);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
}

.logo span {
    color: var(--accent);
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--primary);
    transform: rotate(30deg);
}

/* Main Content */
main {
    flex: 1;
    padding: 2rem 0;
}

.page-title {
    text-align: center;
    margin-bottom: 2rem;
}

.page-title h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-title p {
    color: var(--text-light);
}

.scan-container {
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    overflow: hidden;
}

/* Scan Options */
.scan-options {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.scan-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    background: var(--input-bg);
    border: 1px solid transparent;
    color: var(--text);
}

.scan-option i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.scan-option.active {
    background: rgba(109, 40, 217, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

/* Camera View */
.scan-view {
    margin-bottom: 1.5rem;
}

.camera-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    aspect-ratio: 1;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: black;
    box-shadow: var(--shadow-lg);
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.scan-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
}

.scan-frame {
    position: relative;
    width: 70%;
    height: 70%;
    border: 2px solid var(--accent);
    border-radius: 20px;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.5);
    animation: pulse 2s infinite;
}

/* Enhanced Scan Animation */
.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--accent) 20%,
        var(--accent) 80%,
        transparent
    );
    animation: scanMove 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--accent);
}

@keyframes scanMove {
    0%, 100% { top: 0; opacity: 0.5; }
    50% { top: calc(100% - 2px); opacity: 1; }
}

/* Enhanced Scan Area */
.scan-area {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    border: 2px solid var(--accent);
    border-radius: 10px;
    box-shadow: 0 0 0 2000px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.scan-area::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
}

.scan-corners {
    position: absolute;
    width: 100%;
    height: 100%;
}

.scan-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
}

.scan-corner.top-left {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.scan-corner.top-right {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.scan-corner.bottom-left {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

.scan-corner.bottom-right {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

/* Enhanced Success Animation */
.scan-success {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(16, 185, 129, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.scan-success.active {
    opacity: 1;
    animation: pulseSuccess 0.5s ease-out;
}

@keyframes pulseSuccess {
    0% { transform: scale(1); opacity: 0; }
    50% { transform: scale(1.1); opacity: 0.5; }
    100% { transform: scale(1); opacity: 0; }
}

/* Continuous Mode Indicator */
.continuous-mode-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(109, 40, 217, 0.2);
    color: var(--accent);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(4px);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s;
}

.continuous-mode-indicator.active {
    opacity: 1;
    transform: translateY(0);
}

.continuous-mode-indicator i {
    font-size: 0.7rem;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Enhanced Status Messages */
.scan-status {
    position: absolute;
    bottom: 15%;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 0.9rem;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
    transform: translateY(0);
    transition: all 0.3s;
}

.scan-status.success {
    color: var(--success);
    transform: translateY(-10px);
}

.scan-status.error {
    color: var(--error);
    transform: translateY(-10px);
}

@keyframes scanLine {
    0% { top: 15%; opacity: 0.8; }
    50% { top: 85%; opacity: 1; }
    100% { top: 15%; opacity: 0.8; }
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.camera-controls {
    position: absolute;
    bottom: 1rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 1rem;
    z-index: 5;
}

camera-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.camera-button:hover, .camera-button:active {
    background: rgba(109, 40, 217, 0.7);
    transform: scale(1.1);
}

.camera-button#capturePhoto {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    background: var(--primary);
}

.camera-button#capturePhoto:hover {
    background: var(--primary-dark);
}

/* Format Selector */
.format-selector {
    margin-top: 1rem;
    text-align: center;
}

.format-selector label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.format-options {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.format-option {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--input-bg);
    color: var(--text);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
}

.format-option:hover {
    border-color: var(--primary-light);
}

.format-option.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Upload View */
.upload-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    aspect-ratio: 3/2;
    border-radius: var(--border-radius);
}

.file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--input-bg);
    border: 2px dashed rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    padding: 2rem;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    height: 100%;
}

.file-label i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.file-label span {
    font-size: 1.2rem;
    font-weight: 500;
}

.file-label small {
    color: var(--text-light);
    margin-top: 0.5rem;
}

.file-label:hover, .file-label.dragover {
    background: rgba(109, 40, 217, 0.1);
    border-color: var(--primary);
}

.image-preview {
    width: 100%;
    max-width: 500px;
    margin: 1rem auto 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    display: none;
}

.image-preview img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

/* Results */
.result-container {
    background: var(--surface);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.5s ease forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 1rem;
}

.result-header h3 {
    font-size: 1.5rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-actions-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-button, .close-button {
    background: var(--input-bg);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    transition: var(--transition);
}

.action-button:hover, .close-button:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--primary);
}

.result-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
    position: relative;
}

.result-type i {
    color: var(--primary);
}

.scan-timestamp {
    margin-left: auto;
    font-weight: normal;
    font-size: 0.8rem;
    color: var(--text-light);
}

.result-data {
    padding: 1.2rem;
    background: var(--input-bg);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    word-break: break-word;
    max-height: 200px;
    overflow: auto;
    white-space: pre-wrap;
    position: relative;
    transition: var(--transition);
    border: 1px solid transparent;
}

.result-data:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(109, 40, 217, 0.05);
}

.result-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    flex: 1;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--input-bg);
    color: var(--text);
}

.btn-secondary:hover {
    background: #d1d5db;
    transform: translateY(-2px);
}

/* Scan History */
.scan-history {
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.history-header h3 {
    font-size: 1.2rem;
    color: var(--text);
}

.btn-link {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-link:hover {
    color: var(--error);
}

.history-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.history-item {
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.history-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.history-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(109, 40, 217, 0.1);
    color: var(--primary);
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.history-item-content {
    flex-grow: 1;
    overflow: hidden;
}

.history-item-title {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
}

.history-item-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-item-date {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-left: auto;
    white-space: nowrap;
    padding-left: 0.5rem;
}

.export-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 0.75rem;
    border: 1px solid var(--text-light);
    background: transparent;
    color: var(--text);
    transition: var(--transition);
}

.export-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(109, 40, 217, 0.05);
}

/* Quick Actions Card */
.quick-actions-card {
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.quick-actions-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.quick-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--input-bg);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text);
}

.quick-action:hover {
    background: rgba(109, 40, 217, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.quick-action.active {
    background: rgba(109, 40, 217, 0.2);
    border-color: var(--primary);
}

.quick-action i {
    color: var(--primary);
}

/* Batch Scanning */
.batch-container {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.batch-instructions {
    text-align: center;
    margin-bottom: 1.5rem;
}

.batch-instructions h3 {
    margin-bottom: 0.5rem;
    color: var(--text);
}

.batch-instructions p {
    color: var(--text-light);
}

.batch-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
}

.form-group label {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group select {
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--input-bg);
    border-radius: var(--border-radius);
    color: var(--text);
}

.batch-preview {
    margin-top: 1.5rem;
    display: none;
}

.batch-preview.active {
    display: block;
}

.batch-status {
    background: var(--input-bg);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

.batch-progress {
    width: 100%;
}

.progress-bar {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    height: 8px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 10px;
    width: 0%;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: right;
}

.batch-results {
    background: var(--input-bg);
    border-radius: var(--border-radius);
    padding: 1rem;
}

.batch-results h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.batch-results-list {
    max-height: 300px;
    overflow-y: auto;
}

.batch-result-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
}

.batch-result-item .icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(109, 40, 217, 0.1);
    border-radius: 50%;
    margin-right: 0.75rem;
    color: var(--primary);
}

.batch-result-item.error .icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.batch-result-item .content {
    flex-grow: 1;
}

.batch-result-item .file-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.batch-result-item .result {
    color: var(--text-light);
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--surface);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    min-width: 180px;
    z-index: 100;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    display: none;
}

.dropdown-menu.show {
    display: block;
    animation: fadeInDown 0.2s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary);
}

.dropdown-menu a i {
    width: 20px;
    text-align: center;
}

.context-action {
    display: none !important;
}

.context-action.show {
    display: flex !important;
}

/* Notification System */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: 1rem;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-md);
    max-width: 400px;
    z-index: 1000;
    transform: translateY(150%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-left: 4px solid var(--primary);
}

.notification.success {
    border-left-color: var(--success);
}

.notification.error {
    border-left-color: var(--error);
}

.notification.warning {
    border-left-color: var(--warning);
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-icon {
    margin-right: 12px;
    font-size: 1.25rem;
    color: var(--primary);
}

.notification.success .notification-icon {
    color: var(--success);
}

.notification.error .notification-icon {
    color: var(--error);
}

.notification.warning .notification-icon {
    color: var(--warning);
}

.notification-content {
    flex: 1;
}

.notification-message {
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
}

.notification-close:hover {
    color: var(--text);
}

/* Footer */
footer {
    padding: 2rem 0;
    background-color: var(--surface);
    margin-top: 2rem;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer p {
    color: var(--text-light);
}

footer a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-overlay p {
    margin-top: 1rem;
    color: white;
    font-weight: 500;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .scan-options {
        flex-wrap: wrap;
    }
    
    .scan-option {
        flex: 1;
        min-width: 120px;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .history-list {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .camera-container {
        aspect-ratio: 4/5;
    }
}
