/* ui/controls.css */
/* Styles for buttons, inputs, headers, and the loading overlay */

:root {
    /* Define variables if necessary, but generally rely on main style.css for core variables */
    --bg-card: #ffffff;
    --text-primary: #0b1220;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --accent: #06b6d4;
    --accent-hover: #0891b2;
    --secondary-bg: #f1f5f9;
    --secondary-hover: #e2e8f0;
}

header h1 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: var(--text-primary);
}

header p {
    margin: 0;
    font-size: 14px;
}

.muted {
    color: var(--text-muted);
    font-size: 13px;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 10px; 
}

#data-input {
    width: 100%;
    min-height: 200px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    resize: vertical;
    transition: all 0.2s ease;
}

#data-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.control-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

input[type="text"],
select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
}

input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

button:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

button:active:not(:disabled) {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

button.secondary {
    background: var(--secondary-bg);
    color: var(--text-primary);
}

button.secondary:hover:not(:disabled) {
    background: var(--secondary-hover);
}

/* Loading Overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

#progress-container {
    width: 90%;
    max-width: 400px;
    padding: 30px;
    background: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    text-align: center;
}

#progress-container p {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 15px;
}

#progress-bar-outer {
    width: 100%;
    background-color: #e2e8f0;
    border-radius: 12px;
    margin: 16px 0;
    overflow: hidden;
    height: 8px;
}

#progress-bar-inner {
    height: 8px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent) 0%, #10b981 100%);
    border-radius: 12px;
    transition: width 0.3s ease;
}

#progress-text {
    font-weight: 600;
    color: var(--accent);
    font-size: 16px;
}

/* Responsive (General controls) */
@media (max-width: 800px) {
    .control-row {
        flex-direction: column;
        align-items: stretch;
    }
}