/* ── LMS Courses Table v3 ── */
:root {
    --lct-primary: #1A5276;
    --lct-accent:  #B7950B;
}
.lct-wrapper {
    direction: rtl;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    font-size: 14px;
    color: #222;
    margin: 1rem 0;
}

/* ── Category Tabs ── */
.lct-categories-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.lct-cat-tab {
    padding: 8px 18px;
    border-radius: 8px;
    border: 1.5px solid var(--lct-primary);
    background: transparent;
    color: var(--lct-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    white-space: nowrap;
}
.lct-cat-tab:hover { background: #d6e8f5; }
.lct-cat-tab.lct-active { background: var(--lct-primary); color: #fff; }

/* ── Controls Bar ── */
.lct-controls-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* ── Mode Toggle ── */
.lct-mode-toggle {
    display: flex;
    border: 1.5px solid var(--lct-primary);
    border-radius: 8px;
    overflow: hidden;
}
.lct-mode-btn {
    padding: 7px 20px;
    background: transparent;
    border: none;
    color: var(--lct-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.lct-mode-btn + .lct-mode-btn { border-right: 1.5px solid var(--lct-primary); }
.lct-mode-btn:hover { background: #d6e8f5; }
.lct-mode-btn.lct-mode-active { background: var(--lct-primary); color: #fff; }

/* ── Search ── */
.lct-search-wrap { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.lct-search-label { font-size: 13px; color: #444; white-space: nowrap; }
.lct-search {
    direction: rtl;
    font-size: 13px;
    padding: 7px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    min-width: 200px;
    outline: none;
    transition: border-color 0.2s;
}
.lct-search:focus { border-color: var(--lct-primary); }

/* ── Table ── */
.lct-table-wrap { overflow-x: auto; border-radius: 8px; border: 1px solid #dde3ea; }
.lct-table { width: 100%; border-collapse: collapse; background: #fff; min-width: 600px; }
.lct-table thead tr { background: #d6e8f5; }
.lct-table thead th {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 13px;
    text-align: right;
    color: var(--lct-primary);
    white-space: nowrap;
}
.lct-table tbody tr { border-bottom: 1px solid #eef0f3; transition: background 0.13s; }
.lct-table tbody tr:last-child { border-bottom: none; }
.lct-table tbody tr:hover { background: #f4f8fb; }
.lct-table td { padding: 12px 16px; vertical-align: middle; }
.lct-course-name { font-weight: 500; }
.lct-date-cell, .lct-time-cell { font-size: 13px; color: #555; }

.lct-link-detail {
    color: var(--lct-accent);
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.lct-link-detail:hover { opacity: 0.75; color: var(--lct-accent); }

.lct-btn-register {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--lct-primary);
    border: 1px solid var(--lct-primary);
    border-radius: 6px;
    padding: 5px 12px;
    text-decoration: none;
    background: transparent;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.lct-btn-register:hover { background: var(--lct-primary); color: #fff; }

.lct-empty { text-align: center; color: #999; padding: 30px !important; }

/* ── Pagination ── */
.lct-pagination { display: flex; align-items: center; gap: 4px; margin-top: 14px; flex-wrap: wrap; }
.lct-page-btn {
    min-width: 32px; height: 32px;
    border: 1px solid #dde3ea; border-radius: 6px;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 13px; background: #fff; color: #333;
    padding: 0 8px; transition: background 0.13s;
}
.lct-page-btn:hover { background: #f0f4f8; }
.lct-page-btn:disabled { opacity: 0.35; cursor: default; pointer-events: none; }
.lct-page-btn.lct-active { background: var(--lct-primary); color: #fff; border-color: var(--lct-primary); }
.lct-page-dots, .lct-page-count { font-size: 13px; color: #aaa; padding: 0 4px; }

@media (max-width: 640px) {
    .lct-controls-bar { flex-direction: column; align-items: flex-start; }
    .lct-search { min-width: 0; width: 100%; }
    .lct-table thead th, .lct-table td { padding: 9px 10px; font-size: 12px; }
}
