/* Tool Container */
.tool-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Tool Header */
.tool-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
    border-radius: 20px;
    color: white;
}

.tool-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.tool-header p {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Text Tool Box */
.text-tool-box {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Input Section */
.textarea-wrapper {
    position: relative;
}

.textarea-wrapper textarea {
    width: 100%;
    min-height: 300px;
    padding: 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    font-size: 1.1rem;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.textarea-wrapper textarea:focus {
    border-color: #6366f1;
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    outline: none;
}

.clear-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem;
    border: none;
    background: none;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-btn:hover {
    color: #6366f1;
}

/* Text Stats */
.text-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f3f4f6;
    border-radius: 12px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4b5563;
}

.stat-item i {
    color: #6366f1;
}

.stat-item strong {
    color: #1f2937;
}

/* Action Buttons */
.actions {
    margin: 2rem 0;
}

.action-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.btn-primary, .btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #6366f1;
    color: white;
}

.btn-primary:hover {
    background: #4f46e5;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #e5e7eb;
    color: #1f2937;
    transform: translateY(-2px);
}

/* Additional Tools */
.additional-tools {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #f3f4f6;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tool-group h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4b5563;
    margin-bottom: 1rem;
}

.tool-group h3 i {
    color: #6366f1;
}

.tool-buttons {
    display: grid;
    gap: 0.5rem;
}

.tool-buttons button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tool-buttons button:hover {
    background: #f3f4f6;
    border-color: #6366f1;
    color: #6366f1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tool-container {
        padding: 1rem;
    }

    .tool-header {
        padding: 1.5rem;
    }

    .text-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .action-group {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-tool-box {
    animation: fadeIn 0.5s ease-out;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .text-tool-box {
        background: #1f2937;
    }

    .textarea-wrapper textarea {
        background: #374151;
        border-color: #4b5563;
        color: white;
    }

    .text-stats {
        background: #374151;
        color: #e5e7eb;
    }

    .btn-secondary {
        background: #374151;
        border-color: #4b5563;
        color: #e5e7eb;
    }

    .tool-buttons button {
        background: #374151;
        border-color: #4b5563;
        color: #e5e7eb;
    }
} 