/* ===========================================
   Bill Splitter Calculator - Tool Specific Styles
   =========================================== */

/* Tool Layout */
.bsc-box {
    max-width: 600px;
    margin: 0 auto;
}

/* Controls and Inputs */
.bsc-controls {
    background: #f0fdf4; /* Light Mint/Green BG */
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #a7f3d0;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: 1fr; /* Single column for vertical inputs */
    gap: 20px;
}

.bsc-input-group {
    display: flex;
    flex-direction: column;
}

.bsc-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #047857; /* Dark Green Label */
    margin-bottom: 6px;
}

.bsc-input {
    padding: 10px;
    border: 1px solid #34d399; /* Medium Green Border */
    border-radius: 6px;
    font-size: 1.1rem;
    color: #1f2937;
    width: 100%;
    text-align: right; /* Align numbers right */
}

.bsc-input-addon {
    display: flex;
    align-items: center;
}

/* Input addons for currency and percentage */
.bsc-input-addon span {
    background-color: #d1fae5;
    border: 1px solid #34d399;
    border-right: none;
    padding: 10px;
    border-radius: 6px 0 0 6px;
    font-size: 1.1rem;
    color: #047857;
}

.bsc-input-addon .bsc-input {
    border-left: none;
    border-radius: 0 6px 6px 0;
    text-align: left; /* Align input text left next to addon */
}

/* --- Results Summary --- */

.bsc-results-section {
    margin-top: 30px;
}

.bsc-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two main results */
    gap: 20px;
    text-align: center;
    padding: 25px;
    background: #f0fdf4; 
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.bsc-result-item {
    border-right: 1px solid #a7f3d0;
    padding: 0 10px;
}

.bsc-result-item:last-child {
    border-right: none;
}

.bsc-result-label {
    font-size: 1rem;
    color: #047857;
    font-weight: 600;
    margin-bottom: 5px;
}

.bsc-result-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #10b981; /* Primary Green Highlight */
}

/* Specific item for the breakdown */
.bsc-breakdown-row {
    grid-column: 1 / 3; /* Spans both columns */
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 1px dashed #d1fae5;
    font-size: 1.1rem;
    color: #047857;
}

.bsc-breakdown-label {
    font-weight: 600;
}

.bsc-breakdown-value {
    font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .bsc-summary {
        grid-template-columns: 1fr; 
        gap: 15px;
    }
    .bsc-result-item {
        border-right: none;
        border-bottom: 1px solid #a7f3d0;
        padding-bottom: 15px;
    }
    .bsc-result-item:last-child {
        border-bottom: none;
    }
    .bsc-breakdown-row {
        grid-column: 1 / 2;
    }
    .bsc-result-value {
        font-size: 2rem;
    }
}