/**
 * @package     Joomla.Module
 * @subpackage  mod_state_sentencing
 *
 * @copyright   Copyright (C) 2026. All rights reserved.
 * @license     GNU General Public License version 3 or later
 */

.state-sentencing-container {
    max-width: 960px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #222;
}

.state-sentencing-calculator {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.ss-header {
    padding: 20px 24px 12px;
    border-bottom: 1px solid #eee;
}

.ss-title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: #222;
}

.ss-subtitle {
    margin: 4px 0 0;
    color: #666;
    font-size: 14px;
}

.ss-body {
    padding: 20px 24px 24px;
}

.ss-question {
    margin-bottom: 14px;
}

.ss-question label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.ss-form-control {
    width: 100%;
    max-width: 420px;
    padding: 9px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}

.ss-form-control:focus {
    outline: none;
    border-color: #007FC8;
    box-shadow: 0 0 0 3px rgba(0, 127, 200, 0.15);
}

.ss-status {
    font-size: 13px;
    color: #b3182c;
    margin-bottom: 10px;
    min-height: 1.2em;
}

.ss-result {
    margin: 16px 0;
    padding: 16px 20px;
    background: #f7f9fb;
    border-radius: 8px;
    border-left: 4px solid #007FC8;
}

.ss-result-placeholder {
    color: #888;
    font-size: 14px;
}

.ss-result-main {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.ss-result-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
}

.ss-result-value {
    font-size: 26px;
    font-weight: 700;
    color: #007FC8;
}

.ss-result-meta {
    margin-top: 4px;
    font-size: 13px;
    color: #666;
}

.ss-grid-wrapper {
    margin-top: 20px;
    overflow-x: auto;
}

.ss-grid-wrapper h4 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 15px;
}

.ss-grid-wrapper table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    background: #ffffff;
}

.ss-grid-wrapper th,
.ss-grid-wrapper td {
    padding: 6px 8px;
    border: 1px solid #e0e0e0;
    text-align: center;
    white-space: nowrap;
}

.ss-grid-wrapper th {
    background: #007FC8;
    color: #ffffff;
    font-weight: 600;
}

.ss-highlight-row {
    background: #fff3cd;
}

.ss-highlight-cell {
    background: #ffc107;
    font-weight: 700;
}

.ss-life-row {
    background: #f8d7da;
    color: #721c24;
    font-weight: 600;
}

.ss-disclaimer {
    margin-top: 20px;
    padding: 12px 16px;
    background: #f5f5f5;
    border-left: 3px solid #999;
    border-radius: 4px;
    font-size: 12px;
    color: #555;
}

.ss-section-heading {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #222 !important;
}

.ss-plain-help {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #666;
    font-weight: 400;
}

.ss-score-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.ss-toggle-btn {
    flex: 1;
    min-width: 220px;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    border: 2px solid #d0d0d0;
    border-radius: 8px;
    background: #fff;
    color: #444;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ss-toggle-btn:hover {
    border-color: #007FC8;
}

.ss-toggle-btn.ss-toggle-active {
    border-color: #007FC8;
    background: #007FC8;
    color: #fff;
}

.ss-calc-heading {
    font-size: 16px;
    font-weight: 700;
    color: #007FC8;
    margin-bottom: 8px;
}

.ss-calc {
    margin: 14px 0;
    padding: 14px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #eee;
}

.ss-hint {
    background: #eef4fa;
    border-left: 3px solid #007FC8;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 13px;
    color: #333;
    margin: 0 0 14px 0;
}

.ss-prior-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
    font-size: 12px;
}

.ss-prior-table th {
    text-align: left;
    padding: 6px;
    border-bottom: 2px solid #ddd;
    font-size: 11px;
    color: #666;
}

.ss-prior-table td {
    padding: 4px;
    vertical-align: middle;
}

.ss-prior-table input,
.ss-prior-table select {
    width: 100%;
    padding: 5px 6px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 12px;
}

.ss-prior-manual {
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 11px;
}

.ss-prior-manual input,
.ss-prior-manual select {
    width: auto;
    padding: 4px 6px;
}

.ss-remove-row {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #999;
}

.ss-remove-row:hover {
    color: #c00;
}

.ss-btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.ss-btn-secondary {
    background: #6c757d;
    color: #fff;
}

.ss-score-result {
    margin-top: 12px;
    padding: 10px 14px;
    background: #eef7ee;
    border-left: 3px solid #3E9B52;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.ks-cat-guide-list {
    margin: 0 0 14px 0;
    padding-left: 18px;
    font-size: 13px;
    color: #444;
}

.ks-cat-guide-list li {
    margin-bottom: 4px;
}

.ks-border-box {
    background: repeating-linear-gradient(
        45deg,
        #eee,
        #eee 4px,
        #ddd 4px,
        #ddd 8px
    );
}

@media (max-width: 768px) {
    .ss-body { padding: 16px; }
    .ss-form-control { max-width: 100%; }
}
