body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #f8f9fa;
    color: #333;
}

header {
    background: #0d6efd;
    color: white;
    padding: 2rem;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.1rem;
    margin: 0;
}

main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    border-radius: 12px;
}

.mode-switch {
    text-align: center;
    margin-bottom: 2rem;
}

.mode-switch button {
    padding: 0.75rem 1.5rem;
    margin: 0 0.5rem;
    border: none;
    background-color: #ddd;
    cursor: pointer;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.mode-switch button.active {
    background-color: #0d6efd;
    color: white;
}

.input-box {
    border: 2px dashed #0d6efd;
    border-radius: 10px;
    padding: 2rem;
    background: #e9f1ff;
    text-align: center;
    margin-bottom: 2rem;
}

.upload-section, .paste-section {
    display: none;
}

.upload-section.active, .paste-section.active {
    display: block;
}

input[type="file"] {
    display: none;
}

.upload-label {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #0d6efd;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 1rem;
}

.paste-textarea-div {
    position: relative;
    margin-top: 1.5rem;
}

textarea {
    width: 100%;
    height: 200px;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-family: monospace;
    font-size: 1rem;
    resize: vertical;
}

.paste-textarea-div #clearTextBtn {
    position: absolute;
    width: 40px;
    height: 40px;
    font-size: 24px;
    right: 10px;
    top: 10px;
    cursor: pointer;
    border: 0;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border-radius: 50px;
    opacity: 50%;
    transition: .5s;
}
.paste-textarea-div #clearTextBtn:hover {
    background-color: rgb(219, 8, 8);
    opacity: 1;
}

.benefits {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.benefits li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.benefits li::before {
    content: "?";
    margin-right: 0.75rem;
}

.cta {
    display: flex;
    justify-content: center;
}

.cta button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cta button:hover {
    background-color: #218838;
}

/***** BEGIN: File Item List *****/
.file-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 5px;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.file-item .file-name {
    flex-grow: 1;
    margin: 0 1rem;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
}
/***** END: File Item List *****/

.file-status-wrapper {
    text-align: center;
}

.file-status-wrapper i.fa-spin {
    color: #007bff;
}

footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    color: #777;
}