/* Shared styles for CSS Tools */
.tl-css-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .tl-css-grid { grid-template-columns: 1fr 1fr; }
}

.tl-css-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.tl-css-form {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.tl-css-output-area {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.tl-css-preview-container {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    background-image: linear-gradient(45deg, #f1f5f9 25%, transparent 25%), linear-gradient(-45deg, #f1f5f9 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f1f5f9 75%), linear-gradient(-45deg, transparent 75%, #f1f5f9 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.tl-css-preview-box {
    width: 200px;
    height: 200px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    transition: box-shadow 0.1s, background 0.1s;
}

.tl-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.tl-range {
    width: 100%;
    accent-color: var(--primary);
}

.tl-color-picker {
    width: 100%;
    height: 40px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.tl-code-preview {
    background: #1e293b;
    border-radius: var(--radius-sm);
    padding: 1rem;
    overflow-x: auto;
}
.tl-code-preview pre { margin: 0; }
.tl-code-preview code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.85rem;
    color: #e2e8f0;
    line-height: 1.5;
}

.button {
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
}
.button-primary {
    background: var(--primary);
    color: white;
}
.button-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
