/* تنسيق عام للجداول */
.table {
    width: 100%;
    margin-bottom: 1rem;
    background-color: transparent;
    border-collapse: collapse;
}

/* تنسيق رؤوس الأعمدة */
.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
    background-color: #f8f9fa;
    padding: 0.75rem;
    font-weight: 600;
}

/* تنسيق خلايا الجدول */
.table td {
    padding: 0.75rem;
    vertical-align: middle;
    border-top: 1px solid #dee2e6;
}

/* تنسيق عمود الإجراءات */
.table .actions-column {
    width: 180px;
    min-width: 180px;
    max-width: 180px;
    text-align: center;
    white-space: nowrap;
}

/* تنسيق أزرار الإجراءات */
.table .actions-column .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    margin: 0 2px;
}

/* تنسيق أزرار الإجراءات في الصفوف */
.table .actions-column .btn-group {
    display: flex;
    justify-content: center;
    gap: 4px;
}

/* تنسيق الجدول في وضع التجاوب */
@media (max-width: 768px) {
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table .actions-column {
        position: sticky;
        right: 0;
        background-color: #fff;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
        z-index: 1;
    }
}

/* تنسيقات خاصة بجدول المستويات الدراسية */
.table.table-striped thead.table-dark th {
    background-color: #2c3e50;
    color: white;
    border-color: #34495e;
}

.table.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05);
}

.table.table-striped tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.075);
}

/* تنسيقات التعديل المباشر */
.editable {
    cursor: pointer;
    position: relative;
}

.editable:hover {
    background-color: #f8f9fa;
}

.editable:hover::after {
    content: '\f303';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 0.875rem;
}

.editable input {
    width: 100%;
    padding: 0.375rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    font-size: 1rem;
    line-height: 1.5;
}

.editable input:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
} 