/* Tools Page Enhanced Styling */
.tool-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.tool-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><path fill="rgba(255,255,255,0.05)" d="M100 0L200 200H0L100 0z"/></svg>');
    opacity: 0.1;
}

.tool-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.tool-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Enhanced Tool Container */
.tool-container-enhanced {
    max-width: 900px;
    margin: -40px auto 60px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.tool-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 24px 32px;
    border-bottom: 1px solid #dee2e6;
}

.tool-header h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tool-header h2 i {
    color: #667eea;
    font-size: 1.8rem;
}

.tool-body {
    padding: 32px;
}

/* Input Area */
.input-area {
    margin-bottom: 24px;
}

.input-area label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
}

.input-area textarea,
.input-area input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    resize: vertical;
}

.input-area textarea:focus,
.input-area input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Button Group */
.button-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 24px 0;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: white;
    border: 2px solid #e9ecef;
    color: #2c3e50;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    border-color: #667eea;
    color: #667eea;
}

/* Results Area */
.results-area {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 24px;
    margin-top: 24px;
    border: 1px solid #e9ecef;
}

.results-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}


.stat-card {
    background: white;
    padding: 16px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-card i {
    font-size: 1.8rem;
    color: #667eea;
    margin-bottom: 8px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #2c3e50;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 4px;
}

.result-content {
    background: white;
    padding: 20px;
    border-radius: 16px;
    font-family: monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    border: 1px solid #e9ecef;
    max-height: 300px;
    overflow-y: auto;
}

/* Tool Info Section */
.tool-info {
    background: white;
    border-radius: 24px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tool-info h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 12px;
}

.tool-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
}

.tool-info p {
    color: #495057;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.tool-info ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.tool-info li {
    margin-bottom: 0.5rem;
    color: #495057;
}

/* FAQ Section */
.faq-section {
    margin-top: 40px;
}

.faq-item {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-question {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.faq-answer {
    color: #6c757d;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .tool-hero h1 {
        font-size: 2rem;
    }
    
    .tool-container-enhanced {
        margin: -20px 20px 40px;
    }
    
    .tool-body {
        padding: 20px;
    }
    
    .results-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .tool-info {
        padding: 24px;
        margin: 24px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}