/**
 * Model Revolution - Main Stylesheet
 * Design based on Mallorca Models (mallorcamodels.es)
 *
 * Colors:
 * - Gold/Bronze: #C4993C
 * - Dark Gray: #4A5359
 * - Light Background: #f8f9fa
 * - White: #ffffff
 */

/* ========== CSS Variables ========== */
:root {
    --color-gold: #C4993C;
    --color-gold-light: #d4a94c;
    --color-gold-dark: #a47f2c;
    --color-dark: #4A5359;
    --color-dark-light: #5a636a;
    --color-grey: #6c757d;
    --color-light: #f8f9fa;
    --color-white: #ffffff;
    --color-black: #212529;

    --color-success: #28a745;
    --color-warning: #ffc107;
    --color-danger: #dc3545;
    --color-info: #17a2b8;
    --color-orange: #fd7e14;

    --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;

    --border-radius: 4px;
    --border-radius-lg: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 5px 25px rgba(0, 0, 0, 0.15);

    --transition: all 0.3s ease;
}

/* ========== Base Styles ========== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: var(--line-height-base);
    color: var(--color-black);
    background-color: var(--color-light);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-gold-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }

/* ========== Layout ========== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.main-content {
    flex: 1;
    padding: 2rem 0;
}

/* ========== Header ========== */
.main-header {
    background: var(--color-dark);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--box-shadow);
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.logo img {
    height: 100px;
    width: auto;
}

.logo-text {
    color: var(--color-gold);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--color-white);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-gold);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-email {
    color: var(--color-grey);
    font-size: 0.875rem;
}

.nav-link-small {
    color: var(--color-grey);
    font-size: 0.875rem;
}

.nav-link-small:hover {
    color: var(--color-gold);
}

/* ========== Footer ========== */
.main-footer {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-logo {
    height: 40px;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--color-grey);
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--color-gold);
}

.footer-copyright {
    color: var(--color-grey);
    font-size: 0.8rem;
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--color-gold-dark);
    border-color: var(--color-gold-dark);
    color: var(--color-white);
}

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

.btn-secondary:hover {
    background: var(--color-dark-light);
    border-color: var(--color-dark-light);
    color: var(--color-white);
}

.btn-outline {
    background: transparent;
    color: var(--color-gold);
    border-color: var(--color-gold);
}

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

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

.btn-block {
    width: 100%;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
}

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

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

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1.25rem;
    opacity: 0.7;
    transition: var(--transition);
}

.btn-icon:hover {
    opacity: 1;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    transition: var(--transition);
    background: var(--color-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(196, 153, 60, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: var(--color-grey);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-row .form-group.flex-2 {
    flex: 2;
}

.form-row .form-group.flex-1 {
    flex: 1;
}

.required {
    color: var(--color-danger);
}

/* Checkbox & Radio */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"],
.checkbox-label input[type="radio"] {
    width: auto;
    margin-top: 0.25rem;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}

.highlight-box {
    background: var(--color-light);
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid #eee;
}

/* ========== Alerts ========== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

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

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

/* ========== Auth Pages ========== */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 2rem 0;
}

.auth-card {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--box-shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--color-grey);
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.auth-footer p {
    margin-bottom: 1rem;
    color: var(--color-grey);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-link {
    font-size: 0.875rem;
}

.password-strength {
    font-size: 0.8rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

.uppercase {
    text-transform: uppercase;
}

/* ========== Form Page ========== */
.form-page {
    max-width: 900px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.progress-bar {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--color-gold);
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--color-grey);
}

.form-section {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow);
}

.section-title {
    color: var(--color-gold);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-gold);
}

.section-hint {
    color: var(--color-grey);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.form-actions {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
}

/* ========== Upload Page ========== */
.upload-page {
    max-width: 900px;
    margin: 0 auto;
}

.upload-header {
    text-align: center;
    margin-bottom: 2rem;
}

.upload-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.stat {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    background: var(--color-light);
    border-radius: var(--border-radius);
}

.stat-success {
    background: #d4edda;
    color: var(--color-success);
}

.stat-warning {
    background: #fff3cd;
    color: #856404;
}

.stat-info {
    background: #d1ecf1;
    color: var(--color-info);
}

.upload-requirements {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
}

.upload-requirements h3 {
    margin-bottom: 1rem;
}

.upload-requirements ul {
    margin: 0;
    padding-left: 1.5rem;
}

.upload-requirements li {
    margin-bottom: 0.5rem;
}

.requirement-note {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    color: var(--color-grey);
}

.upload-zone {
    background: var(--color-white);
    border: 3px dashed #ddd;
    border-radius: var(--border-radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 2rem;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--color-gold);
    background: rgba(196, 153, 60, 0.05);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.upload-text {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.upload-subtext {
    color: var(--color-grey);
}

.upload-progress {
    padding: 1rem 0;
}

.photo-gallery, .video-gallery {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
}

.photo-gallery h3, .video-gallery h3 {
    margin-bottom: 1rem;
}

.photo-gallery .hint {
    font-size: 0.8rem;
    color: var(--color-grey);
    font-weight: normal;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.photo-item {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: grab;
    background: #f0f0f0;
}

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

.photo-item.dragging {
    opacity: 0.5;
}

.photo-number {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: var(--color-gold);
    color: var(--color-white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

.photo-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

.photo-size {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.7rem;
}

.no-photos, .no-videos {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: var(--color-grey);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.video-item {
    background: var(--color-light);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.video-item video {
    width: 100%;
    display: block;
}

.video-info {
    padding: 0.75rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.video-actions {
    padding: 0 0.75rem 0.75rem;
}

.page-navigation {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
}

/* ========== Status Page ========== */
.status-page {
    max-width: 700px;
    margin: 0 auto;
}

.status-card, .checklist-card, .submit-card, .timeline-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow);
}

.status-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.status-grey { background: #e9ecef; color: var(--color-grey); }
.status-yellow { background: #fff3cd; color: #856404; }
.status-orange { background: #ffe5d0; color: #d63384; }
.status-blue { background: #cce5ff; color: #004085; }
.status-green { background: #d4edda; color: var(--color-success); }
.status-red { background: #f8d7da; color: var(--color-danger); }

.status-description {
    color: var(--color-grey);
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checklist li {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.checklist li:last-child {
    border-bottom: none;
}

.check-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.checklist .complete .check-icon {
    color: var(--color-success);
}

.checklist .incomplete .check-icon {
    color: var(--color-grey);
}

.edit-link {
    margin-left: auto;
    font-size: 0.875rem;
}

.submit-warning {
    color: var(--color-warning);
    margin-bottom: 1rem;
}

.submit-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--color-grey);
}

.timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-gold);
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 1rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0.25rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-gold);
}

.timeline-date {
    font-weight: 600;
    display: block;
}

.timeline-event {
    color: var(--color-grey);
}

/* ========== Admin Pages ========== */
.admin-page {
    max-width: 1100px;
    margin: 0 auto;
}

.admin-header {
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--box-shadow);
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-dark);
}

.stat-card .stat-label {
    color: var(--color-grey);
    margin-top: 0.25rem;
}

.stat-card.stat-warning .stat-value { color: #856404; }
.stat-card.stat-info .stat-value { color: var(--color-info); }
.stat-card.stat-success .stat-value { color: var(--color-success); }

.quick-actions, .activity-section, .review-section {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-time {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: var(--color-grey);
    width: 120px;
}

.model-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.model-row:last-child {
    border-bottom: none;
}

.model-info {
    flex: 1;
}

.model-meta {
    font-size: 0.8rem;
    color: var(--color-grey);
}

.model-date {
    font-size: 0.8rem;
    color: var(--color-grey);
}

.view-all-link {
    display: block;
    text-align: right;
    margin-top: 1rem;
}

/* Filters */
.filters-bar {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
    background: var(--color-white);
    padding: 1rem;
    border-radius: var(--border-radius-lg);
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.filter-group label {
    font-size: 0.8rem;
    color: var(--color-grey);
}

.filter-group select,
.filter-group input {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
}

.search-input {
    min-width: 200px;
}

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    font-weight: 600;
    color: var(--color-dark);
    background: var(--color-light);
}

.data-table tbody tr:hover {
    background: rgba(196, 153, 60, 0.05);
}

.data-table .photo-cell {
    width: 60px;
}

.thumbnail {
    width: 50px;
    height: 65px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--color-light);
}

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

.no-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 0.6rem;
    color: var(--color-grey);
}

.code-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.code-cell code {
    background: var(--color-light);
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-family: monospace;
}

.btn-copy {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0.6;
}

.btn-copy:hover {
    opacity: 1;
}

.row-used {
    opacity: 0.6;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-grey { background: #e9ecef; color: var(--color-grey); }
.badge-success { background: #d4edda; color: var(--color-success); }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-orange { background: #ffe5d0; color: var(--color-orange); }
.badge-primary { background: #cce5ff; color: #004085; }
.badge-danger { background: #f8d7da; color: var(--color-danger); }
.badge-info { background: #d1ecf1; color: #0c5460; }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
}

.page-info {
    color: var(--color-grey);
}

/* Utility Classes */
.text-muted {
    color: var(--color-grey);
}

.loading {
    text-align: center;
    padding: 2rem;
    color: var(--color-grey);
}

.no-data {
    text-align: center;
    padding: 2rem;
    color: var(--color-grey);
}

.error {
    color: var(--color-danger);
}

/* ========== 404 Page ========== */
.error-page {
    text-align: center;
    padding: 4rem 2rem;
}

.error-page h1 {
    font-size: 6rem;
    color: var(--color-gold);
    margin-bottom: 0;
}

.error-page h2 {
    margin-bottom: 1rem;
}

.error-page p {
    color: var(--color-grey);
    margin-bottom: 2rem;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .main-header .container {
        flex-wrap: wrap;
    }

    .main-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
        flex-wrap: wrap;
    }

    .user-menu {
        order: 2;
    }

    .form-row {
        flex-direction: column;
    }

    .auth-card {
        padding: 1.5rem;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .filters-bar {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group select,
    .filter-group input {
        width: 100%;
    }

    .data-table {
        font-size: 0.875rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.5rem;
    }
}

/* ========== Lightbox Gallery ========== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.2s, transform 0.2s;
    background: none;
    border: none;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--color-gold);
    transform: scale(1.1);
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    z-index: 10001;
    padding: 1rem;
    transition: color 0.2s, transform 0.2s;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: 4px;
}

.lightbox-nav:hover {
    color: var(--color-gold);
    background: rgba(0, 0, 0, 0.5);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.lightbox-filename {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #ccc;
    font-size: 0.875rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    max-width: 60%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

/* Hide nav buttons on mobile, use swipe instead */
@media (max-width: 768px) {
    .lightbox-nav {
        font-size: 2rem;
        padding: 0.5rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}
