/**
 * Precision Tools Styling
 */
:root {
    --ps-primary: #0f172a;
    --ps-accent: #3b82f6;
    --ps-bg: #f8fafc;
    --ps-card: #ffffff;
}

[data-theme="dark"] {
    --ps-bg: #020617;
    --ps-card: #0f172a;
    --ps-primary: #f8fafc;
}

.precision-suite {
    background: var(--ps-bg);
    border-radius: 32px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.ps-header {
    text-align: center;
    margin-bottom: 40px;
}

.ps-title {
    font-weight: 900;
    color: var(--ps-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 2rem;
}

.ps-subtitle {
    color: var(--gray-500);
    font-weight: 600;
    margin-top: 5px;
}

.ps-card {
    background: var(--ps-card);
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    max-width: 900px;
    margin: 0 auto;
}

.ps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .ps-grid {
        grid-template-columns: 1fr;
    }
}

.ps-field {
    margin-bottom: 20px;
}

.ps-field label {
    display: block;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.ps-field input {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 2px solid var(--gray-100);
    font-weight: 700;
    background: transparent;
    color: var(--ps-primary);
}

.ps-options {
    background: var(--gray-50);
    padding: 15px;
    border-radius: 16px;
    margin-bottom: 20px;
}

[data-theme="dark"] .ps-options {
    background: rgba(255, 255, 255, 0.02);
}

.ps-small-title {
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--gray-400);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.ps-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 5px;
}

.ps-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--ps-accent);
}

/* Circle Display */
.ps-result-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    border-radius: 24px;
    padding: 30px;
}

[data-theme="dark"] .ps-result-display {
    background: rgba(0, 0, 0, 0.2);
}

.ps-res-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--ps-accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

.ps-res-circle .v {
    font-size: 3rem;
    font-weight: 900;
    color: var(--ps-accent);
}

.ps-res-circle .l {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--gray-500);
}

.ps-res-stats {
    width: 100%;
    border-top: 1px solid var(--gray-200);
    padding-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ps-res-stats .stat {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-600);
}

/* Time Calc */
.ps-time-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 40px;
}

@media (max-width: 600px) {
    .ps-time-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.ps-hms-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.ps-hms-inputs input {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    border: 2px solid var(--gray-200);
    text-align: center;
    font-size: 1.5rem;
    font-weight: 900;
    background: var(--gray-50);
}

[data-theme="dark"] .ps-hms-inputs input {
    background: rgba(0, 0, 0, 0.3);
    border-color: #334155;
    color: #fff;
}

.ps-op-select {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 600px) {
    .ps-op-select {
        flex-direction: row;
        justify-content: center;
    }
}

.op-btn {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    border: none;
    background: var(--gray-200);
    cursor: pointer;
    transition: 0.3s;
    color: var(--gray-500);
}

.op-btn.active {
    background: var(--ps-accent);
    color: #fff;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.4);
}

.ps-time-result {
    text-align: center;
    padding: 40px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--ps-primary) 0%, #334155 100%);
    color: #fff;
}

.ps-time-result .label {
    font-size: 0.8rem;
    font-weight: 800;
    opacity: 0.7;
    letter-spacing: 1px;
}

.ps-time-result h2 {
    font-size: 4rem;
    font-weight: 900;
    margin: 10px 0;
    font-family: monospace;
}

.ps-time-details {
    font-weight: 700;
    opacity: 0.9;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Dist Calc */
.ps-dist-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 600px) {
    .ps-dist-wrap {
        flex-direction: column;
    }
}

.ps-dist-input {
    flex: 1;
}

.ps-dist-input input {
    width: 100%;
    padding: 18px;
    border-radius: 16px;
    border: 2px solid var(--gray-200);
    margin-bottom: 10px;
    font-weight: 900;
    font-size: 1.5rem;
}

.ps-dist-input select {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    background: var(--gray-50);
    border: none;
    font-weight: 700;
}

[data-theme="dark"] .ps-dist-input input {
    background: rgba(0, 0, 0, 0.3);
    border-color: #334155;
    color: #fff;
}

[data-theme="dark"] .ps-dist-input select {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.ps-travel-context {
    background: var(--gray-50);
    padding: 25px;
    border-radius: 20px;
}

[data-theme="dark"] .ps-travel-context {
    background: rgba(255, 255, 255, 0.02);
}

.ps-info-box {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-200);
}

.ps-info-box i {
    color: var(--ps-accent);
}

.ps-info-box p {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gray-500);
    margin: 0;
}

.ps-compare-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    text-align: center;
}

.ps-compare-grid .item span {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--gray-400);
    margin-bottom: 5px;
}

.ps-compare-grid .item b {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--ps-primary);
}

.ps-btn {
    width: 100%;
    border: none;
    padding: 18px;
    border-radius: 16px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.3s;
}

.ps-btn.primary {
    background: var(--ps-accent);
    color: #fff;
}

.ps-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}