/*
 * Stylesheet for the Securities Cost Calculator plugin
 *
 * A sleek, modern look is achieved with subtle shadows, generous spacing,
 * and clear typography.  The all‑in cost is highlighted with a larger font
 * size and accent colour so that it stands out to the user.  Feel free to
 * customise the colour palette by modifying the CSS variables defined at
 * the top of this file.
 */

:root {
    --scc-bg: #ffffff;
    --scc-border: #e5e7eb;
    --scc-accent: #0d6efd;
    --scc-text: #333333;
    --scc-muted: #6c757d;
    --scc-radius: 8px;
    --scc-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.scc-form {
    background-color: var(--scc-bg);
    border: 1px solid var(--scc-border);
    border-radius: var(--scc-radius);
    padding: 24px;
    max-width: 600px;
    margin: 30px auto;
    box-shadow: var(--scc-shadow);
    font-family: sans-serif;
}

.scc-row {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.scc-row label {
    font-weight: 600;
    color: var(--scc-text);
    margin-bottom: 4px;
}

.scc-row input[type="date"],
.scc-row input[type="number"] {
    padding: 10px 12px;
    border: 1px solid var(--scc-border);
    border-radius: 4px;
    font-size: 14px;
    color: var(--scc-text);
    background: #f9fafb;
}

.scc-submit-button {
    padding: 12px 20px;
    background-color: var(--scc-accent);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.scc-submit-button:hover {
    /* A slightly darker shade for hover state */
    background-color: #0b5ed7;
}

.scc-results {
    margin: 40px auto;
    max-width: 700px;
    font-family: sans-serif;
}

.scc-allin-container {
    margin-bottom: 20px;
    padding: 20px;
    background: #f1f8ff;
    border: 1px solid #cfe2ff;
    border-radius: var(--scc-radius);
    text-align: center;
}

.scc-allin-label {
    display: block;
    font-size: 16px;
    color: var(--scc-muted);
    margin-bottom: 4px;
}

.scc-allin-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--scc-accent);
}

.scc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    box-shadow: var(--scc-shadow);
}

.scc-table th,
.scc-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--scc-border);
    text-align: right;
}

.scc-table th:first-child,
.scc-table td:first-child {
    text-align: left;
}

.scc-table thead {
    background: #f0f4f8;
    border-bottom: 2px solid var(--scc-border);
}

.scc-error {
    max-width: 600px;
    margin: 20px auto;
    padding: 12px 16px;
    border: 1px solid #f8d7da;
    background: #fef2f4;
    color: #842029;
    border-radius: var(--scc-radius);
    font-family: sans-serif;
}