* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    color: #e9eef7;
    background:
        radial-gradient(circle at top left, rgba(88, 141, 255, 0.28), transparent 34%),
        radial-gradient(circle at top right, rgba(80, 214, 196, 0.18), transparent 30%),
        linear-gradient(160deg, #07111f 0%, #0c1729 45%, #101c31 100%);

    display: flex;
    flex-direction: column;
}

header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(3, 10, 24, 0.28);
    backdrop-filter: blur(12px);
    text-align: center;
    padding: 18px 20px;
}

header h1 {
    margin: 0;
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px 56px;
    width: 100%;
}

section {
    text-align: center;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-card,
.page-card {
    width: min(100%, 720px);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 45px rgba(3, 10, 24, 0.35);
    backdrop-filter: blur(16px);
}

.page-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.eyebrow {
    margin: 0 0 8px;
    color: #80d6c4;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.card-title {
    margin: 0 0 10px;
    font-size: clamp(1.6rem, 2.4vw, 2.3rem);
}

.card-subtitle {
    margin: 0 0 20px;
    color: #dbe8ff;
    line-height: 1.7;
}

.buttonContainer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

button, .button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #3416cf; /* Green background */
    color: white; /* White text */
    transition: background-color 0.3s ease; /* Smooth transition for hover effect */
}

button:hover {
    background-color: #2a12a0; /* Darker blue on hover */
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 420px;
    margin-top: 20px;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 720px;
    padding: 20px;
}

.status-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 45px rgba(3, 10, 24, 0.35);
    backdrop-filter: blur(16px);
    text-align: center;
}

.status-card.success {
    border-color: rgba(128, 214, 196, 0.35);
}

.status-card.error {
    border-color: rgba(248, 113, 113, 0.3);
}

.status-card .card-title {
    margin-bottom: 8px;
}

.download-list {
    width: 100%;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.download-item {
    margin: 0;
}

.download-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(128, 214, 196, 0.22);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
    color: #f8fbff;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.download-link:hover {
    transform: translateY(-1px);
    border-color: rgba(128, 214, 196, 0.45);
    text-decoration: none;
    background: linear-gradient(135deg, rgba(128, 214, 196, 0.16), rgba(59, 130, 246, 0.08));
    box-shadow: 0 16px 30px rgba(3, 10, 24, 0.2);
}

.download-link-label {
    overflow-wrap: anywhere;
    text-align: left;
    font-weight: 600;
    line-height: 1.4;
}

.download-link-action {
    flex-shrink: 0;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(128, 214, 196, 0.16);
    color: #80d6c4;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.download-all-button {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, #58d3c1, #3b82f6);
    color: #04101e;
    font-weight: 800;
    box-shadow: 0 16px 35px rgba(59, 130, 246, 0.22);
}

.download-all-button:hover {
    text-decoration: none;
    background: linear-gradient(135deg, #6fe0d0, #60a5fa);
}


.status-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #58d3c1, #3b82f6);
    color: #04101e;
}

.status-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #dbe8ff;
    margin-bottom: 20px;
}

.share-url-block {
    margin-top: 12px;
    text-align: left;
}

.share-url-block label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #e9f2ff;
}

.share-url-row {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.share-url-row input {
    flex: 1;
    background: rgba(2, 8, 23, 0.45);
    color: #f8fbff;
    border: 1px solid rgba(128, 214, 196, 0.25);
    border-radius: 12px;
    padding: 12px 14px;
}

.share-url-row button {
    white-space: nowrap;
    border-radius: 12px;
}

.share-url-row button.is-copied {
    background-color: #16a34a;
}

.copy-feedback {
    margin-top: 8px;
    color: #80d6c4;
    font-size: 0.95rem;
}

.secondary-link {
    display: inline-block;
    margin-top: 8px;
    color: #80d6c4;
    font-weight: 600;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
}

.dropzone-group {
    width: 100%;
    
}

.drop-zone {
    width: 100%;
    min-height: 170px;
    padding: 22px;
    border: 2px dashed rgba(128, 214, 196, 0.7);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: #d9e9ff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.drop-zone p {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.drop-zone span {
    font-size: 0.9rem;
    opacity: 0.9;
}

.drop-zone input[type="file"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.secondary-action {
    margin-top: 8px;
    border-radius: 999px;
    background: rgba(128, 214, 196, 0.16);
    color: #f8fbff;
    border: 1px solid rgba(128, 214, 196, 0.35);
}

.secondary-action:hover {
    background: rgba(128, 214, 196, 0.25);
}

.upload-progress {
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(128, 214, 196, 0.2);
}

.upload-progress-label {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #e9f2ff;
}

.upload-progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    overflow: hidden;
}

.upload-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #58d3c1, #3b82f6);
    transition: width 0.25s ease;
}

.drop-zone.is-dragover {
    border-color: #80d6c4;
    background: rgba(128, 214, 196, 0.14);
    transform: translateY(-2px);
}

.file-list {
    width: 100%;
    margin: 12px 0 0;
    padding: 0;
    color: #c6d7f0;
    font-size: 0.9rem;
    list-style: none;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid rgba(128, 214, 196, 0.35);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    margin-bottom: 8px;
}

.file-item-name {
    overflow-wrap: anywhere;
    text-align: left;
}

.file-remove-button {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    background-color: #ef4444;
    color: #fff;
    border: none;
}

.file-remove-button:hover {
    background-color: #dc2626;
}

input, textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #f8fbff;
}

@media (max-width: 600px) {
    .status-card {
        padding: 24px 18px;
    }

    .download-link {
        align-items: flex-start;
        flex-direction: column;
    }

    .download-link-action {
        align-self: flex-start;
    }

    .share-url-row {
        flex-direction: column;
    }

    .share-url-row button {
        width: 100%;
    }
}


footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    margin-top: auto;
    padding: 18px 20px;
    color: #a8b8d3;
}

.hidden {
    display: none;
}

#cancelAskFileButton {
    align-self: flex-start;
    margin-bottom: 10px;
    background-color: transparent;
    color: #e9eef7;
    border: 1px solid #e9eef7;
    border-radius: 999px;
}

#cancelAskFileButton:hover {
    background-color: #e9eef7;
    color: #3416cf;
}

a{
    color: #80d6c4;
    text-decoration: none;
}

a:hover{
    text-decoration: underline;
}