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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 560px;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 2.5rem;
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #60a5fa;
    letter-spacing: -0.02em;
}

.subtitle {
    color: #94a3b8;
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

/* Upload zona */
.upload-zone {
    border: 2px dashed #334155;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #1e293b;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: #60a5fa;
    background: #1e3a5f;
}

.upload-icon {
    font-size: 3rem;
    color: #60a5fa;
    margin-bottom: 1rem;
}

.upload-text {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.upload-hint {
    color: #64748b;
    font-size: 0.9rem;
}

/* Progress */
.progress-section {
    background: #1e293b;
    border-radius: 16px;
    padding: 2rem;
}

.file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.file-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}

.file-size {
    color: #94a3b8;
    font-size: 0.9rem;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #334155;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Rezultat */
.result-section {
    background: #1e293b;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #065f46;
    color: #34d399;
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.success-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #34d399;
}

.link-box {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
}

.link-box input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: #0f172a;
    border: 1px solid #334155;
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: #e2e8f0;
    font-size: 0.9rem;
    outline: none;
}

.link-box button {
    padding: 0.75rem 1.25rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.link-box button:hover {
    background: #2563eb;
}

.result-details {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.btn-new {
    padding: 0.6rem 1.5rem;
    background: transparent;
    color: #60a5fa;
    border: 1px solid #334155;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-new:hover {
    background: #1e3a5f;
    border-color: #60a5fa;
}

/* Error */
.error-section {
    background: #1e293b;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.error-text {
    color: #f87171;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Download page */
.download-card {
    background: #1e293b;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
}

.file-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.download-filename {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    word-break: break-all;
}

.download-meta {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 2rem;
}

.btn-download {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-download:hover {
    background: #2563eb;
}

.expired-text {
    color: #94a3b8;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 2.5rem;
    color: #475569;
    font-size: 0.8rem;
}

/* Utility */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }
    .upload-zone {
        padding: 2rem 1rem;
    }
    .download-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
    .download-meta span:nth-child(even) {
        display: none;
    }
}
