/* Styles for La Liga Historical Probability Calculator */
.calcufacil-la_liga_historical_prob_calculator {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 25px;
    font-family: 'Open Sans', sans-serif;
    max-width: 800px;
    margin: 25px auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* Default H3 Title from constructor */
.calcufacil-la_liga_historical_prob_calculator > h3 {
   text-align: center;
   color: #0d47a1; /* Dark Blue */
   margin-bottom: 15px;
   font-size: 1.3em;
   font-weight: 600;
}

/* Main H2 within the content */
.calcufacil-la_liga_historical_prob_calculator .calculator-content h2 {
    text-align: center;
    color: #0b3c85; /* Even Darker Blue */
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.7em;
    font-weight: 700;
}

.calcufacil-la_liga_historical_prob_calculator .description {
    text-align: center;
    color: #333;
    font-size: 0.95em;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Form Styling */
.calcufacil-la_liga_historical_prob_calculator form {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px dashed #bbdefb; /* Light Blue */
}

.calcufacil-la_liga_historical_prob_calculator form h3 {
 color: #1565c0; /* Medium Blue */
 margin-bottom: 20px;
 font-size: 1.25em;
 border-bottom: 1px solid #e3f2fd; /* Very Light Blue */
 padding-bottom: 8px;
 display: flex;
 align-items: center;
 gap: 8px;
}
.calcufacil-la_liga_historical_prob_calculator form h3 i {
  color: #42a5f5; /* Lighter blue */
}


.calcufacil-la_liga_historical_prob_calculator .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px 22px;
    margin-bottom: 25px;
}

.calcufacil-la_liga_historical_prob_calculator .input-group {
    display: flex;
    flex-direction: column;
}

.calcufacil-la_liga_historical_prob_calculator .input-group label {
    font-weight: 600;
    color: #1a237e; /* Indigo */
    margin-bottom: 6px;
    font-size: 0.9em;
}

.calcufacil-la_liga_historical_prob_calculator .input-group select {
    padding: 10px;
    border: 1px solid #90caf9; /* Medium Light Blue border */
    border-radius: 4px;
    font-size: 1em;
    background-color: #fff;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
}

.calcufacil-la_liga_historical_prob_calculator button[type="submit"] {
    background-color: #1976d2; /* Standard Blue */
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    display: block;
    width: fit-content;
    margin: 20px auto 0 auto;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.calcufacil-la_liga_historical_prob_calculator button[type="submit"]:hover {
    background-color: #1565c0; /* Darker Blue */
}

/* Results Area Styling */
.calcufacil-la_liga_historical_prob_calculator .results-area {
    margin-top: 25px;
    padding: 20px;
    background-color: #e3f2fd; /* Very Light Blue */
    border-radius: 6px;
    border: 1px solid #bbdefb;
}
.calcufacil-la_liga_historical_prob_calculator .results-area h3 {
    color: #0d47a1; /* Dark Blue */
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.calcufacil-la_liga_historical_prob_calculator .results-area h3 i {
    color: #42a5f5; /* Lighter Blue */
}

.calcufacil-la_liga_historical_prob_calculator .results-area .summary {
 text-align: center;
 font-size: 0.9em;
 color: #333;
 margin-bottom: 25px;
 padding-bottom: 15px;
 border-bottom: 1px dashed #bbdefb;
}
.calcufacil-la_liga_historical_prob_calculator .results-area .summary strong {
 color: #0b3c85;
 font-weight: bold;
}


.calcufacil-la_liga_historical_prob_calculator .results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.calcufacil-la_liga_historical_prob_calculator .result-box {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.calcufacil-la_liga_historical_prob_calculator .result-box h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #1565c0; /* Medium Blue */
    font-size: 1.15em;
    border-bottom: 1px solid #e3f2fd;
    padding-bottom: 8px;
}

.calcufacil-la_liga_historical_prob_calculator .result-box p {
    margin-bottom: 10px;
    font-size: 1em;
    color: #333;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.calcufacil-la_liga_historical_prob_calculator .result-box p .value {
    font-weight: bold;
    color: #0d47a1; /* Dark Blue */
    white-space: nowrap;
    margin-left: 10px;
}
.calcufacil-la_liga_historical_prob_calculator .probability-box p .value {
     font-size: 1.1em;
}


/* Probability Bar Styling */
.calcufacil-la_liga_historical_prob_calculator .probability-bar {
    display: flex;
    height: 30px; /* Adjust height as needed */
    border-radius: 5px;
    overflow: hidden; /* Clip corners */
    margin-top: 15px;
    background-color: #eee; /* Background for empty space if total < 100% */
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
    position: relative; /* For pseudo-element labels */
    font-size: 0.9em; /* Font size for labels */
    color: #fff;
}

.calcufacil-la_liga_historical_prob_calculator .bar-segment {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: width 0.5s ease-in-out;
    position: relative;
    overflow: hidden; /* Hide label if segment too small */
}

.calcufacil-la_liga_historical_prob_calculator .bar-segment::before {
    content: attr(data-label); /* Use data-label for text */
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
    white-space: nowrap;
    font-weight: bold;
}

.calcufacil-la_liga_historical_prob_calculator .bar-segment.team1-win {
    background-color: #42a5f5; /* Light Blue */
}
.calcufacil-la_liga_historical_prob_calculator .bar-segment.draw {
    background-color: #bdbdbd; /* Gray */
    color: #333; /* Darker text for gray */
     text-shadow: none;
}
.calcufacil-la_liga_historical_prob_calculator .bar-segment.team2-win {
    background-color: #ef5350; /* Light Red */
}

/* Hide label if segment is too small */
.calcufacil-la_liga_historical_prob_calculator .bar-segment[style*="width: 0%;"],
.calcufacil-la_liga_historical_prob_calculator .bar-segment[style*="width: 1%;"],
.calcufacil-la_liga_historical_prob_calculator .bar-segment[style*="width: 2%;"],
.calcufacil-la_liga_historical_prob_calculator .bar-segment[style*="width: 3%;"],
.calcufacil-la_liga_historical_prob_calculator .bar-segment[style*="width: 4%;"],
.calcufacil-la_liga_historical_prob_calculator .bar-segment[style*="width: 5%;"],
.calcufacil-la_liga_historical_prob_calculator .bar-segment[style*="width: 6%;"],
.calcufacil-la_liga_historical_prob_calculator .bar-segment[style*="width: 7%;"]
{
   font-size: 0; /* Effectively hide text */
}
.calcufacil-la_liga_historical_prob_calculator .bar-segment[style*="width: 0%;"]::before,
.calcufacil-la_liga_historical_prob_calculator .bar-segment[style*="width: 1%;"]::before,
.calcufacil-la_liga_historical_prob_calculator .bar-segment[style*="width: 2%;"]::before,
.calcufacil-la_liga_historical_prob_calculator .bar-segment[style*="width: 3%;"]::before,
.calcufacil-la_liga_historical_prob_calculator .bar-segment[style*="width: 4%;"]::before,
.calcufacil-la_liga_historical_prob_calculator .bar-segment[style*="width: 5%;"]::before,
.calcufacil-la_liga_historical_prob_calculator .bar-segment[style*="width: 6%;"]::before,
.calcufacil-la_liga_historical_prob_calculator .bar-segment[style*="width: 7%;"]::before {
    content: '';
}


/* Disclaimer/Note */
.calcufacil-la_liga_historical_prob_calculator .disclaimer {
    font-size: 0.85em;
    color: #616161;
    text-align: center;
    margin-top: 15px;
    font-style: italic;
    line-height: 1.4;
}
.calcufacil-la_liga_historical_prob_calculator .disclaimer strong {
 color: #c0392b; /* Red */
}

.calcufacil-la_liga_historical_prob_calculator .error-message {
    color: #c0392b;
    background-color: #f9eaea;
    border: 1px solid #e6b0aa;
    padding: 12px 15px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    margin: 15px 0;
}

.calcufacil-la_liga_historical_prob_calculator .initial-message {
    color: #333;
    text-align: center;
    padding: 25px;
    background-color: #f5f5f5;
    border: 1px dashed #ccc;
    border-radius: 5px;
    margin-top: 20px;
}