/* Style custom per il Servizio Condivisione Foto - Arma dei Carabinieri */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --color-navy-darkest: #040d1a;
    --color-navy-dark: #0a1729;
    --color-navy-medium: #112540;
    --color-navy-light: #1c385c;
    --color-crimson: #c30000;
    --color-crimson-light: #e60000;
    --color-crimson-glow: rgba(195, 0, 0, 0.4);
    --color-gold: #cfa836;
    --color-gold-light: #f5d46c;
    --color-gold-glow: rgba(207, 168, 54, 0.3);
    --color-text-white: #ffffff;
    --color-text-gray: #a0aec0;
    --color-text-muted: #718096;
    --color-success: #2f855a;
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-navy-darkest);
    color: var(--color-text-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-outfit {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* ==========================================
   LAYOUT COMPONENTI GENERALI
   ========================================== */

header {
    background: linear-gradient(180deg, rgba(10, 23, 41, 0.95) 0%, rgba(4, 13, 26, 0.8) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--color-gold);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo-svg {
    fill: var(--color-gold);
    filter: drop-shadow(0 0 8px var(--color-gold-glow));
    transition: var(--transition-smooth);
}

.brand-logo-svg:hover {
    transform: scale(1.05);
    fill: var(--color-gold-light);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--color-gold);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.brand-badge {
    background-color: var(--color-crimson);
    color: var(--color-text-white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    border: 1px solid var(--color-gold);
    letter-spacing: 0.05em;
    box-shadow: 0 0 10px var(--color-crimson-glow);
}

main {
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

footer {
    background-color: #030811;
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid var(--color-navy-medium);
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

footer strong {
    color: var(--color-gold);
}

/* ==========================================
   SCHERMATA UPLOAD (CLIENTE / MOBILE)
   ========================================== */

.upload-card-wrapper {
    max-width: 600px;
    margin: 3rem auto;
}

.premium-card {
    background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy-medium) 100%);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(207, 168, 54, 0.2);
    box-shadow: var(--shadow-premium), 0 0 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
}

/* La caratteristica linea rossa dei Carabinieri */
.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-crimson) 0%, var(--color-crimson-light) 50%, var(--color-crimson) 100%);
    z-index: 2;
}

.card-header {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(4, 13, 26, 0.4);
}

.card-body {
    padding: 2rem;
}

.card-icon-container {
    display: inline-flex;
    padding: 1rem;
    border-radius: 50%;
    background: rgba(207, 168, 54, 0.1);
    border: 1px dashed var(--color-gold);
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.5rem;
    color: var(--color-text-white);
    margin-bottom: 0.5rem;
}

.card-subtitle-desc {
    font-size: 0.85rem;
    color: var(--color-text-gray);
    line-height: 1.5;
}

/* Area Drag & Drop */
.drag-drop-area {
    border: 2px dashed rgba(207, 168, 54, 0.3);
    border-radius: var(--border-radius-md);
    background: rgba(4, 13, 26, 0.3);
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.drag-drop-area:hover, .drag-drop-area.drag-over {
    border-color: var(--color-gold);
    background: rgba(207, 168, 54, 0.05);
    box-shadow: 0 0 15px rgba(207, 168, 54, 0.15);
}

.drag-drop-icon {
    font-size: 2.5rem;
    color: var(--color-text-gray);
    transition: var(--transition-smooth);
}

.drag-drop-area:hover .drag-drop-icon {
    color: var(--color-gold);
    transform: translateY(-5px);
}

.drag-drop-text {
    font-size: 0.95rem;
    color: var(--color-text-white);
    font-weight: 500;
}

.drag-drop-subtext {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Divisore */
.or-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.or-divider::before, .or-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.or-divider:not(:empty)::before {
    margin-right: .75em;
}

.or-divider:not(:empty)::after {
    margin-left: .75em;
}

/* Pulsanti */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-crimson) 0%, #a00000 100%);
    color: var(--color-text-white);
    box-shadow: 0 4px 15px var(--color-crimson-glow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-crimson-light) 0%, var(--color-crimson) 100%);
    box-shadow: 0 6px 20px rgba(195, 0, 0, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--color-navy-light) 0%, var(--color-navy-medium) 100%);
    color: var(--color-text-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: var(--color-navy-light);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: rgba(207, 168, 54, 0.1);
    color: var(--color-gold-light);
    box-shadow: 0 0 15px rgba(207, 168, 54, 0.2);
}

.btn-danger {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: var(--color-text-white);
}

.btn-danger:hover {
    background: #f56565;
    transform: translateY(-2px);
}

/* Camera Overlay / Modal per Scattare Foto */
.camera-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 13, 26, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
}

.camera-container {
    background: var(--color-navy-dark);
    border: 2px solid var(--color-gold);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 640px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-premium), 0 0 40px var(--color-gold-glow);
}

.camera-header {
    background: rgba(4, 13, 26, 0.5);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.camera-viewfinder {
    width: 100%;
    background: #000;
    aspect-ratio: 4/3;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#camera-video, #camera-canvas-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-controls {
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    background: rgba(4, 13, 26, 0.5);
}

.camera-shutter-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-crimson);
    border: 4px solid var(--color-text-white);
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
}

.camera-shutter-btn:hover {
    background: var(--color-crimson-light);
    transform: scale(1.08);
}

/* Barra Progresso e Stati di Caricamento */
.file-preview-zone {
    margin-top: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-md);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.file-info-icon {
    font-size: 1.8rem;
    color: var(--color-gold);
}

.file-meta {
    display: flex;
    flex-direction: column;
}

.file-name {
    font-size: 0.9rem;
    font-weight: 600;
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.upload-progress-container {
    margin-top: 1.5rem;
    display: none;
}

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

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-crimson) 0%, var(--color-gold) 100%);
    border-radius: 50px;
    transition: width 0.1s ease;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--color-text-gray);
    margin-top: 0.5rem;
    font-weight: 500;
}

.security-badge-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: var(--color-gold);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Schermata Successo */
.success-screen {
    text-align: center;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.success-icon-badge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(47, 133, 90, 0.15);
    border: 2px solid var(--color-success);
    color: var(--color-success);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    box-shadow: 0 0 20px rgba(47, 133, 90, 0.2);
    animation: pulseSuccess 2s infinite;
}

@keyframes pulseSuccess {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(47, 133, 90, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(47, 133, 90, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(47, 133, 90, 0); }
}

.success-title {
    font-size: 1.6rem;
    color: var(--color-text-white);
}

.success-desc {
    font-size: 0.9rem;
    color: var(--color-text-gray);
    line-height: 1.6;
    max-width: 400px;
}

/* ==========================================
   AREA LOGIN AMMINISTRATORE
   ========================================== */

.login-card-wrapper {
    max-width: 450px;
    margin: 6rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(4, 13, 26, 0.5);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    color: var(--color-text-white);
    font-family: inherit;
    transition: var(--transition-smooth);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-gold);
    background: rgba(4, 13, 26, 0.7);
    box-shadow: 0 0 10px rgba(207, 168, 54, 0.15);
}

.login-error-msg {
    color: #e53e3e;
    background: rgba(229, 62, 62, 0.1);
    border: 1px solid rgba(229, 62, 62, 0.2);
    padding: 0.8rem;
    border-radius: var(--border-radius-md);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    display: none;
    text-align: center;
}

/* ==========================================
   DASHBOARD AMMINISTRATORE
   ========================================== */

.dashboard-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dashboard-header-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-navy-dark);
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-title-section h2 {
    font-size: 1.8rem;
}

.dashboard-title-section p {
    font-size: 0.85rem;
    color: var(--color-text-gray);
    margin-top: 0.2rem;
}

.admin-nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Schede statistiche */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: var(--color-navy-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-gold);
}

.stat-card.alert-style::after {
    background: var(--color-crimson);
}

.stat-icon {
    font-size: 2.2rem;
    color: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    background: rgba(207, 168, 54, 0.08);
    border-radius: var(--border-radius-md);
}

.stat-card.alert-style .stat-icon {
    color: var(--color-crimson-light);
    background: rgba(195, 0, 0, 0.08);
}

.stat-meta {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-gray);
}

/* Struttura a Tab per la Dashboard */
.tabs-container {
    display: flex;
    border-bottom: 2px solid var(--color-navy-medium);
    gap: 1rem;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--color-text-gray);
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    outline: none;
}

.tab-btn:hover {
    color: var(--color-text-white);
}

.tab-btn.active {
    color: var(--color-gold);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-gold);
    border-radius: 50px 50px 0 0;
}

.tab-content-panel {
    display: none;
}

.tab-content-panel.active {
    display: block;
}

/* Griglia Galleria Foto */
.gallery-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-select {
    background: var(--color-navy-dark);
    color: var(--color-text-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    outline: none;
    cursor: pointer;
}

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

.photo-card {
    background: var(--color-navy-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.photo-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(207, 168, 54, 0.1);
}

.photo-card-thumbnail-wrapper {
    aspect-ratio: 4/3;
    background: #000;
    overflow: hidden;
    position: relative;
}

.photo-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.photo-card:hover .photo-card-img {
    transform: scale(1.05);
}

.photo-card-folder-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(11, 23, 41, 0.85);
    border: 1px solid var(--color-gold);
    color: var(--color-gold-light);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.photo-card-gps-indicator {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(195, 0, 0, 0.85);
    color: var(--color-text-white);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    backdrop-filter: blur(4px);
}

.photo-card-details {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.photo-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.photo-card-date {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.no-data-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem 2rem;
    background: var(--color-navy-dark);
    border-radius: var(--border-radius-md);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    color: var(--color-text-gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.no-data-icon {
    font-size: 3rem;
    color: var(--color-text-muted);
}

/* Modale Dettagli Foto */
.details-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 13, 26, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 2rem;
    backdrop-filter: blur(5px);
}

.details-modal-container {
    background: var(--color-navy-dark);
    border: 1px solid var(--color-gold);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 1200px;
    height: 85vh;
    display: flex;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-premium), 0 0 40px rgba(0, 0, 0, 0.5);
}

.details-modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--color-text-white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
}

.details-modal-close-btn:hover {
    background: var(--color-crimson);
    transform: scale(1.05);
}

.details-modal-media-side {
    flex: 1.3;
    background: #02060c;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.details-modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.details-modal-info-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--color-navy-dark);
}

.details-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.details-modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.details-modal-meta {
    font-size: 0.8rem;
    color: var(--color-text-gray);
    display: flex;
    gap: 1rem;
}

.details-modal-scrollable-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.details-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gold);
    margin-bottom: 0.8rem;
    border-bottom: 1.5px solid rgba(207, 168, 54, 0.15);
    padding-bottom: 0.3rem;
}

.metadata-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.metadata-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 0.6rem 0.8rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.metadata-label {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.metadata-value {
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.2rem;
    color: var(--color-text-white);
}

.metadata-value.highlight {
    color: var(--color-gold-light);
    font-weight: 600;
}

/* Mappa incorporata */
.map-container-wrapper {
    height: 200px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1.5px solid rgba(207, 168, 54, 0.2);
    background: #000;
    position: relative;
}

#map-element {
    width: 100%;
    height: 100%;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    gap: 0.5rem;
}

.details-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 1rem;
}

/* Sezione Link di Condivisione */
.links-section-wrapper {
    background: var(--color-navy-dark);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.links-table-container {
    width: 100%;
    overflow-x: auto;
}

.premium-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.premium-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gold);
    padding: 1rem;
    border-bottom: 2px solid var(--color-navy-medium);
    font-weight: 700;
}

.premium-table td {
    padding: 1rem;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.premium-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

.token-string-code {
    font-family: monospace;
    font-size: 0.8rem;
    background: rgba(4, 13, 26, 0.5);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: var(--color-text-white);
}

.token-link-display {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    color: var(--color-text-gray);
    font-size: 0.8rem;
}

/* Modale Generazione Link */
.link-generator-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* Toast di notifica */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--color-navy-medium);
    border: 1px solid var(--color-gold);
    color: var(--color-text-white);
    border-radius: var(--border-radius-md);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: var(--shadow-premium);
    transform: translateY(150%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2000;
}

.toast-notification.show {
    transform: translateY(0);
}

.toast-notification.success {
    border-color: var(--color-success);
}

.toast-notification.error {
    border-color: var(--color-crimson);
}

/* Responsive */
@media (max-width: 900px) {
    .details-modal-container {
        flex-direction: column;
        height: 90vh;
    }
    
    .details-modal-media-side {
        flex: 1;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .details-modal-info-side {
        flex: 1.2;
    }
}

@media (max-width: 600px) {
    header {
        padding: 1rem;
    }
    
    .header-container {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    main {
        padding: 1rem;
    }
    
    .gallery-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dashboard-header-panel {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        padding: 1rem;
    }
    
    .metadata-grid {
        grid-template-columns: 1fr;
    }
}
