/* --- Main Container & Theme --- */
:root {
    --pc-primary-color: #27ae60; /* A shade of green */
    --pc-primary-hover: #229954;
    --pc-bg-color: #f8f9fa;
    --pc-card-bg: #ffffff;
    --pc-border-color: #dee2e6;
    --pc-text-color: #495057;
    --pc-text-light: #6c757d;
    --pc-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --pc-border-radius: 8px;
    --pc-box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.pc-container {
    font-family: var(--pc-font-family);
    background-color: var(--pc-bg-color);
    color: var(--pc-text-color);
    padding: 25px;
    margin: 20px auto;
    max-width: 800px;
    border-radius: var(--pc-border-radius);
    box-shadow: var(--pc-box-shadow);
    border: 1px solid var(--pc-border-color);
}

/* --- App Description --- */
.pc-description {
    font-size: 1rem;
    color: var(--pc-text-light);
    margin-bottom: 25px;
    line-height: 1.6;
    text-align: center;
    padding: 10px;
    background-color: var(--pc-card-bg);
    border-radius: var(--pc-border-radius);
    border: 1px solid var(--pc-border-color);
}

/* --- Header --- */
.pc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.pc-title {
    font-size: 1.75rem;
    color: var(--pc-text-color);
    margin: 0;
}

/* --- Unit Switcher --- */
.pc-unit-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
}
.pc-unit-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--pc-text-light);
    transition: color 0.3s ease;
}
.pc-unit-label-active {
    color: var(--pc-primary-color);
}
.pc-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}
.pc-switch input { display: none; }
.pc-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 28px;
}
.pc-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .pc-slider { background-color: var(--pc-primary-color); }
input:checked + .pc-slider:before { transform: translateX(22px); }

/* --- Form --- */
.pc-form {
    background: var(--pc-card-bg);
    border: 1px solid var(--pc-border-color);
    border-radius: var(--pc-border-radius);
    padding: 20px;
    margin-bottom: 20px;
}
.pc-input-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 15px;
}
.pc-input-group:last-child {
    margin-bottom: 0;
}
.pc-input-wrapper label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--pc-text-light);
}
.pc-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--pc-border-color);
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.pc-input:focus {
    outline: none;
    border-color: var(--pc-primary-color);
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.15);
}

/* --- Results Summary --- */
.pc-results-summary {
    background-color: var(--pc-primary-color);
    color: white;
    border-radius: var(--pc-border-radius);
    padding: 25px;
    margin-top: 25px;
    text-align: center;
}
.pc-results-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 10px;
    opacity: 0.9;
}
.pc-result-item {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 10px;
}
.pc-result-value {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}
.pc-result-label {
    font-size: 1.5rem;
    font-weight: 500;
}

/* --- How It Works Section --- */
.pc-how-it-works {
    /*background-color: var(--pc-card-bg);*/
    /*border: 1px solid var(--pc-border-color);*/
    /*border-radius: var(--pc-border-radius);*/
    padding: 25px;
    margin-top: 30px;
}

.pc-how-it-works-title {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--pc-border-color);
}

.pc-how-it-works ul {
    /*list-style: none;*/
    padding-left: 0;
    margin: 0;
}

/*
.pc-how-it-works li {
    margin-bottom: 15px;
    line-height: 1.6;
    padding-left: 25px;
    position: relative;
}
*/

/*
.pc-how-it-works li::before {
    content: '✔';
    color: var(--pc-primary-color);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}
*/

.pc-how-it-works li:last-child {
    margin-bottom: 0;
}

.pc-how-it-works a {
    color: var(--pc-primary-color);
    text-decoration: none;
    font-weight: 500;
}

.pc-how-it-works a:hover {
    text-decoration: underline;
}
