* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.subtitle {
    color: #6c757d;
    font-size: 1.1em;
}

/* Pills/Buttons */
.pills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.pill {
    padding: 10px 20px;
    border: 2px solid #dee2e6;
    background-color: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #495057;
}

.pill:hover {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pill.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* Content Area */
.content-area {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.input-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.extra-field {
    margin-bottom: 20px;
}

.extra-field label,
.input-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.extra-field input,
.input-section input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

#mainPrompt {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
    margin-bottom: 20px;
}

/* Tips Section */
.tips-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: fit-content;
}

.tips-section h3 {
    color: #28a745;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.tips-content ul {
    list-style-position: inside;
    color: #6c757d;
}

.tips-content li {
    margin-bottom: 8px;
}

/* Buttons */
.btn-primary {
    background-color: #007bff;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #545b62;
}

/* Editor Page Styles */
.editor-page {
    background: #f0f2f5;
    height: 100vh;
    overflow: hidden;
}

.top-bar {
    background: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-back {
    text-decoration: none;
    color: #007bff;
    font-weight: 500;
}

.btn-publish {
    background-color: #28a745;
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.btn-publish:hover {
    background-color: #218838;
}

/* Editor Container */
.editor-container {
    display: flex;
    height: calc(100vh - 60px);
}

/* Chatbot Panel */
.chatbot-panel {
    width: 350px;
    background: white;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #dee2e6;
}

.chat-header {
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
}

.chat-header h3 {
    font-size: 1.1em;
    color: #495057;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.message {
    margin-bottom: 20px;
}

.message.user {
    text-align: left;
}

.message.bot {
    text-align: left;
}

.message strong {
    color: #007bff;
    display: block;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.message.user strong {
    color: #28a745;
}

.message p {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    margin: 0;
}

.message ul {
    margin: 10px 0;
    padding-left: 20px;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid #dee2e6;
}

.chat-input textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    resize: none;
    font-family: inherit;
    margin-bottom: 10px;
}

.btn-send {
    background-color: #007bff;
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

.btn-send:hover {
    background-color: #0056b3;
}

/* Preview Panel */
.preview-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
}

.preview-header {
    background: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #dee2e6;
}

.preview-actions {
    display: flex;
    gap: 10px;
}

.btn-device {
    padding: 5px 15px;
    border: 1px solid #dee2e6;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-device.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.preview-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.preview-content.mobile-view .sample-page {
    max-width: 375px;
    margin: 0 auto;
}

/* Sample Page Styles */
.sample-page {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sample-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.nav-brand {
    font-weight: bold;
    font-size: 1.2em;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #6c757d;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #007bff;
}

.hero-section {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero-section h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.2em;
    margin-bottom: 10px;
    opacity: 0.95;
}

.hero-description {
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    background: white;
    color: #667eea;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
}

.about-section,
.skills-section,
.contact-section {
    padding: 40px 20px;
}

.about-section h2,
.skills-section h2,
.contact-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.skill-item {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #dee2e6;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: #2c3e50;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #000;
}

.modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #6c757d;
    font-size: 0.875em;
}

.publish-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.publish-info h4 {
    margin-bottom: 10px;
    color: #495057;
}

.publish-info ul {
    list-style-position: inside;
    color: #6c757d;
}

.price-info {
    text-align: center;
    padding: 20px;
    background: #e7f5ff;
    border-radius: 4px;
}

.price {
    font-size: 2em;
    font-weight: bold;
    color: #0c8599;
    margin-bottom: 5px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Progress Page Specific Styles */
.progress-content {
    background: white;
    border-radius: 8px;
    padding: 0;
}

.video-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-overlay {
    text-align: center;
    color: white;
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.play-button:hover {
    background: rgba(255,255,255,0.3);
}

.video-overlay p {
    font-size: 1.5em;
    margin-bottom: 5px;
}

.video-overlay small {
    opacity: 0.9;
}

.help-content {
    padding: 40px;
}

.help-content h2 {
    color: #2c3e50;
    margin-bottom: 30px;
}

.progress-steps {
    margin-bottom: 40px;
}

.step {
    display: flex;
    margin-bottom: 25px;
    opacity: 0.5;
}

.step.completed {
    opacity: 1;
}

.step.active {
    opacity: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #dee2e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    margin-right: 20px;
    flex-shrink: 0;
}

.step.completed .step-number {
    background: #28a745;
}

.step.active .step-number {
    background: #007bff;
}

.step-content h3 {
    color: #495057;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.step-content p {
    color: #6c757d;
    font-size: 0.95em;
}

.quick-actions {
    margin-bottom: 30px;
}

.quick-actions h3 {
    color: #495057;
    margin-bottom: 15px;
}

.action-buttons {
    display: flex;
    gap: 15px;
}

.action-btn {
    flex: 1;
    padding: 20px;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.action-btn:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.action-icon {
    display: block;
    font-size: 2em;
    margin-bottom: 10px;
}

.tips-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
}

.tips-box h4 {
    color: #856404;
    margin-bottom: 10px;
}

.tips-box p {
    color: #856404;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-area {
        grid-template-columns: 1fr;
    }
    
    .editor-container {
        flex-direction: column;
    }
    
    .chatbot-panel {
        width: 100%;
        height: 300px;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }
    
    .nav-links {
        display: none;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}