.paraphrase-tool-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #e0f2fe 0%, #c7d2fe 100%);
    padding: 2rem;
    border-radius: 12px;
}

.paraphrase-container {
    max-width: 1200px;
    margin: 0 auto;
}

.paraphrase-header {
    text-align: center;
    margin-bottom: 2rem;
}

.paraphrase-header h1 {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.paraphrase-header p {
    color: #6b7280;
}

.paraphrase-main-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.paraphrase-mode-selector {
    margin-bottom: 1.5rem;
}

.paraphrase-mode-selector label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.paraphrase-mode-selector select {
    width: 100%;
    padding: 0.rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 0.875rem;
}

.paraphrase-text-areas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .paraphrase-text-areas {
        grid-template-columns: 1fr;
    }
}

.paraphrase-text-box {
    display: flex;
    flex-direction: column;
}

.paraphrase-text-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.paraphrase-text-header label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.paraphrase-counter {
    font-size: 0.75rem;
    color: #6b7280;
}

.paraphrase-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.paraphrase-btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.75rem;
    color: #4f46e5;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
}

.paraphrase-btn-icon:hover {
    color: #4338ca;
}

.paraphrase-btn-icon.success {
    color: #10b981;
}

.paraphrase-textarea {
    width: 100%;
    height: 250px;
    padding: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    resize: none;
}

.paraphrase-textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.paraphrase-output-box {
    background: #f9fafb;
    padding: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    height: 250px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.paraphrase-output-box.loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.paraphrase-spinner {
    border: 3px solid #e5e7eb;
    border-top: 3px solid #4f46e5;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: paraphrase-spin 1s linear infinite;
}

@keyframes paraphrase-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.paraphrase-placeholder {
    color: #9ca3af;
}

.paraphrase-btn-primary {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.paraphrase-btn-primary:hover:not(:disabled) {
    background: #4338ca;
}

.paraphrase-btn-primary:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.paraphrase-tips-card {
    background: #eef2ff;
    border-radius: 8px;
    padding: 1rem;
}

.paraphrase-tips-card h3 {
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.paraphrase-tips-card ul {
    list-style: none;
    color: #374151;
    font-size: 0.875rem;
    padding: 0;
    margin: 0;
}

.paraphrase-tips-card li {
    margin-bottom: 0.25rem;
}

.paraphrase-error-message {
    background: #fee2e2;
    border: 1px solid #ef4444;
    color: #991b1b;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
}