/**
 * Wave Action on Piles Calculator
 * 
 * Custom styles for the Wave Action on Piles tool
 */

/* Tool specific styles */
#results-section {
    min-height: 250px;
}

/* Form Layout */
.tool-form .form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.tool-form label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.tool-form input[type="number"] {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #d1d1d1;
    border-radius: 4px;
    font-size: 0.95rem;
}

.tool-form small {
    margin-top: 0.3rem;
    color: #6c757d;
    font-size: 0.85rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 2rem;
}

.form-actions button {
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

#btn-calcular {
    background-color: #007bff;
    color: white;
    border: none;
}

#btn-calcular:hover {
    background-color: #0069d9;
}

#reset-btn {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #d1d1d1;
}

#reset-btn:hover {
    background-color: #e9ecef;
}

/* Results Section */
.results-container {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-container h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #343a40;
    font-weight: 600;
}

.result-summary {
    padding: 1.2rem;
    background-color: #fff;
    border-left: 4px solid #17a2b8;
    border-radius: 3px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.result-summary h4 {
    margin-top: 0;
    color: #343a40;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

/* Slider Style */
#div-angulo {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

#time-display {
    color: #0d6efd;
    font-family: monospace;
    font-size: 1.1em;
}

/* --- Documentation Styling (Matched to Breaking Wave Tool) --- */

/* Equation Wrapper - Hands overflow for long equations */
.equation-wrapper {
    text-align: center;
    margin: 30px 0;
    overflow-x: auto;
    width: 100%;
    /* Ensure padding for scrollbar */
    padding-bottom: 10px;
}

/* Image Containers */
.image-container {
    max-width: 100%;
    margin: 2rem auto;
    border: 1px solid #dee2e6;
    padding: 0.5rem;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.image-container img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.caption {
    font-size: 0.9rem;
    font-style: italic;
    color: #6c757d;
    text-align: center;
    margin-top: 0.75rem;
    padding: 0 1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .charts-row {
        flex-direction: column;
    }

    .chart-col {
        width: 100%;
    }
}