/*
===============================================================================
UTILITY CLASSES AND HELPERS
===============================================================================

PURPOSE:
Loading spinners, notifications, utility classes, webkit scrollbars

WHEN TO USE THIS FILE:
- When adding/modifying utility classes and helpers
- When working with foundational styling elements
- When loading spinners, notifications, utility classes, webkit scrollbars

LOAD ORDER: This file loads in position 6 of 6
- Loaded after: base, layout, components, auth, pages
- Loaded before: device-specific CSS (mobile.css, desktop.css)

DEPENDENCIES:
- Requires: base.css variables (if not base.css itself)
- Required by: All subsequent CSS files

Generated: 2025-09-04 16:59:11
Original file: common.css (119677 bytes)
===============================================================================
*/

.fade-out {
    opacity: 0;
}

.version {
    font-size: 0.7rem;
    color: var(--text-light);
}

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

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

@keyframes goldBlink {
    0% { background-color: transparent; color: var(--text-primary); }
    50% { background-color: gold; color: black; box-shadow: 0 0 10px gold; }
    100% { background-color: transparent; color: var(--text-primary); }
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

@keyframes statusSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 0.95;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 0.95;
    }
    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.8;
    }
}

@keyframes golden-focus {
    0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 193, 7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

.hidden {
    display: none !important;
}


@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

.trial-offer {
    background: var(--chat-bg);
    border: 2px solid var(--accent-color);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
}

.trial-offer p {
    margin: 0;
    font-weight: 500;
    color: var(--text-primary);
}

.gdpr-modal-content::-webkit-scrollbar {
    width: 16px;
}

.gdpr-modal-content::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 8px;
    border: 1px solid var(--text-light);
}

.gdpr-modal-content::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 8px;
    border: 2px solid var(--border-color);
    min-height: 30px;
}

.gdpr-modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
    border: 2px solid var(--accent-color);
}

@keyframes highlight-fade {
    0% { 
        background: linear-gradient(135deg, rgba(124, 93, 250, 0.2), rgba(124, 93, 250, 0.1));
        transform: scale(1.01);
    }
    100% { 
        background: linear-gradient(135deg, rgba(124, 93, 250, 0.05), rgba(124, 93, 250, 0.02));
        transform: scale(1);
    }
}

.trial-counter {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(124, 93, 250, 0.05);
    border: 1px solid rgba(124, 93, 250, 0.1);
    line-height: 1; /* Force single line height */
    height: auto; /* Prevent extra height */
    min-height: auto; /* No minimum height constraint */
    vertical-align: middle; /* Align with other inline elements */
    flex-shrink: 0; /* Prevent shrinking */
    white-space: nowrap; /* Prevent text wrapping */
}

.trial-counter.premium {
    color: #28a745;
    background: rgba(40, 167, 69, 0.05);
    border-color: rgba(40, 167, 69, 0.1);
}

.trial-counter.low {
    color: #ffc107;
    background: rgba(255, 193, 7, 0.05);
    border-color: rgba(255, 193, 7, 0.1);
}

.trial-counter.critical {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
    border-color: rgba(220, 53, 69, 0.1);
}

.trial-counter-text {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    line-height: 1; /* Single line height */
    white-space: nowrap; /* Prevent text wrapping */
    vertical-align: middle; /* Align with other inline elements */
}

.trial-counter-icon {
    font-size: 14px;
    font-weight: bold;
}

.trial-counter-number {
    font-weight: 600;
}

.trial-counter-label {
    white-space: nowrap;
}

.app-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100000;
    transition: opacity 0.3s ease-out;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 20px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
}

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

.message-avatar {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 5;
    top: 8px;
    /* Create gradient border with box-shadow */
    box-shadow: 0 0 0 2px var(--primary-color);
}

.user-avatar-container {
    right: 8px;
}

.helper-avatar-container {
    left: 8px;
}

.timestamp {
    display: block;
    font-size: 0.7rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.helper-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hamburger-line {
        width: 24px;
        height: 3px;
        background-color: var(--text-primary);
        margin: 2px 0;
        transition: 0.3s;
        border-radius: 2px;
        display: block !important; /* Ensure lines are visible */
    }

.gdpr-data-display {
        font-size: 0.9rem;
        line-height: 1.4;
        word-break: break-word;
        overflow-wrap: break-word;
    }

.splash-logo {
    height: 200px;
    width: auto;
    margin-bottom: 2rem;
}

.golden-animation {
    animation: golden-focus 2s ease-in-out;
}

.dimmed-ui {
    opacity: 0.6;
    pointer-events: none;
}

.clerk-component {
    display: none; /* Hidden by default */
}

.clerk-component.active {
    display: block;
}


.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  z-index: 10010; /* Higher z-index to appear above mobile tabs and other elements */
  min-width: 120px;
  max-height: 200px; /* Ensure it has enough height */
  overflow-y: auto; /* Allow scrolling if needed */
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: none;
  margin-top: 4px;
  padding: 2px;
  border: 1px solid var(--border-color);
}

.language-dropdown.active {
  display: block;
}

.language-dropdown .language-option {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  padding: 8px 12px !important; /* Increased padding for better visibility */
  cursor: pointer !important;
  border-radius: var(--radius-sm) !important;
  transition: all 0.2s ease !important;
  font-size: 0.9rem !important;
  min-height: 32px !important; /* Increased height for better touch targets */
  margin-bottom: 2px !important; /* Increased margin for separation */
  flex-direction: row !important;
  background-color: transparent !important; /* Ensure background is visible */
}

.language-dropdown .language-option:last-child {
  margin-bottom: 0 !important;
}

.language-dropdown .language-option .language-flag {
  font-size: 1.6rem !important; /* Slightly smaller flag for better alignment */
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: middle !important;
  transform: translateY(-1px) !important; /* Slight upward adjustment to compensate for emoji baseline */
}

.language-dropdown .language-option .language-name {
  font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  line-height: 1.2 !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: middle !important;
}

.language-dropdown .language-option:hover {
  background-color: rgba(71, 163, 243, 0.1) !important;
  color: #1E6BB8 !important;
  transform: none !important;
}

.language-select-wrapper .language-dropdown .language-option:hover {
  background-color: rgba(71, 163, 243, 0.1) !important;
  color: #1E6BB8 !important;
  transform: none !important;
}

.help-overlay {
    position: fixed; /* Change to fixed for better positioning */
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 0.9rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    max-width: 260px;
    text-align: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(5px);
}

.help-overlay.visible {
    opacity: 1;
    transform: translateY(0);
}

.help-overlay-instructions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.help-instruction {
    line-height: 1.4;
}

.help-instruction:first-child {
    color: var(--primary-color);
}

.help-instruction:last-child {
    color: var(--error-color);
}

.help-overlay-arrow {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--border-color);
}

.help-overlay-arrow::after {
    content: '';
    position: absolute;
    top: -9px;
    left: -7px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid var(--background-color);
}

.payment-result-content {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-xl);
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.payment-result-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.product-card {
    background: var(--chat-bg);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
    border: 1px solid var(--border-color);
}

.product-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: var(--spacing-md) 0;
    font-family: 'Space Grotesk', sans-serif;
}

.features {
    list-style: none;
    padding: 0;
    margin: var(--spacing-lg) 0;
    text-align: left;
}

.features li {
    padding: var(--spacing-sm) 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.secure-payment {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.secure-payment p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.payment-details {
    margin: 1rem 0;
}

.payment-details h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.next-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.next-steps li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.gdpr-data-display {
    padding: var(--spacing-md);
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
    background: var(--chat-bg);
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: var(--text-primary);
}

.gdpr-actions {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-lg);
}

.gdpr-error {
    text-align: center;
    padding: var(--spacing-lg);
    color: var(--text-secondary);
}

.gdpr-error p {
    margin-bottom: var(--spacing-lg);
    line-height: 1.5;
}

.payment-details {
    background: var(--chat-bg);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
    text-align: left;
}

.payment-details h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    padding: var(--spacing-sm) 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.support-info {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.support-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: var(--spacing-sm) 0;
}

.session-id {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.8rem !important;
    background: var(--chat-bg);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    margin-top: var(--spacing-sm) !important;
}

.product-description {
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.payment-options {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    justify-content: center;
}

.payment-option {
    flex: 1;
    background: var(--chat-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    transition: border-color 0.2s ease;
}

.payment-option:hover {
    border-color: var(--accent-color);
}

.duration {
    font-weight: 600;
    color: var(--text-primary);
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.option-details {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.payment-note {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.payment-note p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.limitations-section {
    margin-bottom: var(--spacing-lg);
}

.limitations-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features li {
    padding: var(--spacing-xs) 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.limitations {
    list-style: none;
    padding: 0;
    margin: 0;
}

.limitations li {
    padding: var(--spacing-xs) 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.gdpr-modal-content {
    scrollbar-width: thick;
    scrollbar-color: var(--accent-color) var(--border-color);
}

.gdpr-modal-content {
    position: relative;
}

.gdpr-modal-content::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 16px;
    height: 100%;
    background: linear-gradient(to right, transparent, var(--border-color));
    pointer-events: none;
    opacity: 0.3;
}

.payment-result-content {
    max-width: 500px;
    width: 100%;
    text-align: center;
    background: var(--background-color);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-lg);
}

.payment-details {
    margin-bottom: 2.5rem;
    text-align: left;
}

.payment-details h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.info-list, .next-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li, .next-steps li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
    border-bottom: 1px solid var(--border-color);
}

.info-list li:last-child, .next-steps li:last-child {
    border-bottom: none;
}

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

.support-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.site-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-copyright {
    margin: 0;
    font-size: 0.9rem;
    color: #bdc3c7;
}

.footer-content .version {
    font-size: 0.8rem;
    color: #95a5a6;
    margin: 0;
}

.contents-section {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
}

.contents-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contents-list {
    list-style: disc;
    padding-left: 2rem;
    margin: 0;
}

.contents-list li {
    margin-bottom: 0.5rem;
}

.contents-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.contents-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

h4[id] {
    scroll-margin-top: 80px; /* Account for 60px header + some padding */
}

.who-handles-data-section {
    margin: 1rem 0;
}

.who-handles-data-section h5 {
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-weight: 600;
}

.data-handler-point {
    margin: 1rem 0;
}

.data-handler-point h6 {
    font-size: 1rem;
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
    font-weight: 600;
}

.data-handler-point p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.5;
}

.data-handler-note {
    margin-top: 1rem;
    color: var(--text-primary);
}

#privacy-content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    color: var(--primary-color);
}

#privacy-content h4 {
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem 0;
    color: var(--text-primary);
    font-weight: 600;
}

#terms-content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    color: var(--primary-color);
}

#terms-content h4 {
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem 0;
    color: var(--text-primary);
    font-weight: 600;
}

.disclaimer-text {
    margin: 0;
    color: #856404;
    font-size: 0.95rem;
    line-height: 1.6;
}

#about-content h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

#about-content h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

#about-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.captcha-question {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background-color: var(--chat-bg);
    border-radius: var(--radius-sm);
    text-align: center;
}

