/* Horizontal rule break for radio groups */
.radio-break {
    margin: 12px 0;
    border: none;
    border-top: 1px solid var(--border-color);
}
:root {
    --primary-color: #4caf50;
    --primary-hover: #3e8e41;
    --bg-color: #f9f9f9;
    --card-bg: #ffffff;
    --text-color: #333333;
    --border-color: #e0e0e0;
    --input-border: #cccccc;
    --label-color: #555555;
    --tab-inactive: #f0f0f0;
    --tab-active-border: #4caf50;
}

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

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 30px;
    text-align: center;
}

header h1 {
    margin-bottom: 10px;
}

main {
    padding: 20px 30px;
}


.tooltip {
    margin-top: 30px;
    margin-bottom: 30px;
}

.wizard-container {
    margin-bottom: 30px;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    background-color: var(--tab-inactive);
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background-color: #e6e6e6;
}

.tab-btn.active {
    background-color: var(--card-bg);
    border-bottom: 3px solid var(--tab-active-border);
    font-weight: 500;
}

/* Tab Content */
.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

h2 {
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 22px;
    font-weight: 500;
}

h3 {
    margin: 25px 0 10px;
    font-size: 18px;
    font-weight: 500;
}

.option-section {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.option-section:last-child {
    border-bottom: none;
}

/* Form Elements */
.option-group {
    margin-bottom: 15px;
}

.option-label {
    display: block;
    margin-bottom: 15px;
    font-weight: 500;
    color: var(--label-color);
}

label {
    color: var(--label-color);
}

input[type="text"],
input[type="number"],
input[type="url"],
input[type="date"],
input[type="time"],
select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--input-border);
    border-radius: 4px;
    font-size: 16px;
}

input[type="number"] {
    width: 100%;
}

.time-inputs {
    display: flex;
    gap: 15px;
}

.time-input {
    flex: 1;
}

.time-input label {
    display: block;
    margin-bottom: 8px;
    text-align: center;
}

.radio-group {
    margin-top: 8px;
}

.radio-group label {
    display: block;
    margin-bottom: 8px;
}

.checkbox {
    display: flex;
    align-items: center;
}

.checkbox input {
    margin-right: 10px;
    width: 15px;
    height: 15px;
}


/* Range + Readout */
input[type="range"] {
    width: 100%;
}

#fontscale-value {
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    color: var(--text-color);
    margin-left: 6px;
}

/* Color Options */
.color-option {
    display: grid;
    grid-template-columns: repeat(1, minmax(100px, 1fr)); /* label | color | slider-fill | readout */
    grid-template-areas:
        "label"
        "color"
        "slider"
        "readout";
    align-items: center;
    column-gap: 12px;
    row-gap: 6px;
    margin-bottom: 15px;
    border: 1px solid #00000022;
    border-radius: 15px;
    background-color: #00000005;
    padding: 15px;
}

.color-option label {
    text-align: center;
    font-weight: 700;
    grid-area: label;
    margin: 0;
}

.color-option input[type="color"] {
    grid-area: color;
    justify-self: start;
    width: 100%;
    height: 30px;
    border: 1px solid var(--input-border);
    border-radius: 4px;
}

/* Opacity slider sits below the color */
.color-option input[type="range"] {
    grid-area: slider;
    width: 100%;
    min-width: 0; /* prevent overflow in narrow containers */
}

.alpha-readout {
    grid-area: readout;
    text-align: center;
    color: #666;
    font-variant-numeric: tabular-nums;
}

/* Optional: widen the overall color section to give sliders room */
.color-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(100px, 1fr));
    gap: 20px;
}

/* URL Preview */
.result-section {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 6px;
    margin-top: 30px;
}

.url-preview {
    background-color: white;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin: 15px 0;
    overflow-x: auto;
}

code {
    font-family: monospace;
    white-space: nowrap;
    color: #333;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 20px;
    background-color: #e0e0e0;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #d0d0d0;
}

.btn.primary {
    background-color: var(--primary-color);
    color: white;
}

.btn.primary:hover {
    background-color: var(--primary-hover);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid var(--border-color);
    color: #666;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .tabs {
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .time-inputs {
        flex-wrap: wrap;
    }
    
    .time-input {
        flex-basis: calc(50% - 10px);
    }
    
    .color-options {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}