/* CarCheck - Main Stylesheet */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #64748b;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --background-color: #f8fafc;
    --surface-color: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    min-height: 100vh;
}

/* Loading Screen */
.loading-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.loading-screen h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    margin: 1rem auto;
    animation: spin 1s linear infinite;
}

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

/* Layout */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding: 1rem;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

/* Header */
.app-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.header-content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-logo {
    font-size: 1.5rem;
}

.header-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.header-subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
    margin: 0;
}

.back-button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Cards */
.card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.card-icon {
    font-size: 1.5rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #475569;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #16a34a;
}

.btn-warning {
    background: var(--warning-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

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

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Session List */
.session-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.session-card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.session-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.session-company {
    font-weight: 600;
    font-size: 1rem;
}

.session-vehicle {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.session-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.session-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-pickup-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-pickup-complete {
    background: #d1fae5;
    color: #065f46;
}

.status-return-pending {
    background: #dbeafe;
    color: #1e40af;
}

.status-return-complete {
    background: #f3e8ff;
    color: #6b21a8;
}

.session-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Progress Bar */
.progress-container {
    margin-bottom: 1.5rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.progress-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    border-radius: 9999px;
    transition: width 0.3s ease;
}

/* Photo Capture */
.capture-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.zone-info {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.zone-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.zone-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.zone-description {
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
}

.zone-tips {
    background: #f0f9ff;
    border-left: 4px solid var(--primary-color);
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.875rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.camera-view {
    position: relative;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.camera-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-canvas {
    display: none;
}

.camera-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    color: white;
}

.capture-preview {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.capture-actions {
    display: flex;
    gap: 0.75rem;
}

.capture-actions .btn {
    flex: 1;
}

/* Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.photo-thumbnail {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--border-color);
}

.photo-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-thumbnail.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.photo-thumbnail .zone-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem;
    font-size: 0.625rem;
    text-align: center;
}

.photo-check {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: var(--success-color);
    color: white;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.photo-count {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: var(--primary-color);
    color: white;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.25rem;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.zone-photo-count {
    text-align: center;
    padding: 0.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Comparison View */
.comparison-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comparison-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.comparison-image {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.comparison-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.comparison-label {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.empty-text {
    color: var(--text-secondary);
    margin: 0 0 1.5rem 0;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.category-tab {
    padding: 0.5rem 1rem;
    border: none;
    background: var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.category-tab.active {
    background: var(--primary-color);
    color: white;
}

/* Alert/Notice */
.alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid var(--primary-color);
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid var(--warning-color);
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal {
    background: var(--surface-color);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem 1.5rem 0;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* Error UI */
#blazor-error-ui {
    background: var(--danger-color);
    color: white;
    padding: 1rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: none;
}

#blazor-error-ui .reload,
#blazor-error-ui .dismiss {
    color: white;
    margin-left: 1rem;
}

/* Responsive */
@media (max-width: 480px) {
    .main-content {
        padding: 0.75rem;
    }

    .card {
        padding: 1rem;
    }

    .btn {
        padding: 0.625rem 1rem;
    }

    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }

/* PWA / iOS Standalone Mode Styles */
@supports (padding-top: env(safe-area-inset-top)) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    
    .app-container {
        min-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    }
    
    .app-header {
        padding-top: calc(1rem + env(safe-area-inset-top));
    }
    
    body.ios-standalone .app-header {
        padding-top: calc(1rem + env(safe-area-inset-top));
    }
}

/* PWA Install Prompt Banner */
.pwa-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    z-index: 1000;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
}

.pwa-install-banner p {
    margin: 0;
    font-size: 0.9rem;
}

.pwa-install-banner button {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
}

.pwa-install-banner .dismiss {
    background: transparent;
    color: white;
    opacity: 0.7;
}

/* Offline indicator */
.offline-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--warning-color);
    color: white;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.85rem;
    z-index: 1001;
}

body.ios-standalone {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Input with Button */
.input-with-button {
    display: flex;
    gap: 0.5rem;
}

.input-with-button .form-input {
    flex: 1;
}

.btn-scan {
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

/* Scan Modal */
.scan-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.scan-modal {
    background: var(--surface-color);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.scan-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.scan-modal-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    line-height: 1;
}

.btn-close:hover {
    color: var(--text-primary);
}

.scan-modal-body {
    padding: 1.25rem;
}

.scan-modal-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Country Selector */
.country-selector {
    margin-bottom: 1rem;
    position: relative;
}

.country-selector .form-label {
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
}

.country-selector .form-select {
    padding: 0.625rem 1rem;
}

.detecting-text {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    font-style: italic;
}

/* Camera Container */
.camera-container {
    position: relative;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.camera-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Processing Overlay */
.processing-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 10;
}

.processing-overlay .spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.processing-overlay p {
    margin: 1rem 0 0 0;
    font-size: 0.875rem;
}

/* Plate Guide Overlay */
.plate-guide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.plate-frame {
    width: 80%;
    max-width: 300px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-md);
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.3);
}

.plate-guide p {
    color: white;
    font-size: 0.75rem;
    margin: 0.75rem 0 0 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Recognized Plate */
.recognized-plate {
    margin-top: 1rem;
    padding: 1rem;
    background: #d1fae5;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.recognized-plate label {
    font-size: 0.875rem;
    color: #065f46;
    margin: 0;
}

.plate-text {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: monospace;
    color: #065f46;
    letter-spacing: 0.1em;
}

/* Alert Danger */
.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--danger-color);
}

/* Photo Selection Mode */
.photo-thumbnail.selectable {
    cursor: pointer;
}

.photo-thumbnail.selectable:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.photo-thumbnail.selected {
    outline: 3px solid var(--primary-color);
    outline-offset: -3px;
}

.photo-thumbnail.selected::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(37, 99, 235, 0.2);
    pointer-events: none;
}

.photo-selected {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: var(--primary-color);
    color: white;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: bold;
    z-index: 5;
}

.selection-info {
    text-align: center;
    padding: 0.75rem;
    background: #dbeafe;
    border-radius: var(--radius-md);
    color: #1e40af;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Share Preview */
.share-preview {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 1rem;
}

.share-body-preview {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    font-size: 0.75rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 150px;
    overflow-y: auto;
    margin: 0.5rem 0 0 0;
    font-family: inherit;
}

/* Fullscreen Camera Mode */
.fullscreen-camera {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: #000;
    display: flex;
    flex-direction: column;
}

.fullscreen-camera .camera-view {
    flex: 1;
    aspect-ratio: unset;
    border-radius: 0;
}

.fullscreen-camera .camera-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fullscreen-camera-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0));
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fullscreen-camera-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    padding-top: calc(1rem + env(safe-area-inset-top, 0));
    background: linear-gradient(rgba(0,0,0,0.7), transparent);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 10;
}

.fullscreen-zone-info {
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.fullscreen-zone-info h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.fullscreen-zone-info p {
    margin: 0.25rem 0 0 0;
    font-size: 0.75rem;
    opacity: 0.9;
}

.camera-toolbar {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-camera-action {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.btn-camera-action:hover {
    background: rgba(255,255,255,0.3);
}

.btn-camera-action.active {
    background: var(--warning-color);
}

.btn-camera-action:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn-capture-main {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 4px solid white;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: transform 0.1s;
}

.btn-capture-main:hover {
    transform: scale(1.05);
}

.btn-capture-main:active {
    transform: scale(0.95);
    background: rgba(255,255,255,0.5);
}

.fullscreen-photo-count {
    text-align: center;
    color: white;
    font-size: 0.875rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.fullscreen-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

/* Photo Viewer Modal */
.photo-viewer-modal {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.photo-viewer-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-viewer-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.photo-viewer-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.photo-viewer-image img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.photo-viewer-info {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.9);
    color: white;
}

.photo-viewer-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
}

.photo-viewer-info p {
    margin: 0.25rem 0;
    font-size: 0.875rem;
    opacity: 0.8;
}

.photo-viewer-notes {
    margin-top: 0.75rem !important;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    font-style: italic;
}

/* Card Header with Action Button */
.card-header-with-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.btn-add-photo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.btn-add-photo:hover {
    background: var(--primary-dark);
}

/* Photo Info Button */
.photo-info-btn {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    font-style: italic;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Georgia, serif;
}

.photo-info-btn:hover {
    background: var(--primary-color);
}
