body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(120deg, #f4f4f4 0%, #e9e9ff 100%);
    min-height: 100vh;
    color: #222;
    padding-bottom: 80px;
}

header {
    background: #232946;
    color: #fff;
    box-shadow: 0 2px 8px rgba(35,41,70,0.08);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
}
.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}
.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: #a7a7ff;
}


main {
    width: 95vw;
    max-width: 1200px;
    min-width: 320px;
    margin: 2.5rem auto 0 auto;
    padding: 1.5rem;
    box-sizing: border-box;
    overflow-x: visible;
}

.upload-section, .download-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(35,41,70,0.08);
    padding: 2rem 2.5rem 2.5rem 2.5rem;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    overflow-x: auto;
}

.tos-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(35,41,70,0.08);
    padding: 2rem 2.5rem 2.5rem 2.5rem;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    overflow-x: auto;
}

.upload-section h1, .download-section h1, .tos-section h1 {
    margin-top: 0;
    color: #232946;
}

.subtitle {
    color: #555;
    margin-bottom: 1.5rem;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

input[type="file"] {
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #f9f9f9;
    width: 100%;
    max-width: 320px;
}

button {
    background: #232946;
    color: #fff;
    border: none;
    padding: 0.7rem 2.2rem;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}
button:hover {
    background: #393e7c;
}

#responseMessage {
    margin-top: 1.2rem;
    font-size: 1.1rem;
    color: #393e7c;
    word-break: break-all;
}

.download-link {
    display: inline-block;
    margin: 1.2rem 0 0.5rem 0;
    padding: 0.7rem 2rem;
    background: #393e7c;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}
.download-link:hover {
    background: #232946;
}

footer {
    text-align: center;
    padding: 1.2rem 0 0.7rem 0;
    background: #232946;
    color: #fff;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    font-size: 0.95rem;
}

/* Additional styles moved from HTML files */

/* Drop area styles */
#drop-area {
    border: 2px dashed #232946;
    border-radius: 8px;
    padding: 1.5em;
    margin-bottom: 1em;
    background: #f7f7fa;
    cursor: pointer;
    transition: border-color 0.2s;
}

#drop-area input[type="file"] {
    display: none;
}

#drop-area label {
    color: #232946;
    text-decoration: underline;
    cursor: pointer;
}

/* Upload info styles */
.upload-info {
    margin: 1.5em 0 0 0;
    color: #a00;
    font-size: 1.08em;
}

/* Curl tip section styles */
.curl-tip {
    margin-top: 2rem;
    font-size: 1.05em;
    color: #444;
    background: #f7f7fa;
    padding: 1.5em 2em;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(35,41,70,0.06);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.curl-tip-header {
    font-weight: 600;
    margin-bottom: 0.7em;
}

.curl-tip-header .tip-label {
    color: #232946;
}

.curl-tip-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5em 1em;
    align-items: center;
}

.curl-tip-os-label {
    grid-column: 1/3;
    font-weight: 500;
    margin-top: 0.5em;
    margin-bottom: 0.2em;
    color: #232946;
}

.curl-tip-os-label.windows {
    margin-top: 1em;
}

.curl-tip-subtitle {
    color: #232946;
    font-size: 0.97em;
    margin: 0.2em 0 0.1em 0;
    grid-column: 1/3;
    text-align: left;
    font-style: italic;
}

.cmd-block {
    background: #232946;
    color: #fff;
    padding: 0.5em 1em;
    border-radius: 6px;
    font-size: 1em;
    font-family: 'Fira Mono', 'Consolas', 'Menlo', monospace;
    margin-bottom: 0.2em;
    word-break: break-all;
    display: block;
}

.copy-btn {
    background: #232946;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.4em 1.2em;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: #393e7c;
}

/* Footer link styles */
footer a {
    color: #a7a7ff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 1.2em;
    transition: color 0.2s;
}

#ui-version {
    font-size: 0.95em;
    color: #bbb;
    margin-top: 0.3em;
}

/* Terms of service specific styles */
.tos-section ul {
    text-align: left;
}

/* Mobile responsive styles */
@media (max-width: 600px) {
    .curl-tip-grid {
        display: block !important;
    }
    .cmd-block, .copy-btn {
        display: block;
        width: 100%;
        margin: 0 0 0.5em 0;
        box-sizing: border-box;
    }
    .copy-btn {
        margin-bottom: 1em;
    }
}