/* * AI Text to Human Converter Styles
 * Clean, modern, responsive CSS using a card-based layout
 */

.aihc-container {
    max-width: 800px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

.aihc-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 30px;
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
}

.aihc-header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

.aihc-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    color: #1a202c;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.aihc-header h2 i {
    color: #3b82f6;
}

.aihc-header p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}

.aihc-input-group, .aihc-output-section {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.aihc-container label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
}

.aihc-container textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #f8fafc;
}

.aihc-container textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background: #ffffff;
}

.aihc-meta-bar {
    display: flex;
    justify-content: flex-end;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #94a3b8;
}

.aihc-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 15px;
    margin-bottom: 25px;
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.aihc-tone-wrapper {
    flex: 1;
    min-width: 200px;
}

.aihc-tone-wrapper select {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #fff;
    font-size: 0.95rem;
    cursor: pointer;
}

.aihc-action-buttons {
    display: flex;
    gap: 10px;
}

/* Button Styles */
.aihc-container button {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.aihc-btn-primary {
    background: #3b82f6;
    color: #fff;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.25);
}

.aihc-btn-primary:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-1px);
}

.aihc-btn-secondary {
    background: #e2e8f0;
    color: #475569;
}

.aihc-btn-secondary:hover:not(:disabled) {
    background: #cbd5e1;
    color: #1e293b;
}

.aihc-container button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.aihc-success-btn {
    background: #10b981 !important;
    color: white !important;
}

/* Loading & Alerts */
#aihc-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: #3b82f6;
    font-weight: 500;
}

.aihc-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(59, 130, 246, 0.2);
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: aihc-spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes aihc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.aihc-alert {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.aihc-alert-danger {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fca5a5;
    border-left: 4px solid #ef4444;
}

/* Output Section */
#aihc-output-section {
    border-top: 2px dashed #e2e8f0;
    padding-top: 25px;
    animation: aihc-fade-in 0.5s ease;
}

@keyframes aihc-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.aihc-stats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    background: #ecfdf5;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-weight: 500;
    font-size: 0.9rem;
}

.aihc-stats-bar > span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.aihc-output-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .aihc-card { padding: 20px; }
    .aihc-controls { flex-direction: column; align-items: stretch; }
    .aihc-action-buttons { flex-direction: column; }
    .aihc-action-buttons button { width: 100%; }
    .aihc-output-controls { flex-direction: column; }
    .aihc-output-controls button { width: 100%; }
    .aihc-stats-bar { flex-direction: column; gap: 8px; }
}