/* Specific styles for the Cable Length vs. Signal Quality Calculator */

/* Input Section Customizations */
.input-section {
    /* Custom styles for this tool */
}

/* Output Section Customizations */
/* Removed for global styling compatibility:
/* Removed for global styling compatibility:
.output-section {
    /* Custom styles for this tool */
}
*/
*/

/* Warning message styling */
.warning-message {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin: 15px 0;
    background-color: rgba(255, 193, 7, 0.2);
    border-left: 4px solid #ffc107;
    border-radius: 4px;
}

.warning-message svg {
    margin-right: 10px;
    color: #e67e22;
}

.warning-message.error {
    background-color: rgba(231, 76, 60, 0.1);
    border-left-color: #e74c3c;
}

.warning-message.error svg {
    color: #e74c3c;
}

.warning-message.hidden {
    display: none;
}

/* Reference table styling */
.reference-table {
    width: 100%;
    margin-top: 10px;
}

.table-row {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.table-row:last-child {
    border-bottom: none;
}

.table-cell {
    padding: 8px 4px;
    flex: 1;
}

.table-cell:first-child {
    font-weight: 500;
}

/* Signal quality indicator */
.signal-quality-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}

.signal-excellent {
    background-color: #2ecc71;
}

.signal-good {
    background-color: #3498db;
}

.signal-fair {
    background-color: #f39c12;
}

.signal-poor {
    background-color: #e74c3c;
    position: relative;
}

/* Custom checkbox styling */
.checkbox-group {
    margin-bottom: 1.5rem;
}

.custom-checkbox {
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background-color: rgba(52, 152, 219, 0.05);
    border-radius: 8px;
    border-left: 3px solid #3498db;
    transition: all 0.2s ease;
}

.custom-checkbox:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

.custom-checkbox input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    cursor: pointer;
    z-index: 1;
    width: 24px;
    height: 24px;
}

.custom-checkbox label {
    margin: 0;
    padding-left: 30px;
    cursor: pointer;
    font-weight: 500;
    color: #333;
}

.custom-checkbox .checkmark {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 2px solid #3498db;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.custom-checkbox input[type="checkbox"]:checked ~ .checkmark {
    background-color: #3498db;
}

.custom-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input[type="checkbox"]:checked ~ .checkmark:after {
    display: block;
}

.checkbox-group .helper-text {
    margin-top: 8px;
    margin-left: 2px;
    font-style: italic;
}

/* Dark mode adjustments for custom checkbox */
body.dark-theme .custom-checkbox {
    background-color: rgba(52, 152, 219, 0.15);
    border-left-color: #2980b9;
}

body.dark-theme .custom-checkbox label {
    color: #e0e0e0;
}

body.dark-theme .custom-checkbox .checkmark {
    background-color: #2c3e50;
    border-color: #3498db;
}

body.dark-theme .custom-checkbox:hover {
    background-color: rgba(52, 152, 219, 0.25);
}

/* Basic result info styling */
/* Removed for global styling compatibility:/* Removed for global styling compatibility:

/* Removed for global styling compatibility:/* Removed for global styling compatibility:

.result-info {
    font-size: 0.9em;
    margin-top: 5px;
    line-height: 1.2;
    font-style: italic;
}
*/
*/
*/
*/

.result-info p {
    margin: 0;
}

/* Dark mode overrides */
@media (prefers-color-scheme: dark) {
    .warning-message {
        background-color: rgba(255, 193, 7, 0.1);
    }
    
    .warning-message.error {
        background-color: rgba(231, 76, 60, 0.1);
    }
    
    .table-row {
        border-bottom-color: var(--border-color-dark);
    }
}

/* Responsive customizations */
@media screen and (max-width: 768px) {
    /* Removed for global styling compatibility:
.reference-grid {
        grid-template-columns: 1fr;
    }
*/
}

@media screen and (max-width: 480px) {
    .table-row {
        flex-direction: column;
        padding: 8px 0;
    }
    
    .table-cell {
        padding: 4px;
    }
}



