/* ============================================================
   toolbox-pct.css
   Unique styles for the Percentage Calculator tool
   ============================================================ */

.pc-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.pc-tab-btn {
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    border: 2px solid #2d3f52;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
    color: #2d3f52;
    text-align: left;
    transition: background 0.2s, color 0.2s;
}

.pc-tab-btn.active {
    background: #2d3f52;
    color: #fff;
}

.pc-tab-btn:hover:not(.active) {
    background: #f0f0f0;
}

.pc-panel {
    display: none;
}

.pc-panel.active {
    display: block;
}

.pc-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.pc-row label {
    font-size: 0.9rem;
    color: #333;
    white-space: nowrap;
}

.pc-row input {
    flex: 1;
    min-width: 80px;
    padding: 0.6rem 0.75rem;
    font-size: 1rem;
    border: 2px solid #2d3f52;
    border-radius: 8px;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.pc-row input:focus {
    border-color: #9b3d99;
}

.pc-result {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin: 0.8rem 0;
    text-align: center;
    display: none;
}

.pc-result-main {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3f52;
}

.pc-result-sub {
    font-size: 0.85rem;
    color: #333;
    margin-top: 0.3rem;
}

/* Styles for the new add/remove percentage calculator */
.pct-add-tabs {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.2rem;
    border: 2px solid #2d3f52;
}

.pct-add-tab {
    flex: 1;
    padding: 0.6rem;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    background: #fff;
    color: #2d3f52;
    transition: background 0.2s, color 0.2s;
}

.pct-add-tab.active {
    background: #2d3f52;
    color: #fff;
}

.pct-add-tab:hover:not(.active) {
    background: #f0f0f0;
}

p.pct-input-label {
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 0.4rem;
    text-align: left;
}

.pct-input-wrap {
    position: relative;
    margin-bottom: 1rem;
}

.pct-input-wrap input {
    width: 100%;
    padding: 0.75rem;
    font-size: 1.2rem;
    border: 2px solid #2d3f52;
    border-radius: 8px;
    box-sizing: border-box;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
}

.pct-input-wrap input:focus {
    border-color: #9b3d99;
}

.pct-results {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: left;
    display: none;
}

.pct-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
    color: #333;
}

.pct-result-row:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.05rem;
    color: #2d3f52;
}

.pct-result-row span:first-child {
    color: #555;
}

.pct-result-row.total span {
    color: #2d3f52;
}

.pct-result-row.highlight {
    background: #2d3f52;
    border-radius: 6px;
    padding-left: 8px;
    padding-right: 8px;
    font-weight: 700;
    font-size: 1.05rem;
}

.pct-result-row.highlight span {
    color: #fff !important;
}