/* Tool Page Styles */
.tool-hero {
    background: linear-gradient(to right, #4a6bff, #6b8bff);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.tool-hero h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.tool-hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.tool-section {
    padding: 50px 0;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.tool-info {
    padding: 60px 0;
    background-color: #f0f5ff;
}

.info-content {
    max-width: 800px;
    margin: 0 auto;
}

.info-content h2 {
    margin-bottom: 30px;
    text-align: center;
}

.info-content h3 {
    margin: 30px 0 15px;
    color: var(--primary-color);
}

.info-content p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.info-content ul, 
.info-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.info-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 768px) {
    .tool-hero h2 {
        font-size: 1.8rem;
    }
    
    .tool-hero p {
        font-size: 1rem;
    }
}

/* Alert styles */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.loading-text {
    margin-top: 15px;
    font-size: 16px;
    color: #666;
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
} 