:root {
    --bg-color: #0f1115;
    --card-bg: #181b21;
    --accent: #6c5ce7;
    --accent-hover: #5b4cc4;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --border: #2d3748;
    --success: #10b981;
    --error: #ef4444;
    --log-bg: #000000;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.container {
    width: 100%;
    max-width: 600px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #6c5ce7, #a29bfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

p {
    color: var(--text-secondary);
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

h2,
h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

/* File Upload */
.file-drop-area {
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
}

.file-drop-area:hover {
    border-color: var(--accent);
    background: rgba(108, 92, 231, 0.05);
}

.file-msg {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

input[type=file] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-list {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Radios */
.output-options {
    display: flex;
    gap: 20px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.radio-label input {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    transition: all 0.2s;
}

.radio-label input:checked+.radio-custom {
    border-color: var(--accent);
}

.radio-label input:checked+.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #2d3748;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

.btn-secondary:hover {
    background: #4a5568;
}

.btn-xs {
    padding: 4px 8px;
    font-size: 0.75rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: 4px;
    cursor: pointer;
}

.btn-xs:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

/* Logs */
.log-card {
    padding: 0;
    border: 1px solid #333;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.log-header {
    background: #1a1a1a;
    padding: 10px 15px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.log-content {
    background: var(--log-bg);
    color: #00ff00;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
    padding: 15px;
    height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.log-line {
    margin-bottom: 4px;
}

.log-time {
    color: #666;
    margin-right: 8px;
}

/* Results */
.hidden {
    display: none;
}

.success-msg {
    color: var(--success);
    margin-bottom: 8px;
}

textarea {
    width: 100%;
    background: #111;
    border: 1px solid var(--border);
    color: #aaa;
    border-radius: 6px;
    padding: 10px;
    font-family: monospace;
    font-size: 0.8rem;
    resize: none;
}

.error-card {
    border-color: var(--error);
    background: rgba(239, 68, 68, 0.1);
}

.loader {
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    margin-left: 10px;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}