/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    background-color: #e8e0d8;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

/* ===== Page Layout ===== */
.page-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 60px);
    padding: 20px;
}

.upload-wrapper {
    max-width: 520px;
    width: 100%;
    text-align: center;
}

/* ===== Cloud Icon ===== */
.cloud-icon {
    margin-bottom: 20px;
    color: #b5a898;
}

/* ===== Drop Zone ===== */
.dropzone {
    border: 2px dashed #b5a898;
    border-radius: 12px;
    padding: 30px 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.dropzone.drag-over {
    background-color: #d9d0c7;
}

.dropzone-title {
    color: #b5763a;
    font-size: 20px;
    margin-bottom: 15px;
    margin-top: 0;
}

.file-input {
    display: none;
}

.file-label {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #aaa;
    border-radius: 4px;
    cursor: pointer;
    background: #f5f5f5;
    margin-right: 10px;
    font-size: 14px;
    transition: background 0.15s;
}

.file-label:hover {
    background: #e9e9e9;
}

.file-name {
    color: #555;
    font-size: 14px;
}

/* ===== Options ===== */
.options-container {
    margin: 20px 0;
    text-align: left;
}

.option-row {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.option-label {
    min-width: 160px;
    color: #555;
    font-size: 14px;
}

.text-input,
.select-input {
    flex: 1;
    padding: 7px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.text-input:focus,
.select-input:focus {
    outline: none;
    border-color: #1a7a7a;
    box-shadow: 0 0 0 2px rgba(26, 122, 122, 0.15);
}

/* ===== Send Button ===== */
.send-btn {
    background-color: #1a7a7a;
    color: white;
    border: none;
    padding: 12px 60px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s;
}

.send-btn:hover {
    background-color: #155f5f;
}

.send-btn:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

/* ===== Progress Bar ===== */
.progress-container {
    margin-top: 20px;
}

.progress-bar-track {
    background: #d0c8c0;
    border-radius: 10px;
    height: 14px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: #1a7a7a;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.progress-text {
    margin-top: 8px;
    color: #555;
    font-size: 14px;
}

/* ===== Download / Success Container ===== */
.download-container {
    margin-top: 20px;
    padding: 20px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
}

.success-text {
    color: #155724;
    font-weight: bold;
    margin-top: 0;
}

.link-box {
    background: white;
    padding: 10px;
    border-radius: 4px;
    word-break: break-all;
    font-size: 13px;
    margin: 10px 0;
    border: 1px solid #ccc;
    text-align: left;
}

.download-url {
    color: #1a7a7a;
}

.copy-btn {
    background: #1a7a7a;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 8px;
    font-size: 14px;
    transition: background-color 0.2s;
}

.copy-btn:hover {
    background: #155f5f;
}

.reset-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.reset-btn:hover {
    background: #5a6268;
}

/* ===== Footer ===== */
footer {
    text-align: center;
    padding: 15px;
    color: #999;
    font-size: 13px;
}

footer a {
    color: #b5763a;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ===== Download Page ===== */
.download-info-box {
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
    text-align: left;
}

.download-filename {
    font-size: 15px;
    color: #333;
    font-weight: 600;
    margin: 0 0 6px 0;
    word-break: break-all;
}

.download-filesize {
    font-size: 13px;
    color: #888;
    margin: 0;
}

.password-form {
    text-align: left;
}

.error-box {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 16px;
    color: #721c24;
    font-size: 14px;
}

.error-box p {
    margin: 0;
}
