/* ============================================================
   Image Metadata Stripper — Styles
   Privacy-focused dark mode with green palette
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #00B894;
    --primary-light: #55EFC4;
    --accent: #FD79A8;
    --bg: #0A1A14;
    --bg-elevated: #0F261C;
    --bg-surface: #163626;
    --bg-card: #122E20;
    --bg-hover: #1C4A34;
    --text-primary: #E4F5ED;
    --text-secondary: #7CB8A0;
    --text-muted: #4A7A66;
    --border: #1E4A38;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 20px rgba(0, 0, 0, .3);
    --font: 'Inter', -apple-system, sans-serif;
}

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
}

.app {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 16px 80px;
}

.header {
    text-align: center;
    padding: 28px 0 20px;
}

.header h1 {
    font-size: 1.75rem;
    font-weight: 800;
}

.header h1 span {
    color: var(--primary);
}

.header p {
    color: var(--text-secondary);
    font-size: .9rem;
    margin-top: 4px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: .85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 200ms;
}

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

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
    font-weight: 700;
}

.btn-sm {
    padding: 6px 12px;
    font-size: .8rem;
}

/* --- Drop Zone --- */
.dropzone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 300ms;
    margin-bottom: 20px;
}

.dropzone:hover,
.dropzone.active {
    border-color: var(--primary);
    background: rgba(0, 184, 148, .05);
}

.dropzone-icon {
    font-size: 3rem;
    margin-bottom: 8px;
}

.dropzone-text {
    color: var(--text-secondary);
    font-size: .9rem;
}

.dropzone input {
    display: none;
}

/* --- File Card --- */
.file-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
}

.file-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.file-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--bg-surface);
}

.file-info h3 {
    font-size: .95rem;
    font-weight: 700;
}

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

/* --- Metadata Table --- */
.meta-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .8rem;
    margin-bottom: 12px;
}

.meta-table th {
    text-align: left;
    padding: 4px 8px;
    color: var(--text-muted);
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}

.meta-table td {
    padding: 4px 8px;
    border-bottom: 1px solid var(--border);
}

.meta-table td:first-child {
    font-weight: 600;
    color: var(--primary-light);
    white-space: nowrap;
}

.meta-table tr.has-gps td {
    color: var(--accent);
}

/* --- Size Comparison --- */
.size-compare {
    display: flex;
    gap: 16px;
    margin: 12px 0;
}

.size-box {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
}

.size-box .size-val {
    font-size: 1.2rem;
    font-weight: 800;
}

.size-box .size-label {
    font-size: .7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.size-box.reduced .size-val {
    color: var(--primary);
}

.file-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* --- Progress --- */
.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-surface);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    transition: width 300ms;
    border-radius: 3px;
}

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-size: .85rem;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transition: all 200ms;
    z-index: 200;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}