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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    min-height: 100vh;
    padding: 20px;
}

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

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Arial', sans-serif;
}

/* Banner Image Styling */
.container > img {
    display: block;
    width: 100%;          /* Full width, responsive */
    max-width: 800px;     /* Optional max width */
    height: auto;         /* Maintain aspect ratio */
    margin: 0 auto 30px auto;  /* Center horizontally and add bottom spacing */
    border-radius: 12px;  /* Slightly rounded corners */
    box-shadow: 0 6px 18px rgba(0,0,0,0.15); /* Soft shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Optional hover effect */
.container > img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Main Content Cards */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card {
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 50px;
    color: #666;
    font-size: 0.9rem;
}


.header h1 {
    font-size: 2.5em;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-weight: 700;
}

.header p {
    color: #666;
    font-size: 1.1em;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 968px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

.card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card h2 {
    color: #1a1a1a;
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: 600;
}

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

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 0.95em;
}

input[type="text"],
select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: #fafafa;
}

input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: #1a1a1a;
    background: white;
}

.file-upload {
    position: relative;
    border: 3px dashed #d0d0d0;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.file-upload:hover {
    border-color: #1a1a1a;
    background: white;
}

.file-upload.dragover {
    border-color: #1a1a1a;
    background: #f0f0f0;
}

.file-upload input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-icon {
    font-size: 3em;
    margin-bottom: 10px;
    color: #666;
}

.file-upload p {
    color: #666;
    margin-bottom: 8px;
}

.file-name {
    margin-top: 15px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 6px;
    color: #333;
    font-weight: 500;
    display: none;
}

.btn {
    width: 100%;
    padding: 14px 28px;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.loading {
    display: none;
    text-align: center;
    padding: 20px;
    color: #666;
}

.loading.active {
    display: block;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1a1a1a;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

.result-container {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    max-height: 600px;
    overflow-y: auto;
}

.result-container pre {
    color: #e0e0e0;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.error {
    background: #fee;
    color: #c33;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border-left: 4px solid #c33;
    display: none;
}

.error.active {
    display: block;
}

.success-badge {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 15px;
    font-weight: 500;
}

.info-text {
    font-size: 0.85em;
    color: #888;
    margin-top: 5px;
}

.copy-btn {
    background: #666;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: #555;
}

.footer {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 0.9em;
}

.footer a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}