/* tools.css - Styles for the main tools page */

/* Hero section */
.tools-hero {
    text-align: center;
    padding: 60px 0 40px;
}

.tools-hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #0a2463;
}

.tools-hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #555;
}

/* Tools tabs */
.tools-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.tab-button {
    padding: 12px 24px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 4px;
    margin: 0 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.tab-button.active {
    background-color: #ff8800;
    color: white;
}

.tab-button:hover:not(.active) {
    background-color: #e0e0e0;
}

.tab-button i {
    margin-right: 8px;
}

/* Tool containers */
.tool-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 40px;
    display: none;
}

.tool-container.active {
    display: block;
}

.tool-container h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #0a2463;
    display: flex;
    align-items: center;
}

.tool-container h2 i {
    margin-right: 10px;
    color: #ff8800;
}

.tool-description {
    margin-bottom: 25px;
    color: #555;
}

/* Form styling specific to tools */
.tool-form {
    max-width: 800px;
}

.tool-form .form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.tool-form .form-column {
    flex: 1;
    min-width: 250px;
    padding: 0 10px;
    margin-bottom: 20px;
}

.tool-form .submit-container {
    margin-top: 20px;
    text-align: center;
}

/* Sliders for calculator */
.range-slider {
    margin-bottom: 30px;
}

.range-slider input[type="range"] {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 5px;
}

.range-values {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #777;
}

/* Loading indicator */
.loading-indicator {
    display: none;
    text-align: center;
    margin: 20px 0;
}

.loading-indicator .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 136, 0, 0.3);
    border-top: 4px solid #ff8800;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tools-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-button {
        margin: 5px 0;
        width: 80%;
    }
    
    .tool-form .form-row {
        flex-direction: column;
    }
}