* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.5;
    color: #343434;
    background: linear-gradient(135deg, #25215D 0%, #005CA9 100%);
    min-height: 100vh;
    padding: 20px 20px 40px 20px;
}

.header {
    text-align: center;
    color: white;
    margin-bottom: 25px;
}

h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.subtitle {
    font-size: 0.95rem;
    opacity: 0.95;
    font-weight: 400;
    margin-bottom: 15px;
    color: white;
}

.info-btn {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 8px 20px;
    border-radius: 3px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.info-btn:hover {
    background: white;
    color: #25215D;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    margin: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-content h2 {
    text-align: center;
    color: #25215D;
    font-size: 1.8rem;
    margin-bottom: 30px;
    padding-right: 40px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.feature {
    text-align: center;
    padding: 15px;
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.feature h3 {
    color: #25215D;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 500;
}

.feature p {
    color: #343434;
    font-size: 0.9rem;
    line-height: 1.5;
}

.works-with {
    background: #F0F8F8;
    border-radius: 3px;
    padding: 20px;
    margin-top: 25px;
}

.works-with h3 {
    color: #007A78;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 500;
}

.works-with ul {
    list-style: none;
    padding-left: 0;
}

.works-with li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #343434;
    font-size: 0.9rem;
}

.works-with li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #007A78;
    font-weight: bold;
}

.upload-section {
    background: white;
    border-radius: 3px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.upload-section h2 {
    color: #25215D;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #25215D;
    font-size: 1rem;
}

.label-icon {
    margin-right: 8px;
}

.drop-zone {
    border: 2px dashed #EFEEED;
    border-radius: 3px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #FAFAFA;
}

.drop-zone:hover {
    border-color: #007A78;
    background: #F5F5F5;
}

.drop-zone.highlight {
    border-color: #007A78;
    background: #F0F8F8;
}

.drop-message {
    display: block;
    color: #343434;
    font-size: 0.95rem;
}

.upload-icon {
    display: block;
    font-size: 36px;
    margin-bottom: 10px;
}

.drop-zone input[type="file"] {
    display: none;
}

.file-name {
    display: block;
    margin-top: 12px;
    font-size: 0.9rem;
    color: #007A78;
    font-weight: 500;
}

.btn-primary {
    width: 100%;
    padding: 14px 30px;
    background: #25215D;
    color: white;
    border: none;
    border-radius: 3px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
}

.btn-primary:hover {
    background: #007A78;
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-icon {
    margin-right: 8px;
}

.spinner {
    border: 4px solid #EFEEED;
    border-top: 4px solid #007A78;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 30px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.result {
    margin-top: 25px;
    padding: 30px;
    background: #F0F8F8;
    border-radius: 3px;
    text-align: center;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.result p {
    font-size: 1rem;
    color: #25215D;
    margin-bottom: 20px;
}

.btn-download {
    display: inline-block;
    padding: 12px 30px;
    background: #007A78;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: #005CA9;
}

.error-container {
    background: #fee2e2;
    color: #991b1b;
    padding: 15px;
    margin-top: 15px;
    border-radius: 3px;
    border-left: 4px solid #dc2626;
}

.error-message {
    margin: 0;
    font-weight: 400;
    font-size: 0.95rem;
}

.disclaimer {
    background: rgba(255, 255, 255, 0.98);
    padding: 25px;
    border-radius: 3px;
    font-size: 0.9rem;
    color: #343434;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.disclaimer h3 {
    color: #25215D;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.disclaimer p {
    margin: 0 0 12px 0;
    line-height: 1.6;
}

.disclaimer ul {
    list-style: none;
    padding-left: 0;
    margin: 12px 0;
}

.disclaimer li {
    padding: 6px 0;
    padding-left: 25px;
    position: relative;
    line-height: 1.5;
}

.disclaimer li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #007A78;
    font-weight: bold;
}

.legal-disclaimer {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #666;
    border-top: 1px solid #EFEEED;
    padding-top: 12px;
}

.contact {
    margin-top: 12px;
    font-size: 0.9rem;
}

.contact a {
    color: #007A78;
    text-decoration: none;
    font-weight: 500;
}

.contact a:hover {
    color: #005CA9;
    text-decoration: underline;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .info-section, .upload-section, .works-with {
        padding: 25px;
    }
}