* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(160deg, #0e7490 0%, #155e75 45%, #1e3a8a 100%);
    color: #1f2937;
}

.page-shell {
    min-height: 100vh;
    padding: 24px 16px 40px;
}

.container {
    max-width: 980px;
    margin: 0 auto;
}

.hero-card {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 24px;
    padding: 28px 24px;
    margin-bottom: 24px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    text-align: center;
}

.logo-box {
    width: 120px;
    height: 120px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

h1 {
    font-size: 1.8rem;
    color: #0f172a;
    margin-bottom: 10px;
}

.subtitle {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.5;
    max-width: 700px;
    margin: 0 auto;
}

.card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10);
}

h2 {
    margin-bottom: 18px;
    font-size: 1.7rem;
    color: #0f172a;
}

.label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #1e293b;
}

.stack-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.text-input,
.file-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #fff;
    font-size: 1rem;
    color: #2F5D3A;
}

.text-input:focus,
.file-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.primary-button,
button {
    border: none;
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.primary-button,
button[type="submit"] {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: white;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.22);
}

.primary-button:hover,
button[type="submit"]:hover {
    transform: translateY(-1px);
}

.message {
    background: #dcfce7;
    color: #166534;
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.storage-bar {
    width: 100%;
    height: 18px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    margin: 14px 0 10px;
}

.storage-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #2563eb);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.storage-info {
    color: #475569;
    font-size: 0.97rem;
}

.file-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.file-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #f8fafc;
}

.file-name {
    word-break: break-word;
    color: #0f172a;
    font-weight: 600;
    flex: 1;
}

.file-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.file-list a {
    text-decoration: none;
    background: #356B45;;
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    white-space: nowrap;
    font-weight: 700;
}

.file-list a:hover {
    background: #059669;
}

.delete-form {
    display: inline;
    margin: 0;
}

.delete-button {
    background: #dc2626;
    color: white;
    box-shadow: none;
}

.delete-button:hover {
    background: #b91c1c;
}
.upload-progress-wrapper {
    margin-top: 18px;
}

.upload-progress-bar {
    width: 100%;
    height: 24px;
    background: #e6e6e6;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.upload-progress-fill {
    width: 0%;
    height: 100%;
    background: #3E7A4E;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    line-height: 24px;
    text-align: center;
    white-space: nowrap;
    transition: width 0.15s linear;
}

.upload-progress-text {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
}

.upload-status {
    margin-top: 12px;
    font-weight: 600;
}
@media (max-width: 768px) {
    .page-shell {
        padding: 14px 12px 24px;
    }

    .hero-card,
    .card {
        border-radius: 18px;
        padding: 18px;
    }

    .logo-box {
        width: 92px;
        height: 92px;
        margin-bottom: 14px;
    }

    h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.35rem;
    }

    .subtitle {
        font-size: 0.98rem;
    }

    .file-list li {
        flex-direction: column;
        align-items: stretch;
    }

    .file-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .file-list a,
    .delete-button,
    .primary-button,
    button[type="submit"] {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.55rem;
    }

    .subtitle {
        font-size: 0.94rem;
    }

    .text-input,
    .file-input,
    .primary-button,
    button[type="submit"] {
        font-size: 0.96rem;
    }
}
