.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    direction: rtl;
    background: #f4f7fe;
}

/* Sidebar */
.dash-sidebar {
    width: 260px;
    background: #1a237e;
    color: white;
    padding: 20px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.dash-sidebar nav a {
    display: block;
    color: rgba(255,255,255,0.7);
    padding: 12px 15px;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: 0.3s;
}

.dash-sidebar nav a.active, .dash-sidebar nav a:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

/* Main Content */
.dash-content {
    flex: 1;
    padding: 30px;
}

.dash-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 30px;
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
}

.dash-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: right;
    font-size: 0.9rem;
    color: #666;
}

.dash-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

/* Video Admin Grid */
.video-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.video-item {
    border-radius: 10px;
    overflow: hidden;
    background: #eee;
}

.video-item video { width: 100%; height: 120px; object-fit: cover; }

/* Responsive */
@media (max-width: 768px) {
    .dashboard-wrapper { flex-direction: column; }
    .dash-sidebar { width: 100%; height: auto; position: relative; }
}



/* التحكم في ظهور الأقسام */
.dash-section {
    display: none;
}
.dash-section.active {
    display: block;
}

/* تنسيق الـ Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 600px;
    direction: rtl;
}
.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.btn-save { background: var(--primary-color); color: white; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; flex: 1; }
.btn-cancel { background: #eee; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; flex: 1; }

/* تنسيق كروت الفيديوهات في الداشبورد */
.video-item {
    background: #fff;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
}
.video-item video {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 10px;
}
.btn-del {
    background: #ffebee;
    color: #c62828;
    border: none;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
}
/* تنسيق الأزرار العامة في الجدول */
.btn-action {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

/* تنسيق خاص لكلاس الحذف عند دمجه مع btn-action */
.btn-action.delete { 
    color: #d32f2f;       /* اللون الأحمر */
    border-color: #ffcdd2; /* حدود بلون أحمر فاتح */
}

/* تأثير عند تمرير الماوس على زر الحذف */
.btn-action.delete:hover {
    background: #ffebee;
}
/* Container for the buttons inside the modal */
.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 25px;
}

/* Base style for both buttons */
.btn-save, .btn-cancel {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Cairo', sans-serif;
}

/* Save Button - Professional Green/Teal */
.btn-save {
    background-color: #28a745; /* Modern Success Green */
    color: white;
    box-shadow: 0 4px 6px rgba(40, 167, 69, 0.2);
}

.btn-save:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(40, 167, 69, 0.3);
}

/* Cancel Button - Subtle Grey/Red */
.btn-cancel {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.btn-cancel:hover {
    background-color: #dc3545; /* Changes to red on hover to indicate "Stop" */
    color: white;
    border-color: #dc3545;
}

/* Active state (when clicked) */
.btn-save:active, .btn-cancel:active {
    transform: translateY(0);
}