/* ===========================================
    Average Return Calculator - Tool Specific Styles (Compact)
    =========================================== */

.arc-box {
    max-width: 750px; 
    margin: 0 auto;
    padding: 0; 
}

/* Form Styling */
.arc-form {
    padding: 15px; 
    border: 1px solid #00c853; /* Green Border */
    border-radius: 6px;
    background-color: #f1f8e9; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.arc-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #00c853; 
    border-bottom: 2px solid #00c853;
    padding-bottom: 3px; 
    margin-top: 15px; 
    margin-bottom: 10px; 
}
.input-instruction {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: -5px;
    margin-bottom: 10px;
}

/* Compact Grid Setup (2 Columns) */
.arc-compact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px; 
}

.arc-compact-grid.columns-2 .arc-input-group {
    width: 48.5%; /* Two per row */
}

.arc-input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 5px; 
}

.arc-input-group label {
    font-weight: 500;
    color: #495057;
    font-size: 0.85rem; 
    margin-bottom: 2px;
}

.arc-input-group input {
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    text-align: right;
    font-size: 1rem;
}

/* Button Styles */
.arc-calculate-btn {
    display: block;
    width: 100%;
    padding: 12px; 
    margin-top: 15px; 
    background-color: #00c853; /* Green Primary for action */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.arc-calculate-btn:hover {
    background-color: #00a845;
}

/* Results Display */
.arc-results {
    margin-top: 20px; 
    padding: 20px;
    border: 2px solid #00c853; 
    border-radius: 6px;
    background-color: #e8f5e9; /* Light Green Background */
    text-align: center;
}

.arc-results-title {
    color: #1b5e20;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Main Result Grid (AMR vs GMR) */
.arc-data-grid {
    display: flex;
    justify-content: space-between;
    gap: 15px; 
    margin-bottom: 20px; 
}

.arc-data-segment.total-result {
    flex-basis: 48%;
    background: #ffffff;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid #ced4da;
    transition: border 0.3s;
}

/* Highlight Geometric Mean as the key metric */
.arc-data-segment.result-geometric {
    border: 3px solid #00c853;
}

.arc-data-segment .arc-data-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #388e3c; 
    margin-top: 5px;
}

.arc-data-segment .arc-data-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
}
.arc-data-segment .arc-data-subtext {
    font-size: 0.75rem;
    color: #90a4ae;
    margin-top: 5px;
}

/* Breakdown Details */
.arc-breakdown-details {
    text-align: left;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f0f4c3;
    border: 1px dashed #c0ca33;
    border-radius: 4px;
}

.arc-breakdown-details h4 {
    color: #333;
    font-size: 1.1rem;
    margin-top: 0;
}

.arc-breakdown-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.arc-breakdown-details ul li {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    font-size: 0.95rem;
}


.arc-recalculate-btn {
    padding: 8px 15px;
    margin-top: 15px;
    background-color: #00bcd4;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .arc-data-grid,
    .arc-compact-grid.columns-2 {
        flex-direction: column;
        gap: 10px;
    }
    .arc-data-segment.total-result,
    .arc-compact-grid.columns-2 .arc-input-group {
        flex-basis: 100%;
        width: 100% !important;
    }
}