/* Minimal Classless CSS Framework - Optimized */

:root {
    --primary: #404040;
    --primary-light: #666666;
    --text: #2D2D2D;
    --text-secondary: #757575;
    --bg: #FFFFFF;
    --bg-light: #FAFAFA;
    --border: #D0D0D0;
    --border-light: #E8E8E8;
    --max-width: 800px;
}

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

html {
    font-size: 16px;
}

body {
    font-family: Inter, Roboto, 'Helvetica Neue', 'Arial Nova', 'Nimbus Sans', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
}

.selector-container {
    background-color: #FFFFFF;
    border: 1px solid var(--border-light);
    color: #333333;
}

.selector-container h2 {
    color: #333333;
}

.selector-container label {
    color: #333333;
}

.selector-container select {
    background-color: #FFFFFF;
    color: #333333;
    border: 2px solid #D0D0D0;
}

.selector-container select:focus {
    border-color: #404040;
    outline: none;
}

.status {
    background-color: #E8F4F8;
    border-left-color: #0066CC;
    color: #333333;
}

.demo-content {
    background-color: #FFFFFF;
    border: 1px solid var(--border-light);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin: 1.5rem 0 0.75rem;
    color: var(--primary);
}

h1 {
    font-size: 2rem;
    margin-top: 0;
    font-weight: 700;
}

h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.25rem;
}

h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--primary);
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--text);
    text-decoration: underline;
}

strong, b {
    font-weight: 600;
    color: var(--text);
}

em, i {
    font-style: italic;
}

small {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Lists */
ul, ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

li {
    margin: 0.5rem 0;
    color: var(--text-secondary);
}

/* Forms */
select, button {
    font-family: inherit;
    font-size: 1rem;
}

select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border);
    background-color: var(--bg);
    color: var(--text);
    margin: 0.5rem 0;
    transition: border-color 0.2s ease;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: var(--primary);
}

select:hover {
    border-color: var(--primary-light);
}

button {
    padding: 0.5rem 1rem;
    background-color: var(--primary);
    color: white;
    border: 2px solid var(--primary);
    cursor: pointer;
    margin: 0.5rem 0.5rem 0.5rem 0;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 0;
}

button:hover {
    background-color: var(--text);
    transform: translateY(-1px);
}

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

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

label {
    display: inline-block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    color: var(--text);
    font-size: 0.95rem;
}

/* Utilities */
[hidden] {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 1rem 0.5rem;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.35rem; }
    h3 { font-size: 1.1rem; }
}
