/* =============================================
   Python Playground - استایل‌های ادمین و بارگذاری
   ============================================= */

/* صفحه بارگذاری */
.ppg-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 30, 30, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: opacity 0.5s ease;
}

.ppg-loading-overlay.ppg-hidden {
    opacity: 0;
    pointer-events: none;
}

.ppg-loading-content {
    text-align: center;
    color: var(--ppg-text);
    max-width: 400px;
}

.ppg-loading-content p {
    margin: 8px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ppg-loading-sub {
    color: #666;
    font-size: 12px;
}

.ppg-loading-detail {
    color: #888;
    font-size: 12px;
}

.ppg-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--ppg-border);
    border-top: 3px solid var(--ppg-primary);
    border-radius: 50%;
    animation: ppg-spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes ppg-spin {
    to { transform: rotate(360deg); }
}

.ppg-loading-bar {
    width: 100%;
    height: 4px;
    background: var(--ppg-border);
    border-radius: 2px;
    margin: 16px 0;
    overflow: hidden;
}

.ppg-loading-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ppg-primary), var(--ppg-success));
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
}

/* اسکرول‌بار */
.ppg-output::-webkit-scrollbar,
.ppg-code-editor::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.ppg-output::-webkit-scrollbar-track,
.ppg-code-editor::-webkit-scrollbar-track {
    background: #1e1e1e;
}

.ppg-output::-webkit-scrollbar-thumb,
.ppg-code-editor::-webkit-scrollbar-thumb {
    background: #424242;
    border-radius: 4px;
}

.ppg-output::-webkit-scrollbar-thumb:hover,
.ppg-code-editor::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* صفحه ادمین */
.ppg-admin-wrap {
    max-width: 900px;
}

.ppg-admin-intro {
    background: #fff;
    padding: 16px 20px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    margin: 16px 0;
}
