/* Tool page specific styles */
.tool-header {
    background-color: #f8f9fa;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tool-header h1 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.tool-header p {
    color: #666;
    margin: 0;
}

.tool-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tool-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-options {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.option-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.option-group label {
    font-size: 0.9rem;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.option-group select {
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    background-color: #fff;
    font-size: 0.9rem;
    color: #1a1a1a;
    cursor: pointer;
}

.option-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.results {
    margin-bottom: 2rem;
    position: relative;
}

.result-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--bg-secondary);
    border-radius: 0.5rem;
}

.result-section h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-label {
    color: #6b7280;
}

.tool-info {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.tool-info h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.regex-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-text {
    background-color: var(--bg-secondary);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.btn-text:hover {
    background-color: #f3f4f6;
}

/* URL Encoder/Decoder specific styles */
.url-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.url-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.url-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.url-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.url-header h3 i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.url-content {
    position: relative;
}

.url-textarea {
    width: 100%;
    height: 200px;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    background-color: #f8f9fa;
    color: #1a1a1a;
    transition: all 0.2s;
}

.url-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.url-textarea:read-only {
    background-color: #f8f9fa;
    cursor: default;
}

.url-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.url-options .option-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.url-options select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 0.875rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.result-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.copy-tooltip {
    position: absolute;
    top: -30px;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.2s;
    pointer-events: none;
}

.copy-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tool-header,
    .tool-content {
        padding: 1rem;
    }

    .form-options {
        flex-direction: column;
        gap: 1rem;
    }

    .stats {
        flex-direction: column;
        gap: 1rem;
    }

    .url-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .url-options {
        flex-direction: column;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
} 