/* Jupyter Playground Styles */

.jupyter-playground {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin: 25px 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.jupyter-playground h3 {
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
    font-size: 1.5em;
}

.playground-example {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.playground-example h4 {
    color: #4fd1c7;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.example-description {
    color: #e2e8f0;
    margin-bottom: 15px;
    font-style: italic;
    line-height: 1.5;
}

.code-playground {
    background: #1a202c;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #4a5568;
}

.playground-header {
    background: #2d3748;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #4a5568;
}

.playground-header span {
    color: #4fd1c7;
    font-weight: 600;
}

.playground-actions {
    display: flex;
    gap: 8px;
}

.playground-actions button {
    background: #48bb78;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.playground-actions button:hover {
    background: #38a169;
    transform: translateY(-1px);
}

.load-example-btn {
    background: #ed8936 !important;
}

.load-example-btn:hover {
    background: #dd7724 !important;
}

.run-jupyter-btn {
    background: #667eea !important;
}

.run-jupyter-btn:hover {
    background: #5a67d8 !important;
}

.code-editor {
    width: 100%;
    background: #1a202c;
    color: #e2e8f0;
    border: none;
    padding: 15px;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    min-height: 300px;
    outline: none;
}

.code-editor:focus {
    background: #2d3748;
}

.playground-footer {
    background: #2d3748;
    padding: 12px 15px;
    display: flex;
    gap: 10px;
    border-top: 1px solid #4a5568;
    flex-wrap: wrap;
}

.playground-footer button {
    background: #4a5568;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.playground-footer button:hover {
    background: #718096;
    transform: translateY(-1px);
}

.copy-code-btn {
    background: #38b2ac !important;
}

.copy-code-btn:hover {
    background: #319795 !important;
}

.clear-code-btn {
    background: #e53e3e !important;
}

.clear-code-btn:hover {
    background: #c53030 !important;
}

.save-code-btn {
    background: #3182ce !important;
}

.save-code-btn:hover {
    background: #2c5aa0 !important;
}

.jupyter-integration {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.jupyter-integration h4 {
    color: #4fd1c7;
    margin-bottom: 10px;
}

.jupyter-integration p {
    color: #e2e8f0;
    margin-bottom: 15px;
    line-height: 1.5;
}

.jupyter-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
}

.jupyter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .jupyter-playground {
        padding: 15px;
        margin: 15px 0;
    }
    
    .playground-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .playground-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .playground-actions button {
        flex: 1;
        min-width: 0;
    }
    
    .playground-footer {
        flex-direction: column;
    }
    
    .playground-footer button {
        width: 100%;
    }
    
    .code-editor {
        font-size: 12px;
        min-height: 250px;
    }
}

/* Code syntax highlighting simulation */
.code-editor {
    tab-size: 4;
    -moz-tab-size: 4;
}

/* Scrollbar styling for code editor */
.code-editor::-webkit-scrollbar {
    width: 8px;
}

.code-editor::-webkit-scrollbar-track {
    background: #2d3748;
}

.code-editor::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 4px;
}

.code-editor::-webkit-scrollbar-thumb:hover {
    background: #718096;
}
