/* ===========================================
Battery Life Estimator - Tool Specific Styles
=========================================== */

/* Tool Layout */
.ble-box {
 max-width: 900px;
 margin: 0 auto;
}

/* Controls Layout */
.ble-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ble-section {
 padding: 25px;
 border-radius: 12px;
}

/* Section Styling */
.device-specs {
 background: #f0f9ff; /* Light Blue */
 border: 1px solid #bae6fd;
}

.usage-scenarios {
 background: #f0fdf4; /* Light Green */
 border: 1px solid #a7f3d0;
}

.ble-section-title {
 font-size: 1.1rem;
 font-weight: 700;
 color: #1e40af; /* Dark Blue Title */
 margin-bottom: 20px;
 padding-bottom: 8px;
 border-bottom: 2px solid #93c5fd;
}
.usage-scenarios .ble-section-title {
    color: #065f46; /* Dark Green Title */
    border-bottom-color: #a7f3d0;
}

/* Device Specs Inputs */
.ble-input-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.ble-input-group {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
}

.ble-label {
 font-size: 0.95rem;
 font-weight: 600;
 color: #1f2937;
 margin-bottom: 6px;
}

.ble-input {
 padding: 10px;
 border: 1px solid #93c5fd;
 border-radius: 6px;
 font-size: 1.1rem;
 color: #1f2937;
 width: 100%;
 background-color: white;
    text-align: center;
}
.ble-help-text {
 font-size: 0.8rem;
 color: #4b5563;
 margin-top: 5px;
}


/* --- Scenario Grid --- */
.scenario-header, .scenario-row {
    display: grid;
    grid-template-columns: 3fr 1.5fr 1fr 1.5fr; /* Name | Watt | Percent | Duration */
    gap: 10px;
    align-items: center;
    padding: 10px 0;
}

.scenario-header {
    font-weight: 700;
    color: #065f46;
    border-bottom: 2px solid #a7f3d0;
    margin-bottom: 5px;
}
.scenario-header span {
    text-align: center;
}
.scenario-header .header-name {
    text-align: left;
}

.scenario-row {
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #d1fae5;
    margin-bottom: 8px;
    padding: 10px;
}

.scenario-name-input {
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.95rem;
}

.scenario-watt-input, .scenario-percent-input {
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.95rem;
    text-align: center;
}

.scenario-duration-display {
    font-weight: 600;
    color: #059669;
    text-align: center;
    font-size: 1rem;
}

.scenario-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 15px;
    margin-top: 10px;
    border-top: 1px dashed #a7f3d0;
}
.footer-label {
    font-weight: 600;
    margin-right: 10px;
    color: #065f46;
}
.footer-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #047857;
}

/* Calculate Button */
.ble-btn-calc {
 width: 100%;
 padding: 15px 20px;
 font-size: 1.2rem;
 font-weight: 700;
 border: none;
 border-radius: 8px;
 cursor: pointer;
 background: #22c55e; /* Primary Green Button */
 color: white;
 transition: background 0.2s;
 margin-top: 10px;
}
.ble-btn-calc:hover {
 background: #15803d;
}

/* --- Results Section --- */

.ble-results-section {
 margin-top: 30px;
 text-align: center;
}

.ble-result-box {
 background: #ffffff;
 padding: 30px;
 border-radius: 10px;
 box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
 border: 2px solid #22c55e;
}

.ble-card-title {
 font-size: 1.1rem;
 text-transform: uppercase;
 color: #047857;
 margin-bottom: 10px;
 font-weight: 700;
}

/* Main Duration Display */
.ble-value-main {
 font-size: 3.5rem;
 font-weight: 800;
 color: #22c55e;
 line-height: 1.1;
 margin-bottom: 5px;
}
.ble-unit {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 25px;
}

.ble-breakdown {
 display: flex;
 justify-content: center;
 gap: 25px;
 flex-wrap: wrap;
 padding-top: 20px;
 border-top: 1px dashed #bbf7d0;
}

.ble-breakdown-item {
 text-align: center;
 flex: 1 1 250px;
 padding: 15px;
    border-radius: 8px;
    background: #f0fdf4;
}

.ble-breakdown-number {
 font-size: 1.8rem;
 font-weight: 700;
 color: #047857;
 line-height: 1.2;
}

/* Responsive Styling */
@media (max-width: 768px) {
    .ble-input-row {
        flex-direction: column;
    }
    .ble-input-group {
        flex-basis: 100%;
    }
    .scenario-header, .scenario-row {
        grid-template-columns: 1.5fr 1fr 0.8fr 1.5fr; /* Adjust columns for smaller screens */
    }
    .scenario-header .header-name {
        font-size: 0.85rem;
    }
    .scenario-name-input {
        font-size: 0.8rem;
    }
    .ble-value-main {
  font-size: 2.8rem;
 }
}