/* ============================================
   Shadcn-style CSS Variables
   ============================================ */
:root {
    /* Primary Color: #40BF95 = HSL(160, 50%, 50%) */
    --primary-hue: 160;
    --primary-sat: 50%;
    --primary-light: 50%;

    /* Colors - Light Theme */
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;

    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;

    --popover: 0 0% 100%;
    --popover-foreground: 222.2 84% 4.9%;

    --primary: var(--primary-hue) var(--primary-sat) var(--primary-light);
    --primary-foreground: 0 0% 100%;

    --secondary: 210 40% 96.1%;
    --secondary-foreground: 222.2 47.4% 11.2%;

    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;

    --accent: 210 40% 96.1%;
    --accent-foreground: 222.2 47.4% 11.2%;

    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;

    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: var(--primary-hue) var(--primary-sat) 45%;

    --success: 142.1 76.2% 36.3%;
    --success-foreground: 355.7 100% 97.3%;

    /* Radius */
    --radius: 0.625rem;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Consolas', 'Monaco', 'Courier New', monospace;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* Dark Theme */
[data-theme="dark"] {
    --background: 222.2 84% 4.9%;
    --foreground: 210 40% 98%;

    --card: 222.2 84% 4.9%;
    --card-foreground: 210 40% 98%;

    --popover: 222.2 84% 4.9%;
    --popover-foreground: 210 40% 98%;

    --primary: var(--primary-hue) var(--primary-sat) 55%;
    --primary-foreground: 222.2 47.4% 11.2%;

    --secondary: 217.2 32.6% 17.5%;
    --secondary-foreground: 210 40% 98%;

    --muted: 217.2 32.6% 17.5%;
    --muted-foreground: 215 20.2% 65.1%;

    --accent: 217.2 32.6% 17.5%;
    --accent-foreground: 210 40% 98%;

    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;

    --border: 217.2 32.6% 25%;
    --input: 217.2 32.6% 17.5%;
    --ring: var(--primary-hue) var(--primary-sat) 50%;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.4), 0 1px 2px -1px rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
}

/* ============================================
   Base Styles
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============================================
   Background Effects
   ============================================ */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, hsla(var(--primary), 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 100% 100%, hsla(200, 70%, 50%, 0.08), transparent),
        radial-gradient(ellipse 50% 30% at 0% 100%, hsla(var(--primary), 0.06), transparent);
    pointer-events: none;
    z-index: -2;
    transition: opacity 0.3s ease;
}

.background-noise {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.015;
    pointer-events: none;
    z-index: -1;
}

[data-theme="dark"] .background-gradient {
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, hsla(var(--primary), 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 100% 100%, hsla(200, 70%, 50%, 0.08), transparent),
        radial-gradient(ellipse 50% 30% at 0% 100%, hsla(var(--primary), 0.08), transparent);
}

[data-theme="dark"] .background-noise {
    opacity: 0.02;
}

/* ============================================
   Header
   ============================================ */
.header {
    padding: 1rem 2rem;
    border-bottom: 1px solid hsl(var(--border));
    background: hsla(var(--background), 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    letter-spacing: -0.025em;
}

.logo svg {
    color: hsl(var(--primary));
}

.subtitle {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    background: hsl(var(--secondary));
    color: hsl(var(--muted-foreground));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background: hsl(var(--accent));
    color: hsl(var(--foreground));
    border-color: hsl(var(--primary));
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.theme-toggle .icon-sun {
    display: none;
}

.theme-toggle .icon-moon {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

/* ============================================
   Main Layout - Two Columns
   ============================================ */
.main-layout {
    flex: 1;
    display: grid;
    grid-template-columns: 380px 1fr;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    min-height: 0;
}

/* Left Column */
.left-column {
    padding: 1.5rem;
    border-right: 1px solid hsl(var(--border));
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: calc(100vh - 57px - 45px);
    position: sticky;
    top: 57px;
    overflow-y: auto;
    transition: border-color 0.3s ease;
}

/* Right Column */
.right-column {
    padding: 1.5rem;
    overflow-y: auto;
    min-height: calc(100vh - 57px - 45px);
}

/* ============================================
   Card Component
   ============================================ */
.card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: hsla(var(--primary), 0.4);
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 1.25rem 1.25rem 0;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    letter-spacing: -0.025em;
    margin-bottom: 0.25rem;
}

.card-description {
    color: hsl(var(--muted-foreground));
    font-size: 0.8125rem;
}

.card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ============================================
   Usage Card
   ============================================ */
.usage-card {
    padding: 1rem 1.25rem;
    background: hsl(var(--secondary));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.usage-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.75rem;
}

.usage-list {
    list-style: none;
    counter-reset: usage;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.usage-list li {
    counter-increment: usage;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.8125rem;
    color: hsl(var(--foreground));
}

.usage-list li::before {
    content: counter(usage);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.375rem;
    height: 1.375rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: hsl(var(--primary));
    background: hsla(var(--primary), 0.15);
    border-radius: 50%;
    flex-shrink: 0;
}

.usage-example {
    padding-top: 0.75rem;
    border-top: 1px solid hsl(var(--border));
}

.usage-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.375rem;
}

.usage-example code {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: hsl(var(--primary));
    word-break: break-all;
}

/* ============================================
   Form Elements
   ============================================ */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: hsl(var(--foreground));
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 0.875rem;
    color: hsl(var(--muted-foreground));
    pointer-events: none;
    transition: color 0.2s ease;
}

.input {
    width: 100%;
    height: 2.5rem;
    padding: 0 2.5rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    background: hsl(var(--input));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    outline: none;
    transition: all 0.2s ease;
}

.input::placeholder {
    color: hsl(var(--muted-foreground));
}

.input:hover {
    border-color: hsla(var(--primary), 0.5);
}

.input:focus {
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 3px hsla(var(--ring), 0.2);
}

.input:focus+.input-icon,
.input:focus~.input-icon {
    color: hsl(var(--primary));
}

.clear-btn {
    position: absolute;
    right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border: none;
    background: transparent;
    color: hsl(var(--muted-foreground));
    border-radius: calc(var(--radius) - 2px);
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
}

.input:not(:placeholder-shown)~.clear-btn {
    opacity: 1;
}

.clear-btn:hover {
    background: hsl(var(--accent));
    color: hsl(var(--foreground));
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 2.5rem;
    padding: 0 1rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
    text-decoration: none;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn:focus-visible {
    box-shadow: 0 0 0 3px hsla(var(--ring), 0.3);
}

.btn-primary {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover:not(:disabled) {
    background: hsl(var(--primary-hue) var(--primary-sat) 45%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px hsla(var(--primary), 0.35);
}

[data-theme="dark"] .btn-primary:hover:not(:disabled) {
    background: hsl(var(--primary-hue) var(--primary-sat) 50%);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-secondary {
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    border: 1px solid hsl(var(--border));
}

.btn-secondary:hover {
    background: hsl(var(--accent));
    border-color: hsla(var(--primary), 0.4);
}

.btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    background: hsl(var(--secondary));
    color: hsl(var(--muted-foreground));
    border: 1px solid hsl(var(--border));
    flex-shrink: 0;
}

.btn-icon:hover {
    background: hsl(var(--accent));
    color: hsl(var(--foreground));
    border-color: hsla(var(--primary), 0.4);
}

.btn-sm {
    height: 1.875rem;
    padding: 0 0.75rem;
    font-size: 0.75rem;
    gap: 0.375rem;
}

.full-width {
    width: 100%;
}

/* Button Loader */
.btn-loader {
    width: 14px;
    height: 14px;
    border: 2px solid hsla(var(--primary-foreground), 0.3);
    border-top-color: hsl(var(--primary-foreground));
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   Empty State
   ============================================ */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    min-height: 400px;
}

.empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: hsla(var(--primary), 0.1);
    border-radius: 50%;
    color: hsl(var(--primary));
    margin-bottom: 1.5rem;
}

.empty-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

.empty-description {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    max-width: 300px;
}

/* ============================================
   Loading & Error States
   ============================================ */
.loading-card,
.error-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    text-align: center;
    min-height: 400px;
    transition: all 0.3s ease;
}

.loader-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid hsla(var(--primary), 0.2);
    border-top-color: hsl(var(--primary));
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    margin-top: 1.5rem;
    font-size: 0.9375rem;
    color: hsl(var(--foreground));
    font-weight: 500;
}

.loader-url {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: hsl(var(--primary));
    max-width: 90%;
    word-break: break-all;
}

.error-icon {
    color: hsl(0, 62.8%, 50%);
    margin-bottom: 1.5rem;
}

.error-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

.error-message {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    max-width: 400px;
    margin-bottom: 1.5rem;
}

/* ============================================
   Result Card
   ============================================ */
.result-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    overflow: hidden;
    animation: fadeInUp 0.4s ease-out;
    transition: all 0.3s ease;
}

/* File Header */
.file-header {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: hsla(var(--primary), 0.08);
    border-bottom: 1px solid hsl(var(--border));
}

.file-thumbnail {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: calc(var(--radius) - 2px);
    background: hsl(var(--secondary));
    flex-shrink: 0;
}

.file-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.file-title {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
    line-height: 1.3;
    word-break: break-word;
}

.file-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.file-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.1875rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: hsl(var(--primary));
    background: hsla(var(--primary), 0.15);
    border-radius: 9999px;
}

.file-size {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
}

/* Sections */
.download-section,
.details-section,
.hashes-section,
.files-section,
.json-section {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid hsl(var(--border));
    transition: border-color 0.3s ease;
}

.json-section {
    border-bottom: none;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.875rem;
    color: hsl(var(--foreground));
}

.section-header h3 {
    font-size: 0.8125rem;
    font-weight: 600;
}

.section-header svg {
    color: hsl(var(--primary));
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.section-header.collapsible {
    cursor: pointer;
    user-select: none;
    margin-bottom: 0;
    padding: 0.375rem 0;
    transition: opacity 0.2s;
}

.section-header.collapsible:hover {
    opacity: 0.8;
}

.section-header .chevron {
    margin-left: auto;
    color: hsl(var(--muted-foreground));
    transition: transform 0.2s;
}

.section-header.expanded .chevron {
    transform: rotate(180deg);
}

.files-count {
    font-size: 0.6875rem;
    color: hsl(var(--muted-foreground));
    font-weight: 400;
}

/* Download Box */
.download-box {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.download-input {
    flex: 1;
    height: 2.25rem;
    padding: 0 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: hsl(var(--muted-foreground));
    background: hsl(var(--input));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    outline: none;
    min-width: 0;
    transition: all 0.2s ease;
}

.download-btn {
    height: 2.25rem;
    padding: 0 0.875rem;
    font-size: 0.8125rem;
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.detail-label {
    font-size: 0.625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: hsl(var(--muted-foreground));
}

.detail-value {
    font-size: 0.8125rem;
    color: hsl(var(--foreground));
    word-break: break-word;
}

/* Hashes Grid */
.hashes-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hash-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    background: hsl(var(--secondary));
    border-radius: calc(var(--radius) - 2px);
    transition: background-color 0.3s ease;
}

.hash-label {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: hsl(var(--primary));
    min-width: 40px;
}

.hash-value {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: hsl(var(--muted-foreground));
    word-break: break-all;
}

.btn-copy-hash {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    background: transparent;
    border: none;
    color: hsl(var(--muted-foreground));
    border-radius: calc(var(--radius) - 2px);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-copy-hash:hover {
    background: hsla(var(--primary), 0.15);
    color: hsl(var(--primary));
}

/* Files List */
.files-list {
    margin-top: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    max-height: 300px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    background: hsl(var(--secondary));
    border-radius: calc(var(--radius) - 2px);
    transition: background-color 0.3s ease;
}

.file-item-info {
    min-width: 0;
    flex: 1;
}

.file-item-name {
    font-size: 0.75rem;
    color: hsl(var(--foreground));
    word-break: break-word;
    display: block;
    margin-bottom: 0.125rem;
}

.file-item-meta {
    display: flex;
    gap: 0.625rem;
    font-size: 0.625rem;
    color: hsl(var(--muted-foreground));
}

.file-item-type {
    font-weight: 600;
    text-transform: uppercase;
    color: hsl(var(--primary));
}

/* JSON Content */
.json-content {
    margin-top: 0.875rem;
    position: relative;
}

.json-content .btn-sm {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 1;
}

#jsonPre {
    background: hsl(var(--secondary));
    border-radius: calc(var(--radius) - 2px);
    padding: 0.875rem;
    padding-top: 2.25rem;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    color: hsl(var(--muted-foreground));
    overflow-x: auto;
    max-height: 300px;
    white-space: pre-wrap;
    word-break: break-word;
    transition: background-color 0.3s ease;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 0.875rem 2rem;
    text-align: center;
    color: hsl(var(--muted-foreground));
    font-size: 0.75rem;
    border-top: 1px solid hsl(var(--border));
    transition: border-color 0.3s ease;
}

.heart {
    color: hsl(0, 80%, 60%);
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
}

/* ============================================
   Utility Classes
   ============================================ */
.hidden {
    display: none !important;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-4px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(4px);
    }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: hsla(var(--muted-foreground), 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: hsla(var(--muted-foreground), 0.4);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 900px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .left-column {
        position: relative;
        top: 0;
        height: auto;
        border-right: none;
        border-bottom: 1px solid hsl(var(--border));
    }

    .right-column {
        min-height: auto;
    }

    .header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .subtitle {
        display: none;
    }
}

@media (max-width: 640px) {
    .header {
        padding: 0.875rem 1rem;
    }

    .left-column,
    .right-column {
        padding: 1rem;
    }

    .file-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .file-thumbnail {
        width: 56px;
        height: 56px;
    }

    .download-box {
        flex-wrap: wrap;
    }

    .download-input {
        width: 100%;
        order: 1;
    }

    .btn-icon {
        order: 2;
        width: 2.25rem;
        height: 2.25rem;
    }

    .download-btn {
        flex: 1;
        order: 3;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .hash-item {
        flex-wrap: wrap;
        gap: 0.375rem;
    }

    .hash-value {
        width: 100%;
        order: 3;
    }

    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .file-item .btn {
        width: 100%;
    }
}