* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #007bff;
    --primary-dark: #0056b3;
    --danger: #dc3545;
    --danger-dark: #c82333;
    --success: #28a745;
    --dark: #333;
    --light: #f8f9fa;
    --border: #dee2e6;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f6f9;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background: var(--dark);
    color: white;
    padding: 1rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    display: inline-block;
    margin-right: 2rem;
    font-size: 1.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    margin-right: 20px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.3s;
}

nav a:hover {
    background: rgba(255,255,255,0.1);
}

/* Cards */
.card {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card h2, .card h3 {
    margin-bottom: 15px;
    color: var(--dark);
}

.card h4 {
    margin-bottom: 10px;
    color: var(--primary);
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #495057;
}

input, textarea, select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

.btn:hover {
    background: var(--primary-dark);
}

.btn-primary {
    background: var(--primary);
}

.btn-danger {
    background: var(--danger);
}

.btn-danger:hover {
    background: var(--danger-dark);
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.btn-back {
    background: #6c757d;
    margin-bottom: 20px;
}

.btn-back:hover {
    background: #5a6268;
}

/* Alerts */
.alert {
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-left: 4px solid;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-color: var(--success);
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-color: var(--danger);
}

/* Auth forms */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.auth-form {
    width: 100%;
    max-width: 400px;
    padding: 30px;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 30px;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: #6c757d;
}

.auth-link a {
    color: var(--primary);
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    background: #e9ecef;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Utilities */
.hidden {
    display: none !important;
}

.meta {
    color: #6c757d;
    font-size: 14px;
}

.section-title {
    margin: 30px 0 20px;
    color: var(--dark);
}

.no-data {
    text-align: center;
    color: #6c757d;
    padding: 40px;
    background: white;
    border-radius: 8px;
}

.card-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

/* Exhibit specific */
.exhibit-card {
    position: relative;
}

.exhibit-media {
    margin: 10px 0;
}

.media-tag {
    display: inline-block;
    background: var(--light);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 5px;
}

.qr-section {
    margin: 15px 0;
    text-align: center;
}

.qr-url {
    width: 100%;
    font-size: 11px;
    color: #6c757d;
    background: var(--light);
    border: 1px solid var(--border);
    padding: 5px;
    margin-top: 10px;
    cursor: pointer;
}

/* Public view */
.public-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.public-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.public-header {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 20px;
}

.expo-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 15px;
}

.public-header h1 {
    color: var(--dark);
    font-size: 2rem;
}

.public-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.public-section h3 {
    margin-bottom: 15px;
    color: var(--dark);
}

.audio-player, .video-player {
    width: 100%;
    margin-top: 10px;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.image-gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}

.image-gallery img:hover {
    transform: scale(1.05);
}

.fullscreen-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.fullscreen-overlay img {
    max-width: 90%;
    max-height: 90%;
}

.public-footer {
    text-align: center;
    color: white;
    margin-top: 40px;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

/* Responsive */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        display: block;
        margin-bottom: 10px;
    }
    
    nav a {
        display: inline-block;
        margin-bottom: 5px;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
    }
}