/* Source: الواجهة/TableStyles.html (flattened)
   Extracted: Phase 6 Sub-section 1 */
/* =================================================================
    // SECTION: Table Styles - أنماط الجداول
    // ================================================================= */

    .table-responsive {
        overflow-x: auto;
        margin: 2rem 0;
        border-radius: 15px;
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .teachers-table {
        width: 100%;
        border-collapse: collapse;
        color: var(--text-light);
        font-size: 0.95rem;
    }

    .teachers-table th {
        background: linear-gradient(135deg, rgba(33, 150, 243, 0.3), rgba(0, 188, 212, 0.3));
        padding: 15px 12px;
        text-align: center;
        font-weight: 600;
        border-bottom: 2px solid var(--glass-border);
        white-space: nowrap;
        transition: all 0.3s ease;
    }

    .teachers-table th:hover {
        background: rgba(255, 255, 255, 0.2) !important;
        transform: scale(1.05);
    }

    .teachers-table td {
        padding: 12px 10px;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        vertical-align: middle;
    }

    .teachers-table .even-row {
        background: rgba(255, 255, 255, 0.05);
    }

    .teachers-table .odd-row {
        background: rgba(255, 255, 255, 0.02);
    }

    .teachers-table tbody tr {
        transition: all 0.3s ease;
    }

    .teachers-table tbody tr:hover {
        background: rgba(255, 255, 255, 0.15) !important;
        transform: translateY(-2px) scale(1.01);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }

    .gender-badge {
        display: inline-block;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 600;
        text-align: center;
        min-width: 80px;
    }

    .gender-badge.male {
        background: linear-gradient(135deg, #1e3a8a, #1e40af);
        color: white;
    }

    .gender-badge.female {
        background: linear-gradient(135deg, #E91E63, #C2185B);
        color: white;
    }

    /* Dynamic Table Header Styles */
    .date-header {
        background: linear-gradient(135deg, rgba(76, 175, 80, 0.3), rgba(139, 195, 74, 0.3)) !important;
    }

    .time-header {
        background: linear-gradient(135deg, rgba(255, 193, 7, 0.3), rgba(255, 152, 0, 0.3)) !important;
    }

    .name-header {
        background: linear-gradient(135deg, rgba(156, 39, 176, 0.3), rgba(233, 30, 99, 0.3)) !important;
    }

    .language-header {
        background: linear-gradient(135deg, rgba(0, 188, 212, 0.3), rgba(0, 150, 136, 0.3)) !important;
    }

    .gender-header {
        background: linear-gradient(135deg, rgba(255, 87, 34, 0.3), rgba(255, 61, 0, 0.3)) !important;
    }

    .age-header {
        background: linear-gradient(135deg, rgba(121, 85, 72, 0.3), rgba(93, 64, 55, 0.3)) !important;
    }

    .country-header {
        background: linear-gradient(135deg, rgba(158, 158, 158, 0.3), rgba(117, 117, 117, 0.3)) !important;
    }

    .phone-header {
        background: linear-gradient(135deg, rgba(96, 125, 139, 0.3), rgba(69, 90, 100, 0.3)) !important;
    }

    .account-header {
        background: linear-gradient(135deg, rgba(63, 81, 181, 0.3), rgba(49, 27, 146, 0.3)) !important;
    }

    /* Dynamic Table Cell Styles */
    .date-cell {
        color: #4CAF50 !important;
        font-weight: 600;
    }

    .time-cell {
        color: #FF9800 !important;
        font-weight: 600;
    }

    .language-cell {
        color: #1e40af !important;
        font-weight: 600;
    }

    .age-cell {
        color: #795548 !important;
        font-weight: 600;
    }

    .country-cell {
        color: #9E9E9E !important;
        font-weight: 600;
    }

    .phone-cell {
        color: #607D8B !important;
        font-weight: 600;
    }

    .account-cell {
        color: #3F51B5 !important;
        font-weight: 600;
    }

    /* أنماط أزرار الإجراءات في الجدول */
    .table-actions {
        display: flex;
        gap: 5px;
        justify-content: flex-end;
    }

    .table-btn {
        padding: 6px 10px;
        border-radius: 5px;
        font-size: 0.85rem;
        min-width: unset;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        transition: all 0.2s ease-in-out;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        border: none;
        cursor: pointer;
        white-space: nowrap;
        font-weight: 600;
        color: white;
    }

    .table-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    }

    .table-btn:active {
        transform: translateY(0);
    }

    .table-btn-delete {
        background: linear-gradient(45deg, #e53e3e, #f56565);
    }

    .table-btn-delete:hover {
        background: linear-gradient(45deg, #c53030, #e53e3e);
    }

    .table-btn-reset {
        background: linear-gradient(45deg, #4a5568, #718096);
    }

    .table-btn-reset:hover {
        background: linear-gradient(45deg, #2d3748, #4a5568);
    }

    .table-btn-icon {
        font-size: 1rem;
    }

    /* Responsive Table Styles */
    @media (max-width: 768px) {
        .table-responsive {
            margin: 1rem 0;
            border-radius: 10px;
        }

        .teachers-table {
            font-size: 0.75rem;
        }

        .teachers-table th,
        .teachers-table td {
            padding: 6px 4px;
        }

        .gender-badge {
            padding: 3px 6px;
            font-size: 0.7rem;
            min-width: 50px;
        }

        .table-actions {
            gap: 3px;
            flex-wrap: wrap;
        }

        .table-btn {
            padding: 4px 6px;
            font-size: 0.75rem;
        }

        .table-btn-icon {
            font-size: 0.85rem;
        }
    }

    @media (max-width: 480px) {
        .teachers-table {
            font-size: 0.7rem;
        }

        .teachers-table th,
        .teachers-table td {
            padding: 4px 3px;
        }

        .gender-badge {
            padding: 2px 4px;
            font-size: 0.65rem;
            min-width: 40px;
        }

        .table-btn {
            padding: 3px 5px;
            font-size: 0.7rem;
        }

        .table-btn span {
            display: none;
        }

        .table-btn-icon {
            font-size: 0.8rem;
        }
    }

    /* Extra small phones — reduce table font + padding further */
    @media (max-width: 360px) {
        .teachers-table,
        .data-table {
            font-size: 0.65rem !important;
        }

        .teachers-table th,
        .teachers-table td,
        .data-table th,
        .data-table td {
            padding: 4px 6px !important;
            white-space: nowrap !important;
        }

        /* Hide text inside table action buttons — icon only */
        .teachers-table .btn span,
        .data-table .btn span {
            display: none !important;
        }

        .teachers-table .btn,
        .data-table .btn {
            padding: 4px 8px !important;
            font-size: 0.75rem !important;
        }
    }
