/* assets/ai-humanizer.css - Dark Theme Matching Prompt Optimizer */

.ai-humanizer-pro {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background: radial-gradient(ellipse at top, #1e1b4b 0%, #0f0f23 100%);
    min-height: 90vh;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.ai-humanizer-pro * {
    box-sizing: border-box;
}

/* Header Section */
.humanizer-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 30px;
    background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
    color: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(139, 92, 246, 0.5);
    position: relative;
    overflow: hidden;
}

.humanizer-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="20" cy="20" r="0.5" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="0.3" fill="white" opacity="0.1"/><circle cx="40" cy="80" r="0.4" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    animation: float 25s infinite linear;
    z-index: 1;
}

@keyframes float {
    0% { transform: translateY(0px) translateX(0px); }
    100% { transform: translateY(-100px) translateX(-100px); }
}

.humanizer-header > * {
    position: relative;
    z-index: 2;
}

.humanizer-header h2 {
    margin: 0 0 15px 0;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    color: #FFFFFF !important;
}

.humanizer-description {
    margin: 0 0 20px 0;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    opacity: 0.9;
    font-weight: 400;
    color: #e5e7eb !important;
}

.usage-display {
    background: rgba(255,255,255,0.15);
    padding: 12px 20px;
    border-radius: 25px;
    display: inline-block;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    color: #f1f5f9;
}

.usage-warning {
    display: block;
    margin-top: 8px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Form Section - Dark Theme */
.humanizer-form-section {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.form-group {
    margin-bottom: 30px;
    padding: 1.25rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.form-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #8b5cf6 50%, transparent 100%);
    border-radius: 12px 12px 0 0;
}

.form-group.focused {
    transform: translateY(-2px);
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #f1f5f9;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.required {
    color: #ef4444;
    margin-left: 4px;
}

/* Enhanced Input Styling - Better Visibility */
.humanizer-textarea,
.styled-select,
.keyword-input {
    width: 100%;
    padding: 16px 20px;
    margin: 0.5rem 0;
    background: #0f172a !important; /* Deep navy background */
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 8px;
    color: #e2e8f0 !important; /* Light text color */
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.humanizer-textarea {
    min-height: 150px;
    max-height: 400px;
    resize: vertical;
    line-height: 1.6;
}

.humanizer-textarea:focus,
.styled-select:focus,
.keyword-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
    background: rgba(15, 23, 42, 0.9) !important;
    color: #f8fafc !important;
}

.humanizer-textarea::placeholder,
.keyword-input::placeholder {
    color: #64748b;
}

.humanizer-textarea.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.humanizer-textarea.warning {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

/* Enhanced Select Dropdown - Better Visibility */
.styled-select {
    cursor: pointer;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%238b5cf6" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6,9 12,15 18,9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    appearance: none;
}

.styled-select option {
    background: #1e293b !important;
    color: #e2e8f0 !important;
    padding: 10px;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Text Stats and Help Text with Higher Specificity */
.ai-humanizer-pro .text-stats,
.humanizer-form-section .text-stats {
    display: flex !important;
    gap: 20px !important;
    margin-top: 12px !important;
    padding: 12px 16px !important;
    background: rgba(30, 41, 59, 0.3) !important;
    border-radius: 8px !important;
    border: 1px solid rgba(148, 163, 184, 0.1) !important;
    font-size: 0.85rem !important;
    color: #94a3b8 !important;
    flex-wrap: wrap !important;
}

.ai-humanizer-pro .text-stats .stat-item,
.humanizer-form-section .text-stats .stat-item {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-weight: 500 !important;
}

.ai-humanizer-pro .text-stats .stat-label,
.humanizer-form-section .text-stats .stat-label {
    color: #6b7280 !important;
}

.ai-humanizer-pro .text-stats .stat-value,
.humanizer-form-section .text-stats .stat-value {
    color: #cbd5e1 !important;
    font-weight: 600 !important;
}

.ai-humanizer-pro .readability-score,
.humanizer-form-section .readability-score {
    color: #10b981 !important;
    font-weight: 700 !important;
}

.ai-humanizer-pro .min-length-indicator.sufficient,
.humanizer-form-section .min-length-indicator.sufficient {
    color: #10b981 !important;
    font-weight: 600 !important;
}

.ai-humanizer-pro .min-length-indicator.minimum,
.humanizer-form-section .min-length-indicator.minimum {
    color: #f59e0b !important;
    font-weight: 600 !important;
}

.ai-humanizer-pro .min-length-indicator.insufficient,
.humanizer-form-section .min-length-indicator.insufficient {
    color: #ef4444 !important;
    font-weight: 600 !important;
}

/* Override any conflicting styles */
.ai-humanizer-pro .text-stats span,
.humanizer-form-section .text-stats span {
    color: inherit !important;
}

/* Ensure stats container styling */
.ai-humanizer-pro .text-stats-container,
.humanizer-form-section .text-stats-container {
    margin-top: 8px !important;
}

/* Additional overrides for sample text styling */
.ai-humanizer-pro .sample-text-label,
.humanizer-form-section .sample-text-label {
    color: #f1f5f9 !important;
    font-weight: 600 !important;
    margin-bottom: 10px !important;
    font-size: 0.9rem !important;
}

/* Force sample button styling */
button.sample-btn,
a.sample-btn,
.sample-btn {
    background: linear-gradient(135deg, #475569 0%, #334155 100%) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    border-radius: 20px !important;
    padding: 8px 16px !important;
    font-size: 0.8rem !important;
    margin: 4px !important;
    transition: all 0.3s ease !important;
}

button.sample-btn:hover,
a.sample-btn:hover,
.sample-btn:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3) !important;
    border-color: transparent !important;
}

.help-text {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.5;
}

/* Humanization Options - Dark Theme */
.humanization-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
    padding: 20px;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

@media (max-width: 768px) {
    .humanization-options {
        grid-template-columns: 1fr;
    }
}

.option-group {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: #cbd5e1;
    position: relative;
    padding-left: 35px;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: auto;
    margin: 0;
    accent-color: #8b5cf6;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: rgba(15, 23, 42, 0.8);
    border: 2px solid rgba(148, 163, 184, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.checkbox-label:hover .checkmark {
    border-color: #8b5cf6;
}

.checkbox-label input:checked ~ .checkmark {
    background-color: #8b5cf6;
    border-color: #8b5cf6;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

/* Enhanced Button Styling */
.humanize-button {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
}

.humanize-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.5);
}

.humanize-button:disabled {
    background: #475569;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

.humanize-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.humanize-button:hover::before {
    left: 100%;
}

/* Results Section - Dark Theme */
.results-section {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-left: 5px solid #8b5cf6;
    animation: fadeInUp 0.5s ease-out;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(148, 163, 184, 0.2);
}

.results-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #f1f5f9;
}

.improvement-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.improvement-badge.excellent {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.improvement-badge.significant {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.improvement-badge.good {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.improvement-badge.moderate {
    background: rgba(202, 138, 4, 0.2);
    color: #ca8a04;
    border: 1px solid rgba(202, 138, 4, 0.3);
}

.improvement-badge.minimal {
    background: rgba(107, 114, 128, 0.2);
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

/* Tab System - Dark Theme */
.comparison-section {
    margin-bottom: 30px;
}

.comparison-header {
    display: flex;
    border-bottom: 2px solid rgba(148, 163, 184, 0.2);
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: #94a3b8;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #8b5cf6;
    border-bottom-color: #8b5cf6;
}

.tab-btn:hover {
    color: #8b5cf6;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Text Containers - Dark Theme */
.text-container {
    border: 2px solid rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    background: rgba(15, 23, 42, 0.6);
}

.text-container.humanized-text {
    border-color: #10b981;
    background: rgba(30, 58, 138, 0.2);
}

.text-container.original-text {
    border-color: #6b7280;
    background: rgba(30, 41, 59, 0.5);
}

.text-header {
    padding: 15px 20px;
    background: rgba(30, 41, 59, 0.5);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-container.humanized-text .text-header {
    background: rgba(30, 58, 138, 0.3);
    border-bottom-color: rgba(59, 130, 246, 0.3);
}

.text-header h4 {
    margin: 0;
    color: #f1f5f9;
    font-size: 1.1rem;
}

.text-metrics {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: #94a3b8;
}

.metric {
    white-space: nowrap;
}

.text-content {
    padding: 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: #cbd5e1;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Side by Side Comparison - Dark Theme */
.side-by-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .side-by-side {
        grid-template-columns: 1fr;
    }
}

.original-side, .humanized-side {
    border: 2px solid rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.6);
}

.humanized-side {
    border-color: #10b981;
    background: rgba(30, 58, 138, 0.2);
}

.original-side {
    border-color: #6b7280;
    background: rgba(30, 41, 59, 0.5);
}

.original-side h4, .humanized-side h4 {
    margin: 0;
    padding: 15px 20px;
    background: rgba(30, 41, 59, 0.5);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 1.1rem;
    color: #f1f5f9;
}

.humanized-side h4 {
    background: rgba(30, 58, 138, 0.3);
    border-bottom-color: rgba(59, 130, 246, 0.3);
}

.original-side .text-content, .humanized-side .text-content {
    padding: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
    max-height: 400px;
    overflow-y: auto;
    color: #cbd5e1;
}

/* Detailed Analysis - Dark Theme */
.detailed-analysis {
    background: rgba(30, 41, 59, 0.5);
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.detailed-analysis h4 {
    margin: 0 0 20px 0;
    color: #f1f5f9;
    font-size: 1.3rem;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .analysis-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .analysis-grid {
        grid-template-columns: 1fr;
    }
}

.analysis-item {
    background: rgba(15, 23, 42, 0.6);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid rgba(148, 163, 184, 0.2);
    transition: transform 0.3s ease;
}

.analysis-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.2);
}

.analysis-label {
    display: block;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 5px;
    font-weight: 500;
}

.analysis-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #f1f5f9;
}

.analysis-value.positive {
    color: #10b981;
}

.analysis-value.neutral {
    color: #94a3b8;
}

.analysis-value.level-excellent {
    color: #10b981;
}

.analysis-value.level-significant {
    color: #3b82f6;
}

.analysis-value.level-good {
    color: #f59e0b;
}

.analysis-value.level-moderate {
    color: #ca8a04;
}

.analysis-value.level-minimal {
    color: #6b7280;
}

/* Readability Comparison - Dark Theme */
.readability-comparison {
    background: rgba(15, 23, 42, 0.6);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.readability-comparison h5 {
    margin: 0 0 15px 0;
    color: #f1f5f9;
    font-size: 1.1rem;
}

.readability-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.readability-bar {
    margin-bottom: 15px;
}

.readability-bar label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 8px;
}

.bar-container {
    position: relative;
    background: rgba(71, 85, 105, 0.5);
    height: 24px;
    border-radius: 12px;
    overflow: hidden;
}

.bar {
    height: 100%;
    border-radius: 12px;
    transition: width 1s ease;
    position: relative;
}

.original-bar {
    background: linear-gradient(90deg, #6b7280 0%, #9ca3af 100%);
}

.humanized-bar {
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}

.bar-value {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Action Buttons - Dark Theme */
.results-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.action-btn {
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.primary-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.secondary-btn {
    background: rgba(71, 85, 105, 0.5);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.secondary-btn:hover {
    background: rgba(71, 85, 105, 0.8);
    border-color: #8b5cf6;
    transform: translateY(-1px);
}

.outline-btn {
    background: transparent;
    color: #8b5cf6;
    border: 2px solid #8b5cf6;
}

.outline-btn:hover {
    background: #8b5cf6;
    color: white;
    transform: translateY(-1px);
}

.action-btn.success {
    background: #10b981 !important;
    color: white !important;
    border-color: #10b981 !important;
}

/* Loading Section - Dark Theme */
.loading-section {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
}

.loading-content {
    max-width: 400px;
    margin: 0 auto;
}

.loading-content h3 {
    color: #f1f5f9;
    margin: 20px 0 10px 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.loading-content p {
    color: #94a3b8;
    margin-bottom: 30px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(71, 85, 105, 0.5);
    border-top: 4px solid #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.step {
    padding: 12px 20px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 8px;
    color: #94a3b8;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.step.active {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    border-left: 4px solid #8b5cf6;
}

.step.completed {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border-left: 4px solid #10b981;
}

.step.completed::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #10b981;
    font-weight: bold;
}

/* Error Section - Dark Theme */
.error-section {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    animation: fadeInUp 0.4s ease-out;
}

.error-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.error-icon {
    font-size: 1.5rem;
    color: #ef4444;
    flex-shrink: 0;
}

.error-text {
    flex: 1;
}

.error-text h4 {
    margin: 0 0 8px 0;
    color: #fca5a5;
    font-weight: 700;
}

.error-text p {
    margin: 0 0 15px 0;
    color: #fecaca;
}

/* How It Works Section - Dark Theme */
.how-it-works {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.how-it-works h3 {
    text-align: center;
    color: #f1f5f9;
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 700;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

@media (max-width: 768px) {
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .process-steps {
        grid-template-columns: 1fr;
    }
}

.process-step {
    text-align: center;
    padding: 25px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 12px;
    transition: transform 0.3s ease;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.2);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 auto 15px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.process-step h4 {
    margin: 0 0 10px 0;
    color: #f1f5f9;
    font-size: 1.1rem;
    font-weight: 700;
}

.process-step p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Advanced Features - Dark Theme */
.keyword-suggestions {
    margin-top: 10px;
    padding: 15px;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.keyword-suggestion {
    display: inline-block;
    padding: 6px 12px;
    margin: 3px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid #8b5cf6;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #8b5cf6;
    cursor: pointer;
    transition: all 0.2s ease;
}

.keyword-suggestion:hover {
    background: #8b5cf6;
    color: white;
    transform: translateY(-1px);
}

.keyword-suggestion.selected {
    background: #8b5cf6;
    color: white;
}

.temporary-tip {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(15, 23, 42, 0.95);
    color: #e2e8f0;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    max-width: 300px;
    z-index: 1000;
    animation: slideIn 0.3s ease;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.validation-warning {
    color: #fbbf24;
    font-size: 0.85rem;
    margin-top: 5px;
    padding: 8px 12px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 4px;
    border-left: 4px solid #f59e0b;
}

/* Sample Texts - Dark Theme with Higher Specificity */
.ai-humanizer-pro .sample-texts,
.humanizer-form-section .sample-texts {
    margin: 15px 0 !important;
    padding: 20px !important;
    background: rgba(30, 41, 59, 0.5) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    position: relative;
}

.ai-humanizer-pro .sample-texts::before,
.humanizer-form-section .sample-texts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #8b5cf6 50%, transparent 100%) !important;
    border-radius: 12px 12px 0 0;
}

.ai-humanizer-pro .sample-texts h4,
.ai-humanizer-pro .sample-texts .field-label,
.humanizer-form-section .sample-texts h4,
.humanizer-form-section .sample-texts .field-label {
    color: #f1f5f9 !important;
    font-weight: 600 !important;
    margin-bottom: 12px !important;
    font-size: 0.9rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-humanizer-pro .sample-btn,
.humanizer-form-section .sample-btn,
.sample-texts .sample-btn {
    margin: 4px !important;
    padding: 8px 16px !important;
    background: linear-gradient(135deg, #475569 0%, #334155 100%) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    color: #cbd5e1 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}

.ai-humanizer-pro .sample-btn:hover,
.humanizer-form-section .sample-btn:hover,
.sample-texts .sample-btn:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3) !important;
    border-color: transparent !important;
}

.ai-humanizer-pro .sample-btn:active,
.humanizer-form-section .sample-btn:active,
.sample-texts .sample-btn:active {
    transform: translateY(0) !important;
}

/* Enhanced scrollbar styling */
.ai-humanizer-pro ::-webkit-scrollbar {
    width: 8px;
}

.ai-humanizer-pro ::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 4px;
}

.ai-humanizer-pro ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    border-radius: 4px;
}

.ai-humanizer-pro ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7c3aed, #0891b2);
}

/* Focus states for better accessibility */
.ai-humanizer-pro button:focus,
.ai-humanizer-pro select:focus,
.ai-humanizer-pro textarea:focus,
.ai-humanizer-pro input:focus {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
}

/* Selection styling */
.ai-humanizer-pro ::selection {
    background: rgba(139, 92, 246, 0.3);
    color: #f1f5f9;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .ai-humanizer-pro {
        margin: 0 -15px;
        border-radius: 0;
    }
    
    .humanizer-form-section,
    .results-section {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .ai-humanizer-pro {
        padding: 15px;
        margin: 0 -20px;
        border-radius: 0;
    }
    
    .humanizer-header {
        padding: 30px 20px;
    }
    
    .humanizer-header h2 {
        font-size: 2rem;
    }
    
    .humanizer-form-section,
    .results-section {
        padding: 25px;
    }
    
    .results-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .analysis-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .usage-display {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    .text-stats {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .comparison-header {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .humanizer-header h2 {
        font-size: 1.75rem;
    }
    
    .humanizer-description {
        font-size: 1rem;
    }
    
    .humanize-button {
        padding: 16px 24px;
        font-size: 16px;
    }
    
    .humanizer-textarea,
    .styled-select,
    .keyword-input {
        padding: 14px 16px;
        font-size: 16px;
    }
    
    .action-btn {
        padding: 12px 16px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
    
    .form-group {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
}

/* Print styles */
@media print {
    .ai-humanizer-pro {
        background: white;
        color: black;
        box-shadow: none;
    }
    
    .loading-section,
    .error-section,
    .results-actions,
    .sample-texts,
    .keyword-suggestions {
        display: none !important;
    }
    
    .humanizer-form-section,
    .results-section {
        background: white;
        border: 1px solid #ccc;
        box-shadow: none;
    }
    
    .humanizer-header {
        background: #f5f5f5;
        color: black;
    }
    
    .text-content,
    .analysis-value,
    .text-header h4 {
        color: black !important;
    }
}