/* Remove the @import and copy all styles from research.css */
:root {
    --editor-bg: #f8fafc;
    --editor-border: #e2e8f0;
    --nav-height: 60px;
    --primary-color: #7c3aed;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation Styles */
.top-nav {
    height: var(--nav-height);
    background-color: white;
    border-bottom: 1px solid var(--editor-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-brand {
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-link {
    color: #64748b;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-link:hover {
    background-color: var(--editor-bg);
}

.nav-link.active {
    color: var(--primary-color);
    background-color: var(--editor-bg);
}

/* Main Content Layout */
.main-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    padding: 2rem;
    margin-top: var(--nav-height);
    height: calc(100vh - var(--nav-height));
}

/* Left Panel Styles */
.left-panel {
    background-color: #ffffff !important;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    height: 100%;
    position: relative;
    border: 1px solid #e2e8f0;
}

.panel-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    padding: 1.5rem;
}

/* Right Panel Styles */
.right-panel {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

/* Editor Styles */
.editor-header {
    padding: 1rem;
    border-bottom: 2px solid var(--editor-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--editor-bg);
}

.editor-actions {
    display: flex;
    gap: 0.5rem;
}

.icon-button {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
    border-radius: 6px;
}

.icon-button:hover {
    background-color: #f1f5f9;
}

.editor-container {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
}

.editor {
    padding: 1.5rem;
    min-height: 100%;
    outline: none;
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
    font-size: 0.95rem;
    white-space: pre-wrap;
    background-color: var(--editor-bg);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #334155 !important;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background-color: #ffffff !important;
    color: #1e293b !important;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
}

.input-help {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.25rem;
    display: block;
}

/* Button Styles */
.blue-gradient-button {
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.blue-gradient-button:hover {
    transform: translateY(-1px);
}

/* Add these styles for disabled button state */
.blue-gradient-button:disabled {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    cursor: not-allowed;
    transform: none;
    opacity: 0.7;
}

/* Loading Styles */
.loading-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    z-index: 1000;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
        height: auto;
        margin-top: 1rem;
    }
    
    .left-panel, .right-panel {
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    .left-panel {
        position: relative;
        padding: 1rem;
    }
    
    .right-panel {
        position: relative;
        margin-top: 1rem;
        height: 500px !important;
    }
    
    .panel-content {
        position: relative !important;
        padding: 1rem;
        overflow: visible;
    }

    .editor-container {
        position: relative !important;
        top: 0 !important;
        height: 450px !important;
    }
}

/* Additional optimization for very small screens */
@media (max-width: 480px) {
    .main-content {
        padding: 0.5rem;
    }
    
    .panel-content {
        padding: 0.75rem;
    }
    
    .form-group input,
    .form-group select {
        font-size: 16px; /* Prevent auto-zoom on iOS */
    }
}

/* Add styles for the gradient title */
.heading-container {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.heading-container h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1e293b !important;
    font-weight: 600;
}

.heading-container h2.gradient {
    font-size: 1.1rem;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 400;
}

/* Add loading animation styles that were missing */
.loading {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.loading span {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: bounce 0.5s alternate infinite;
}

.loading span:nth-child(2) { animation-delay: 0.1s; }
.loading span:nth-child(3) { animation-delay: 0.2s; }

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-8px); }
} 