/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    text-align: center;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
}

.logo {
    height: 80px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

.header-content {
    text-align: center;
}

.header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header p {
    font-size: 1rem;
    color: #718096;
    font-weight: 400;
}

/* Wisdom Weave branding */
.wisdom-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.wisdom-branding:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.9);
}

.wisdom-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.powered-by {
    font-size: 0.875rem;
    font-weight: 500;
    color: #4a5568;
    letter-spacing: 0.025em;
    font-family: 'Inter', sans-serif;
}

/* Main content layout */
.main-content {
    display: flex;
    flex: 1;
    gap: 1.5rem;
    padding: 1rem;
    max-height: calc(100vh - 100px);
    overflow: hidden;
}

/* Form column */
.form-column {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow-y: auto;
    max-height: 100%;
}

/* Preview column */
.preview-column {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    max-height: 100%;
}

/* Scrollbar styling */
.form-column::-webkit-scrollbar,
.preview-column::-webkit-scrollbar {
    width: 8px;
}

.form-column::-webkit-scrollbar-track,
.preview-column::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.form-column::-webkit-scrollbar-thumb,
.preview-column::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 4px;
}

.form-column::-webkit-scrollbar-thumb:hover,
.preview-column::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.7);
}

/* Responsive design */
@media (max-width: 1200px) {
    .main-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .form-column,
    .preview-column {
        flex: none;
        max-height: 50vh;
    }
    
    .header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .logo {
        height: 65px;
        max-width: 180px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .wisdom-branding {
        margin-top: 0.75rem;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }

    .wisdom-logo {
        height: 28px;
    }

    .powered-by {
        font-size: 0.8rem;
    }
    
    .main-content {
        padding: 0.5rem;
    }
    
    .form-column,
    .preview-column {
        padding: 1rem;
        border-radius: 15px;
    }
}

/* Compact layout for smaller screens */
@media (max-height: 800px) {
    .header {
        padding: 0.75rem 2rem;
        gap: 0.5rem;
    }
    
    .logo {
        height: 55px;
        max-width: 140px;
    }
    
    .header h1 {
        font-size: 1.8rem;
        margin-bottom: 0.2rem;
    }
    
    .header p {
        font-size: 0.9rem;
    }

    .wisdom-branding {
        margin-top: 0.5rem;
        padding: 0.5rem 1rem;
    }

    .wisdom-logo {
        height: 24px;
    }

    .powered-by {
        font-size: 0.75rem;
    }
    
    .main-content {
        padding: 0.75rem;
        gap: 1rem;
    }
    
    .form-column,
    .preview-column {
        padding: 1rem;
    }
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    margin: 15% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.3s ease;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #f56565, #e53e3e);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-body {
    padding: 2rem 1.5rem 1rem;
    text-align: center;
}

.modal-body p {
    margin: 0 0 1rem 0;
    color: #2d3748;
    font-size: 1rem;
    line-height: 1.5;
}

.modal-note {
    color: #718096 !important;
    font-size: 0.9rem !important;
    font-style: italic;
}

.modal-actions {
    padding: 1rem 1.5rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-actions .btn {
    min-width: 100px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

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

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

/* Loading Modal Styles */
.loading-content {
    text-align: center;
    padding: 40px 30px;
}

.loading-content h3 {
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.loading-content p {
    color: #718096;
    margin-bottom: 25px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3182ce, #63b3ed);
    border-radius: 4px;
    animation: progressFill 2s ease-in-out infinite;
    width: 0%;
}

@keyframes progressFill {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Success Modal Styles */
.success-content {
    text-align: center;
    padding: 40px 30px;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: successBounce 0.6s ease-out;
}

@keyframes successBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.success-content h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.success-content p {
    color: #718096;
    margin-bottom: 25px;
    line-height: 1.6;
} 