:root {
    --bg-color: #0f172a;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #71F494;
    --code-bg: rgba(0, 0, 0, 0.3);
}
body {
	direction: rtl;
	text-align: right;
}
/* =========================================
   Tabs Component - Glassmorphism Theme
   ========================================= */
.tabs-group {
    font-family: inherit;
    width: 100%;
    margin: 30px auto;
}
.tabs-list {
    display: flex;
    flex-wrap: wrap; /* רספונסיביות למובייל */
    gap: 6px; 
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 2; 
}
/* מצב רגיל (טאב לא פעיל) */
.tabs-btn {
    display: flex;
    min-width: 130px;
    min-height: 50px;
    padding: 10px 25px;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.02em;
    border: 1px solid var(--card-border); 
    border-bottom: 1px solid var(--card-border);
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
}
/* אפקט ריחוף עדין */
.tabs-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main); 
}
/* מצב פעיל (הטאב שנבחר) */
.tabs-list > li.active .tabs-btn {
    background: rgba(255, 255, 255, 0.08); /* תואם לתיבת התוכן */
    color: var(--primary);
    border-top: 3px solid var(--primary); 
    border-bottom: 1px solid transparent; /* חיבור נקי לתוכן */
}
/* אזור התוכן */
.tabs-div {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--card-border);
    border-radius: 12px 0 12px 12px;
    padding: 30px;
    margin-top: -1px; 
    color: var(--text-main);
    line-height: 1.6;
    display: none; 
}
.tabs-div.active {
    display: block;
}
.tabs-div h3 {
    margin-top: 0;
    color: #ffffff;
}

@media (max-width: 768px) {
    .tabs-btn {
        flex: 1 1 100%;
        border-radius: 8px;
        border-bottom: 1px solid var(--card-border) !important;
    }
    .tabs-list {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 15px;
    }
    .tabs-div {
        border-radius: 12px;
        margin-top: 0;
    }
}
/* =========================================
   Code Copy Sections Styles
   ========================================= */
.code-copy-box {
    background: var(--code-bg);
    border-radius: 8px;
    border: 1px solid var(--card-border);
    margin-top: 8px;
}
.source-wrapper {
    margin-bottom: 25px;
    text-align: left;
    direction: ltr;
}
.source-header {
	direction: rtl;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 8px 8px 0 0;
    border: 1px solid var(--card-border);
    border-bottom: none;
    font-size: 14px;
    color: var(--text-main);
}
.full-source {
    margin-top: 0;
    border-radius: 0 0 8px 8px;
    padding: 15px;
}
.full-source pre {
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
}
.full-source .code-snippet {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    color: #a5b4fc;
    white-space: pre-wrap;
}
/* Copy Buttons */
.btn-copy {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-copy:hover {
    background: rgba(113, 244, 148, 0.1);
    color: var(--primary);
    border-color: var(--primary);
}
.btn-copy.copied {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}