/* /tools/fabric-pattern-repeat-calculator/style.css */

/* --- Custom Tool Assets --- */

/* --- Forms & Inputs --- */
.ac-unit-toggle {
    margin-bottom: 1em;
}

.ac-unit-btn {
    padding: 8px 15px;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    cursor: pointer;
    color: var(--color-text-secondary);
}

.ac-unit-btn.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.ac-unit-btn:first-child {
    border-radius: 4px 0 0 4px;
    border-right: none;
}

.ac-unit-btn:last-child {
    border-radius: 0 4px 4px 0;
}


/* --- Results --- */
.ac-results-box {
    margin-top: 2em;
    padding-top: 2em;
    border-top: 1px solid var(--color-border);
}


/* --- Visualizer --- */
.ac-visualizer-box {
    background: #fdfdfd;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.ac-vis-diagram {
    position: relative;
    width: 100%;
    height: 150px;
    /* Fixed height for diagram */
    background: #fff;
    border: 1px solid #eee;
}

/* Visualization elements */
.ac-vis-repeat-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(0, 0, 0, 0.1);
    border-left: 1px dashed #ccc;
}

.ac-vis-piece-bar {
    position: absolute;
    top: 40%;
    height: 20%;
    background: var(--color-primary);
    border-radius: 4px;
    opacity: 0.8;
}

.ac-vis-waste-zone {
    position: absolute;
    top: 40%;
    height: 20%;
    background: repeating-linear-gradient(45deg,
            #fee,
            #fee 10px,
            #fff5f5 10px,
            #fff5f5 20px);
    border: 1px solid #ffdcdc;
    border-radius: 0 4px 4px 0;
}