/* Tool Page Specific Styles */
.tool-page-header {
    background: linear-gradient(135deg, var(--tw-gradient-stops));
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.tool-page-header .container {
    max-width: 1200px;
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--tw-text-primary);
}

/* Tool Form Styles */
.tool-form {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    margin-bottom: 2rem;
}

.tool-form-group {
    margin-bottom: 1.5rem;
}

.tool-form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #1E293B;
}

.tool-form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #E2E8F0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.tool-form-control:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Tool Result Styles */
.tool-result {
    background-color: #F8FAFC;
    border-radius: 0.75rem;
    border: 1px solid #E2E8F0;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.tool-result-header {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1E293B;
}

.tool-result-content {
    word-break: break-word;
    white-space: pre-wrap;
    font-family: 'Fira Code', 'Courier New', monospace;
    background-color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #E2E8F0;
}

/* Tool Options Styles */
/* 在现有tools.css文件的末尾添加以下内容 */

/* Text Converter Specific Styles */
.tool-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.tool-option-btn {
    padding: 0.75rem 1.25rem;
    border: 1px solid #E2E8F0;
    background-color: white;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-option-btn:hover {
    border-color: #3B82F6;
    color: #3B82F6;
}

.tool-option-btn.active {
    background-color: #3B82F6;
    color: white;
    border-color: #3B82F6;
}

#input-text {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}

#output-text {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Responsive adjustments for text converter */
@media (max-width: 768px) {
    .grid-cols-1.md\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .tool-option-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Tool Actions Styles */
.tool-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

/* Responsive Tool Page Styles */
@media (max-width: 768px) {
    .tool-form {
        padding: 1.5rem;
    }
    
    .tool-page-header {
        padding: 1.5rem 0;
    }
    
    .tool-actions {
        justify-content: center;
    }
}

/* Tool Help Section */
.tool-help {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    margin-top: 2rem;
}

.tool-help h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1E293B;
}

.tool-help p {
    margin-bottom: 1rem;
    color: #64748B;
    line-height: 1.6;
}

/* File Upload Styles */
.file-upload {
    border: 2px dashed #E2E8F0;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-upload:hover {
    border-color: #3B82F6;
    background-color: #EFF6FF;
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload-label {
    cursor: pointer;
    display: inline-block;
}

.file-upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #94A3B8;
}

.file-upload-text {
    color: #64748B;
}

/* Tool Tabs */
.tool-tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #E2E8F0;
    margin-bottom: 1.5rem;
}

.tool-tab {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    font-weight: 500;
}

.tool-tab:hover {
    color: #3B82F6;
}

.tool-tab.active {
    color: #3B82F6;
    border-bottom-color: #3B82F6;
}

/* Custom Select Styles */
.custom-select {
    position: relative;
}

.custom-select::after {
    content: '\f078';
    font-family: 'FontAwesome';
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    pointer-events: none;
    color: #64748B;
}

/* Range Input Styles */
input[type="range"] {
    width: 100%;
    height: 0.5rem;
    background: #E2E8F0;
    border-radius: 0.25rem;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    background: #3B82F6;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.1);
}

input[type="range"]::-moz-range-thumb {
    width: 1.25rem;
    height: 1.25rem;
    background: #3B82F6;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.1);
}

/* Tool Progress Bar */
.progress-bar {
    height: 0.5rem;
    background-color: #E2E8F0;
    border-radius: 0.25rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar-fill {
    height: 100%;
    background-color: #3B82F6;
    transition: width 0.3s ease;
}

/* Tool History */
.tool-history {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    margin-top: 2rem;
}

.tool-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tool-history-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1E293B;
}

.history-clear {
    color: #3B82F6;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.history-clear:hover {
    color: #2563EB;
}

.history-items {
    max-height: 200px;
    overflow-y: auto;
}

.history-item {
    padding: 0.75rem;
    border-bottom: 1px solid #F1F5F9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-item:last-child {
    border-bottom: none;
}

.history-item-content {
    font-size: 0.875rem;
    color: #64748B;
}

.history-item-time {
    font-size: 0.75rem;
    color: #94A3B8;
}

/* 在现有文件的适当位置添加这些样式 */

/* Text Converter Specific Styles */
.text-conversion-option-btn {
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.text-conversion-option-btn.bg-primary\/10 {
    background-color: rgba(59, 130, 246, 0.1);
}

/* Input/Output Area Styles */
#input-text,
#output-text {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    line-height: 1.5;
}

#output-text {
    cursor: not-allowed;
}

/* Responsive Adjustments for Text Converter */
@media (max-width: 640px) {
    .text-conversion-option-btn {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }
}