/* Pivot Point Calculator styles */
.ppc-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 1rem;
    background: #f8fafc; /* light background */
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

@media (max-width: 900px) {
    .ppc-wrapper {
        grid-template-columns: 1fr;
    }
}

.ppc-inputs {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
}

.ppc-inputs h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.ppc-field {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}
.ppc-field label {
    min-width: 80px;
    font-weight: 600;
}
.ppc-field input[type="text"], .ppc-field input[type="number"], .ppc-field select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}

.ppc-format-group, .ppc-actions {
    margin-top: 12px;
}

.ppc-format-group label {
    margin-right: 12px;
}

.ppc-results {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.ppc-results table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.ppc-results thead th {
    color: #ecfeff;
    font-weight: 700;
    padding: 10px 12px;
    text-align: left;
}

.ppc-results tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
}

.ppc-results tbody tr:nth-child(odd) {
    background: #f9fafb;
}

.ppc-level.resistance .ppc-label { color: #374151; }
.ppc-level.resistance .ppc-value  { color: #dc2626; font-weight: 700; }
.ppc-level.support .ppc-label { color: #374151; }
.ppc-level.support .ppc-value  { color: #16a34a; font-weight: 700; }
.ppc-level.pivot .ppc-value    { color: #111827; font-weight: 700; }
.ppc-level.mid .ppc-value      { color: #111827; opacity: 0.9; }

.ppc-actions {
    display: flex;
    gap: 8px;
}

.ppc-actions button {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #f3f4f6;
    cursor: pointer;
}

.ppc-errors {
    display: none;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* Print */
@media print {
    .ppc-inputs, .ppc-actions { display: none !important; }
    .ppc-wrapper {
        border: none; box-shadow: none; background: #fff;
    }
}
