:root {
    --primary: #1AF1B1;
    --primary-dark: #15c994;
    --bg: #061F1A;
    --bg-card: #0a2d26;
    --bg-hover: #0f3d33;
    --text: #e0f5ef;
    --text-muted: #8ab4a8;
    --border: #1a4a3e;
    --error: #ff6b6b;
    --success: #1AF1B1;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 520px;
}

header {
    text-align: center;
    margin-bottom: 32px;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-card);
    margin-bottom: 16px;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: var(--primary);
    background: var(--bg-hover);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.upload-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.upload-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Expiry Options */
.expiry-options {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}

.options-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 500;
}

.options-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.option-tab {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.option-tab.active {
    border-color: var(--primary);
    background: rgba(26, 241, 177, 0.1);
    color: var(--primary);
}

.option-tab:hover {
    border-color: var(--primary-dark);
    color: var(--primary);
}

.expiry-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-size: 0.9rem;
    cursor: pointer;
    appearance: auto;
}

.expiry-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Progress */
.upload-progress {
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Result */
.result-area {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 32px 24px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}

.result-success {
    text-align: center;
    margin-bottom: 20px;
}

.result-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
}

.result-success p {
    font-size: 1rem;
    font-weight: 500;
    color: var(--success);
}

.link-box {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.link-box input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-size: 0.85rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
    word-break: break-all;
}

.copy-btn {
    padding: 12px 20px;
    background: var(--primary);
    color: var(--bg);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: var(--primary-dark);
}

.copy-btn.copied {
    background: var(--text-muted);
}

.result-details {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.result-expiry {
    text-align: center;
    color: var(--primary);
    font-size: 0.85rem;
    margin-bottom: 4px;
    font-weight: 500;
}

.upload-another {
    display: block;
    width: 100%;
    padding: 14px;
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    margin-top: 8px;
}

.upload-another:hover {
    background: var(--primary);
    color: var(--bg);
}

/* Error */
.error-area {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 32px 24px;
    margin-bottom: 16px;
    border: 1px solid var(--error);
}

.result-error {
    text-align: center;
    margin-bottom: 16px;
}

.result-error p {
    color: var(--error);
    font-weight: 500;
}

/* Download page */
.file-info {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 48px 32px;
    text-align: center;
    border: 1px solid var(--border);
}

.file-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.file-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    word-break: break-all;
}

.file-size {
    color: var(--text-muted);
    margin-bottom: 4px;
}

.file-type {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.file-expiry {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 24px;
    font-weight: 500;
}

.download-btn {
    display: inline-block;
    padding: 14px 48px;
    background: var(--primary);
    color: var(--bg);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    transition: background 0.2s;
}

.download-btn:hover {
    background: var(--primary-dark);
}

.back-link {
    display: block;
    margin-top: 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--primary);
}

.file-info.expired .file-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.file-info.expired h2 {
    color: var(--text-muted);
    margin-bottom: 8px;
}

.file-info.expired p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 32px;
    color: var(--text-muted);
    font-size: 0.8rem;
}
