/* Tools Hub Main Stylesheet */

.tools-hub-wrapper {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.tool-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.tool-title {
    font-size: 2rem;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tool-icon {
    font-size: 2rem;
}

.tool-description {
    color: #7f8c8d;
    font-size: 1rem;
    margin: 0;
}

.tool-content {
    padding: 1rem 0;
}

/* Form Elements */
.tool-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #34495e;
    font-size: 0.95rem;
}

.tool-input,
.tool-select {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.tool-input:focus,
.tool-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.tool-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
}

.tool-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
}

.tool-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    border: none;
}

/* Buttons */
.tool-button {
    padding: 0.875rem 1.5rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.tool-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.tool-button-secondary {
    background: #95a5a6;
}

.tool-button-secondary:hover {
    background: #7f8c8d;
}

.tool-button-icon {
    padding: 0.5rem;
    background: transparent;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.tool-button-icon:hover {
    background: #f8f9fa;
    border-color: #3498db;
}

/* Results */
.tool-result {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.tool-result h3 {
    margin-top: 0;
    color: #2c3e50;
}

/* Age Calculator Specific */
.age-display {
    display: flex;
    justify-content: space-around;
    margin: 1.5rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.age-item {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 100px;
}

.age-value {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #3498db;
}

.age-label {
    display: block;
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 0.5rem;
}

.age-details {
    margin-top: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
}

.age-details p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    color: #34495e;
}

/* BMI Calculator Specific */
.unit-selector {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.unit-selector label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 600;
}

.bmi-value {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.bmi-value h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.bmi-value #bmi-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #3498db;
}

.bmi-category {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0.5rem 0 0 0;
}

.bmi-chart {
    position: relative;
    margin: 1.5rem 0;
}

.bmi-bar {
    position: absolute;
    top: -10px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid #3498db;
    transform: translateX(-50%);
    transition: all 0.5s ease;
}

.bmi-ranges {
    display: flex;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
}

.bmi-ranges span {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-align: center;
    padding: 0.5rem;
}

.bmi-ranges .underweight {
    background: #3498db;
}

.bmi-ranges .normal {
    background: #2ecc71;
}

.bmi-ranges .overweight {
    background: #f39c12;
}

.bmi-ranges .obese {
    background: #e74c3c;
}

.bmi-info {
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    color: #34495e;
    line-height: 1.6;
}

/* Password Generator Specific */
.password-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.password-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

.password-display {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
}

.password-output {
    flex: 1;
    padding: 1rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.password-strength {
    margin-top: 1rem;
}

.strength-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-bar-fill {
    height: 100%;
    transition: all 0.5s ease;
    border-radius: 4px;
}

.strength-text {
    text-align: center;
    font-weight: 600;
    margin: 0;
}

.password-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.password-item code {
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 4px;
    flex: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tools-hub-wrapper {
        padding: 1rem;
        margin: 1rem;
    }

    .tool-title {
        font-size: 1.5rem;
    }

    .age-display {
        flex-direction: column;
    }

    .age-item {
        width: 100%;
    }

    .unit-selector {
        flex-direction: column;
        gap: 1rem;
    }
}