/* ===========================================
    Word Counter - Tool Specific Styles
    =========================================== */

/* Box Styling */
.wc-box {
    max-width: 850px; 
    margin: 0 auto;
    padding: 0; 
}

/* Form Container */
.wc-form {
    padding: 25px; 
    border: 1px solid #1A237E; /* Deep Blue Border */
    border-radius: 8px;
    background-color: #E8EAF6; /* Very Light Blue Background */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.wc-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0D47A1; /* Darker Blue */
    border-bottom: 2px solid #C5CAE9;
    padding-bottom: 5px; 
    margin-top: 5px; 
    margin-bottom: 20px; 
}

/* --- Input Area --- */
.wc-textarea-group {
    display: flex;
    flex-direction: column;
}

.wc-textarea-group label {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem; 
    margin-bottom: 8px;
}

#textInput {
    min-height: 250px;
    padding: 15px;
    border: 1px solid #7986CB;
    border-radius: 6px;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    font-family: Arial, sans-serif;
}

/* Button Styles */
.wc-analyze-btn {
    display: block;
    width: 100%;
    padding: 16px; 
    margin-top: 20px; 
    background-color: #3F51B5; /* Primary Blue */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}
.wc-analyze-btn:hover {
    background-color: #303F9F;
}

/* --- Results Display --- */
.wc-results {
    margin-top: 20px; 
    padding: 25px;
    border: 2px solid #3F51B5; 
    border-radius: 8px;
    background-color: #F8F9FA; /* Off-White for Results */
    text-align: center;
}

.wc-results-title {
    color: #1A237E;
    font-size: 1.6rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #CFD8DC;
    padding-bottom: 5px;
}

/* Results Grid: Metrics & Readability Scores */
.wc-results-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.wc-metrics-panel {
    flex-basis: 48%; /* Two panels side-by-side */
    min-width: 300px;
    padding: 15px;
    border: 1px solid #B0BEC5;
    border-radius: 6px;
    background-color: #FFFFFF;
    text-align: left;
}
.wc-metrics-panel h3 {
    font-size: 1.2rem;
    color: #0D47A1;
    border-bottom: 1px dashed #C5CAE9;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

/* Inner Data Table */
.wc-data-table {
    width: 100%;
    border-collapse: collapse;
}
.wc-data-table th, .wc-data-table td {
    padding: 8px 0;
}
.wc-data-table th {
    font-weight: 500;
    color: #7986CB;
    width: 70%;
}
.wc-data-table td {
    font-weight: 700;
    text-align: right;
    color: #263238;
}

/* Highlighted Scores */
.wc-score {
    font-size: 1.4rem;
    font-weight: 900;
    color: #FF5722; /* Orange accent for scores */
}

/* Recalculate Button (Global Style Reuse) */
.bc-recalculate-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    background-color: #9E9E9E;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}
.bc-recalculate-btn:hover {
    background-color: #616161;
}

/* --- Responsive Adjustments --- */
@media (max-width: 700px) {
    .wc-metrics-panel {
        flex-basis: 100%;
        min-width: unset;
    }
}