* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
  --primary: #ffcc00;
  --primary-dark: #d4aa00;
  --secondary: #1a1a1a;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --background: #0a0a0a;
  --surface: #121212;
  --text-primary: #f5f5f5;
  --text-secondary: #bbbbbb;
  --border: #2c2c2c;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.5), 0 1px 2px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -4px rgba(0, 0, 0, 0.6);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #0a0a0a 25%, #0d0d0d 50%, #101010 75%, #121212 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Dark Background with Animated Bubbles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.05) 2px, transparent 2px),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.03) 3px, transparent 3px),
        radial-gradient(circle at 90% 70%, rgba(255, 255, 255, 0.02) 2px, transparent 2px),
        radial-gradient(circle at 10% 30%, rgba(255, 255, 255, 0.025) 1.5px, transparent 1.5px),
        radial-gradient(circle at 60% 90%, rgba(255, 255, 255, 0.035) 2.5px, transparent 2.5px),
        radial-gradient(circle at 30% 10%, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.045) 2px, transparent 2px);
    background-size: 
        200px 200px,
        150px 150px,
        300px 300px,
        180px 180px,
        120px 120px,
        250px 250px,
        100px 100px,
        220px 220px;
    animation: bubbleFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

/* Floating Animation */
@keyframes bubbleFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.8;
    }
    25% {
        transform: translateY(-20px) translateX(10px);
        opacity: 1;
    }
    50% {
        transform: translateY(-40px) translateX(-5px);
        opacity: 0.9;
    }
    75% {
        transform: translateY(-20px) translateX(-10px);
        opacity: 1;
    }
}

/* Additional floating bubbles */
.bubble {
    position: fixed;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    pointer-events: none;
    z-index: -1;
}

.bubble:nth-child(1) {
    width: 40px;
    height: 40px;
    top: 10%;
    left: 15%;
    animation: float1 15s ease-in-out infinite;
}

.bubble:nth-child(2) {
    width: 25px;
    height: 25px;
    top: 70%;
    left: 85%;
    animation: float2 12s ease-in-out infinite reverse;
}

.bubble:nth-child(3) {
    width: 35px;
    height: 35px;
    top: 30%;
    left: 75%;
    animation: float3 18s ease-in-out infinite;
}

.bubble:nth-child(4) {
    width: 20px;
    height: 20px;
    top: 80%;
    left: 25%;
    animation: float1 10s ease-in-out infinite reverse;
}

.bubble:nth-child(5) {
    width: 30px;
    height: 30px;
    top: 50%;
    left: 50%;
    animation: float2 16s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.6;
    }
    33% {
        transform: translateY(-30px) translateX(20px) scale(1.1);
        opacity: 0.8;
    }
    66% {
        transform: translateY(-15px) translateX(-15px) scale(0.9);
        opacity: 0.7;
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-25px) translateX(15px) scale(1.2);
        opacity: 0.9;
    }
}

@keyframes float3 {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.4;
    }
    25% {
        transform: translateY(-20px) translateX(-10px) scale(1.1);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-35px) translateX(5px) scale(0.8);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-10px) translateX(12px) scale(1.05);
        opacity: 0.8;
    }
}

.header {
    background: linear-gradient(135deg, #0a0a0a 0%, #121212 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.header-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.header::before,
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.05) 2px, transparent 2px),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.03) 3px, transparent 3px),
        radial-gradient(circle at 90% 70%, rgba(255, 255, 255, 0.02) 2px, transparent 2px),
        radial-gradient(circle at 10% 30%, rgba(255, 255, 255, 0.025) 1.5px, transparent 1.5px),
        radial-gradient(circle at 60% 90%, rgba(255, 255, 255, 0.035) 2.5px, transparent 2.5px),
        radial-gradient(circle at 30% 10%, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.045) 2px, transparent 2px);
    background-size: 
        200px 200px,
        150px 150px,
        300px 300px,
        180px 180px,
        120px 120px,
        250px 250px,
        100px 100px,
        220px 220px;
    animation: bubbleFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo i {
    font-size: 3rem;
    background: linear-gradient(45deg, #ffcc00, #d4aa00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.upload-section {
    background: var(--surface);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    margin: -3rem auto 2rem;
    position: relative;
    z-index: 2;
    padding: 2rem;
    max-width: 800px;
}

.drop-zone {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: linear-gradient(135deg, #111111 0%, #0f0f0f 100%);
    position: relative;
    overflow: hidden;
}

.drop-zone:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, #141414 0%, #121212 100%);
    transform: translateY(-2px);
}

.drop-zone.dragover {
    border-color: var(--primary);
    background: linear-gradient(135deg, #161616 0%, #141414 100%);
    transform: scale(1.02);
}

.drop-zone-content {
    position: relative;
    z-index: 1;
}

.drop-zone i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.drop-zone h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.drop-zone p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.upload-btn {
    background: var(--primary);
    color: #000000;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.upload-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    border-left: 4px solid var(--primary);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.controls-left {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.view-toggle {
    display: flex;
    background: var(--surface);
    border-radius: 8px;
    padding: 0.25rem;
    box-shadow: var(--shadow);
}

.view-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.view-btn.active {
    background: var(--primary);
    color: #000000;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-primary);
    cursor: pointer;
}

.export-buttons {
    display: flex;
    gap: 0.5rem;
}

.export-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.export-btn.primary {
    background: var(--primary);
    color: #000000;
}

.export-btn.secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.export-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.gallery {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.gallery.grid-view {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.gallery.list-view {
    grid-template-columns: 1fr;
}

.image-card {
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.image-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.image-header {
    position: relative;
    overflow: hidden;
}

.image-preview {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.image-card:hover .image-preview {
    transform: scale(1.05);
}

.risk-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.risk-low {
    background: rgba(5, 150, 105, 0.9);
    color: white;
}

.risk-medium {
    background: rgba(217, 119, 6, 0.9);
    color: white;
}

.risk-high {
    background: rgba(220, 38, 38, 0.9);
    color: white;
}

.image-body {
    padding: 1.5rem;
}

.image-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.metadata-summary {
    background: #0f0f0f;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    border-left: 4px solid var(--primary);
}

.meta-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.meta-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.meta-value {
    color: var(--text-primary);
    font-weight: 600;
}

.privacy-score {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, #0f0f0f 0%, #141414 100%);
    border-radius: 8px;
    border: 1px solid #3a3a3a;
}

.score-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
}

.location-section {
    margin: 1rem 0;
    padding: 1rem;
    background: #0f0f0f;
    border-radius: 8px;
    border-left: 4px solid var(--warning);
}

.location-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--warning);
    font-weight: 600;
}

.map-container {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
}

.btn-primary {
    background: var(--primary);
    color: #000000;
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.raw-metadata {
    background: #0b0b0b;
    color: #e6e6e6;
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.8rem;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 1rem;
    border: 1px solid #2c2c2c;
}

.toggle-section {
    margin-top: 1rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.toggle-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.hidden {
    display: none !important;
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.spinner {
    border: 2px solid var(--border);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.footer {
    background: linear-gradient(to right, #0a0a0a, #121212);
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bbbbbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid #2c2c2c;
    padding-top: 2rem;
    color: #bbbbbb;
}
.footer {
    position: relative;
    overflow: hidden;
    z-index: 1;
}
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .controls {
        flex-direction: column;
        align-items: stretch;
    }

    .controls-left {
        justify-content: center;
    }

    .export-buttons {
        justify-content: center;
    }

    .gallery.grid-view {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }
}
