/* Global text size increase (2 points larger) */
body {
    font-size: 1rem; /* Increased from default 0.875rem */
}

p, span, div, li, td, th, label, input, textarea, select, button {
    font-size: 1rem !important;
}

.btn {
    font-size: 1rem !important;
}

.form-control, .form-select {
    font-size: 1rem !important;
}

.card-text, .card-body p {
    font-size: 1rem !important;
}

.navbar-nav .nav-link {
    font-size: 1rem !important;
}

.dropdown-item {
    font-size: 1rem !important;
}

/* Increased H1 and H2 header sizes */
h1 {
    font-size: 3.25rem !important;
}

h2 {
    font-size: 2.25rem !important;
}

h3 {
    font-size: 1.5rem !important;
}

h4 {
    font-size: 1.25rem !important;
}

h5 {
    font-size: 1.1rem !important;
}

h6 {
    font-size: 1rem !important;
}

/* Dashboard document filenames styling */
.list-group-item h3 {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
}

/* Pricing card headers styling */
.card-header h2 {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
}

/* Contact card titles styling */
.card-body h4.card-title {
    font-size: 1rem !important;
    font-weight: 600 !important;
}

/* Additional custom styles */
.ai-stars-icon {
    color: #ffd700; /* Gold color */
}

/* Enhanced button loading state */
.btn-checking {
    background: linear-gradient(45deg, #007bff, #0056b3);
    background-size: 200% 200%;
    animation: gradient-shift 2s ease infinite;
    position: relative;
    overflow: hidden;
}

.btn-checking::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.btn-checking .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.file-upload-container {
    border: 2px dashed var(--bs-border-color);
    border-radius: 5px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
}

.file-upload-container:hover, 
.file-upload-container.drag-over {
    border-color: var(--bs-primary);
    background-color: rgba(var(--bs-primary-rgb), 0.05);
}

.drag-text {
    display: block;
    margin-top: 0.5rem;
}

.result-textarea {
    min-height: 300px;
    font-family: monospace;
    transition: all 0.2s ease;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    overflow-x: hidden;
}

.footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bs-border-color);
}

/* File info badge styling */
.file-info {
    background-color: var(--bs-dark);
    border: 1px solid var(--bs-border-color);
}

/* Settings container */
.settings-container {
    background-color: rgba(var(--bs-dark-rgb), 0.3);
    border: 1px solid var(--bs-border-color);
}

/* Fix for settings boxes overflow */
.settings-container .row {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 8px;
    display: flex;
    align-items: stretch;
}

.settings-container .col-md-4 {
    padding-left: 8px;
    padding-right: 8px;
    display: flex;
    flex-direction: column;
}

.settings-container .card {
    margin-bottom: 2px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Problems banner styling */
.problems-banner {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.problems-banner h3 {
    color: #495057;
    font-weight: 600;
}

.problem-item {
    padding: 0.5rem;
}

.problem-emoji {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.problem-item strong {
    color: #dc3545;
    font-size: 0.95rem;
}

.problem-item small {
    color: #6c757d;
    font-size: 0.8rem;
}

[data-bs-theme="dark"] .problems-banner {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 1px solid #4a5568;
}

[data-bs-theme="dark"] .problems-banner h3 {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .problem-item strong {
    color: #fca5a5;
}

[data-bs-theme="dark"] .problem-item small {
    color: #a0aec0;
}

/* Why Choose section styling */
.why-choose-section {
    padding: 2rem;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.03) 0%, rgba(220, 53, 69, 0.03) 100%);
    position: relative;
    overflow: hidden;
}

.why-choose-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0d6efd 0%, #6610f2 25%, #d63384 50%, #dc3545 75%, #fd7e14 100%);
    border-radius: 16px 16px 0 0;
}

[data-bs-theme="dark"] .why-choose-section {
    border: 2px solid #4a5568;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(220, 53, 69, 0.1) 100%);
}

/* Problems section on pricing page styling */
.problems-section-pricing {
    padding: 2.5rem;
    border: 3px solid #4a5568;
    border-radius: 20px;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.problems-section-pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #dc3545 0%, #fd7e14 25%, #ffc107 50%, #28a745 75%, #007bff 100%);
    border-radius: 20px 20px 0 0;
}

.problems-section-pricing h2 {
    color: #e2e8f0;
    font-weight: 700;
    margin-bottom: 2rem;
}

.problems-section-pricing .problem-card {
    background: rgba(45, 55, 72, 0.5);
    border: 1px solid #4a5568;
    color: #e2e8f0;
}

.problems-section-pricing .problem-card h5 {
    color: #fca5a5;
}

.problems-section-pricing .problem-card p {
    color: #cbd5e0;
}

[data-bs-theme="dark"] .problems-section-pricing {
    border: 3px solid #4a5568;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

[data-bs-theme="dark"] .problems-section-pricing h2 {
    color: #e2e8f0;
}

.preset-description,
.ocr-description {
    margin-top: 0.25rem;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* OCR highlight card */
.card.border-info {
    background-color: rgba(13, 110, 253, 0.05);
    transition: all 0.2s ease;
}

.card.border-info:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

/* OCR active badge */
.ocr-active-badge {
    display: inline-block;
    margin-left: 5px;
    font-size: 0.75rem;
    padding: 0.15rem 0.4rem;
    border-radius: 20px;
    background-color: rgba(25, 135, 84, 0.2);
    color: var(--bs-success);
    border: 1px solid var(--bs-success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Stats display */
.stats-container {
    font-size: 0.9rem;
    padding: 0.5rem;
    background-color: rgba(var(--bs-dark-rgb), 0.5);
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

.stats-container .badge {
    font-weight: normal;
}

/* Toggle switch for preview */
.form-switch.preview-toggle {
    padding-left: 2.8em;
    margin-right: 1rem;
}

.form-switch.preview-toggle .form-check-input {
    width: 2.5em;
}

/* Preview container */
.preview-container {
    background-color: var(--bs-dark);
    border-radius: 0.25rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 300px;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.preview-container h1 {
    font-size: 1.75rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.preview-container h2 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.preview-container p {
    margin-bottom: 1rem;
}

.preview-container ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.preview-container * {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.preview-container pre,
.preview-container code {
    white-space: pre-wrap;
    word-break: break-all;
}

.preview-container table {
    table-layout: fixed;
    width: 100%;
}

/* Font size control */
.font-size-control {
    width: 120px;
}

.view-toggle-container {
    display: flex;
    align-items: center;
}

/* Export buttons */
.btn-group {
    flex-wrap: wrap;
    gap: 0.25rem;
}

/* OCR Processing Indicator */
.ocr-processing {
    font-size: 0.8rem;
    color: var(--bs-warning);
    margin-top: 0.5rem;
}

/* Processing Badge for OCR */
.processing-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    background-color: rgba(var(--bs-info-rgb), 0.2);
    border: 1px solid var(--bs-info);
    border-radius: 20px;
}

/* Legal style preview - for numbered headings */
.legal-style .numbered-heading {
    font-family: 'Times New Roman', Times, serif;
    margin-bottom: 0.75rem;
    font-weight: bold;
}

/* Minimal style preview */
.minimal-style {
    max-width: 80ch;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

/* Business style preview */
.business-style p {
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* Legal pages text styling - force white text */
.privacy-content,
.terms-content {
    color: #ffffff !important;
}

.privacy-content *,
.terms-content * {
    color: #ffffff !important;
}

.privacy-content p,
.terms-content p {
    color: #ffffff !important;
}

.privacy-content ul,
.terms-content ul {
    color: #ffffff !important;
}

.privacy-content li,
.terms-content li {
    color: #ffffff !important;
}

/* Language Assistant Styles */
.language-assistant-container {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.language-assistant-container .card {
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.15);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.language-assistant-container .card-header {
    border-bottom: 1px solid rgba(255, 193, 7, 0.2);
}

.language-assistant-container .btn-outline-warning:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.language-assistant-container .btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffb700 100%);
    border: none;
    font-weight: 500;
}

.language-assistant-container .btn-warning:hover {
    background: linear-gradient(135deg, #ffb700 0%, #ffa000 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.language-assistant-container .progress-bar {
    background: linear-gradient(90deg, #ffc107, #ffb700);
}

.language-assistant-container .badge {
    font-size: 0.75rem;
    padding: 0.4em 0.65em;
}

.language-assistant-container .form-select:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

/* Spinning animation for translate button */
.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* AI Writing Assistant Styles */
.ai-writing-assistant-container {
    animation: slideIn 0.3s ease-out;
}

.ai-writing-assistant-container .card {
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
    border: 1px solid rgba(13, 110, 253, 0.3);
}

.ai-writing-assistant-container .card-header {
    border-bottom: 1px solid rgba(13, 110, 253, 0.2);
}

.ai-writing-assistant-container .btn-outline-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

.ai-writing-assistant-container .btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border: none;
    font-weight: 500;
}

.ai-writing-assistant-container .btn-primary:hover {
    background: linear-gradient(135deg, #0b5ed7 0%, #0a58ca 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
}

.ai-writing-assistant-container .progress-bar {
    background: linear-gradient(90deg, #0d6efd, #0b5ed7);
}

.ai-writing-assistant-container .badge {
    font-size: 0.75rem;
    padding: 0.4em 0.65em;
}
