:root {
    --primary: #F4EFEA;
    --primary-hover: #5F7A6B;
    --bg: #F4EFEA;
    --dashed-border: #D8D2CC;
    --border: #E5E5E5;
    --danger: #ff4757;
    --danger-hover: #FF7A6B;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2B2B2B;
    background-color: var(--bg);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.upload-container {
    background: #FAF7F3;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 500px;
    text-align: center;
    border-color: #D8D2CC;
}

h2 {
    margin-top: 0;
    color: #2B2B2B;
    font-size: 24px;
}

p.subtitle {
    color: #8C8C8C;
    margin-bottom: 20px;
    font-size: 12px;
}

.drop-zone {
    border: 2px dashed var(--dashed-border);
    border-radius: 8px;
    padding: 40px 20px;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    margin-bottom: 20px;
    background-color: #FAF7F3;
}

.drop-zone--over {
    border-color: var(--primary);
    background-color: #DAD7D3;
}

.drop-zone__prompt {
    color: #2B2B2B;
    font-size: 16px;
}

/* File List Styles */
.file-list {
    text-align: left;
    margin-top: 15px;
    margin-bottom: 15px;
    max-height: 220px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #FAF7F3;
    padding: 10px 14px;
    margin-bottom: 8px;
    border-radius: 6px;
    font-size: 12px;
    color: #2B2B2B;
    border: 1px solid #E5E5E5;
}

.file-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 15px;
}

.remove-btn {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s;
    flex-shrink: 0;
}

.remove-btn:hover {
    color: var(--danger-hover);
}

.remove-btn:disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* Progress Bar Styles */
.progress-wrapper {
    display: none;
    margin: 20px 0;
    text-align: right;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: var(--primary);
    /* No transition applied here so XHR can drive it smoothly */
}

.progress-text {
    font-size: 16px;
    color: #2B2B2B;
    font-weight: bold;
    margin: 0;
}

/* Button Styles */
.upload-btn {
    background-color: #6F8A7A;
    color: #2B2B2B;
    border: none;
    padding: 14px 30px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    width: 100%;
    font-size: 16px;
}

.upload-btn img {
    width: 2em;
    max-width: 100%;
    margin-bottom: -0.8em;
}

.upload-btn:hover:not(:disabled) {
    background-color: #5F7A6B;
}

.upload-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.upload-btn:disabled {
    background-color: #d5ffdd;
    cursor: not-allowed;
    display: none;
}

#file-input { display: none; }

.result_message {
    //background: #fcf7f1;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 500px;
    text-align: center;
    justify-content: center;
    align-items: center;
}

img {
    width: auto;
    max-width: 100%;
}

.manager_text {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: #E5E5E5;
    padding: 10px;
}

.copy-btn {
    background-color: #6F8A7A;
    color: #2B2B2B;
    border: none;
    padding: 14px 30px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    width: 100%;
    font-size: 16px;
}

.copy-btn img {
    width: 1.6em;
    max-width: 100%;
    margin-bottom: -0.5em;
}

p.subtitle {
    color: #8C8C8C;
    margin-bottom: 20px;
    font-size: 12px;
}