/* ===== My Journeys teacher page supplemental styles ===== */

.header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* Table */
.table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.data-table th {
    text-align: left;
    padding: 12px 16px;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.15);
    white-space: nowrap;
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    vertical-align: middle;
}

.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(255,255,255,0.04); }

.td-title { font-weight: 600; color: #fff; max-width: 280px; }
.td-title-sub { font-size: 0.76rem; color: rgba(255,255,255,0.45); margin-top: 2px; }

.td-title-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.journey-thumb {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Filter bar */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.filter-label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
}
.filter-select {
    padding: 5px 10px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    background: rgba(255,255,255,0.07);
    color: #fff;
    font-size: 0.82rem;
    font-family: inherit;
    cursor: pointer;
}
.filter-select option { background: #2d2a5e; }

/* Subject badge */
.badge-subject {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(108,99,255,0.25);
    color: #b3aefc;
}

/* Type badges */
.badge-type {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    vertical-align: middle;
    margin-left: 6px;
}
.badge-type-journey { background: rgba(108,99,255,0.3); color: #b3aefc; }
.badge-type-trek    { background: rgba(243,156,18,0.25); color: #f9ca6d; }
.badge-type-module  { background: rgba(46,204,113,0.22); color: #7deda9; }

/* Tag badges */
.td-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.badge-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.55);
}
.badge-tag-more { color: rgba(255,255,255,0.35); }

/* Badges */
.badge-type {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.badge-type.journey { background: rgba(108,99,255,0.3); color: #b3aefc; }
.badge-type.trek { background: rgba(243,156,18,0.25); color: #f9ca6d; }

.badge-vis {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
}
.badge-vis.public { background: rgba(46,204,113,0.25); color: #a3f0c0; }
.badge-vis.private { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5); }

/* Row actions */
.row-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-row {
    padding: 5px 11px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.8);
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-row:hover { background: rgba(255,255,255,0.14); color: #fff; }
.btn-row.danger { color: #f87171; border-color: rgba(248,113,113,0.3); }
.btn-row.danger:hover { background: rgba(248,113,113,0.15); }

/* Modal */
.modal-card {
    background: #2D2B55;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 28px;
    max-width: 460px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal-title {
    font-family: 'Lexend Giga', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
}

.modal-subtitle {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
    margin-top: -6px;
}

.modal-body {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.82rem; color: rgba(255,255,255,0.6); font-weight: 500; }

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    background: rgba(255,255,255,0.07);
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
    resize: vertical;
}
.form-input:focus { border-color: #6C63FF; }
.form-input::placeholder { color: rgba(255,255,255,0.3); }
.form-textarea { min-height: 80px; }
select.form-input { cursor: pointer; appearance: auto; }
select.form-input option { background: #2d2a5e; color: #fff; }
.form-hint { font-size: 0.75rem; color: rgba(255,255,255,0.4); margin-top: 2px; }

.form-msg { font-size: 0.82rem; min-height: 1.1em; }
.form-msg.error { color: #f87171; }
.form-msg.success { color: #a3f0c0; }

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 4px;
}

/* Class checklist in assign modal */
.classes-checklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
}

.class-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    cursor: pointer;
    transition: background 0.2s;
}
.class-check-item:hover { background: rgba(255,255,255,0.1); }
.class-check-item input[type="checkbox"] { accent-color: #6C63FF; width: 16px; height: 16px; }
.class-check-label { font-size: 0.88rem; }

.link-inline { color: #9d8ffb; text-decoration: underline; }
.link-inline:hover { color: #b3aefc; }

/* Danger button */
.btn-dash-danger {
    background: rgba(239,68,68,0.2) !important;
    border: 1px solid rgba(239,68,68,0.4) !important;
    color: #fca5a5 !important;
}
.btn-dash-danger:hover { background: rgba(239,68,68,0.35) !important; }

/* Loading / Empty (if not in teacher.css) */
.loading-state {
    text-align: center;
    padding: 60px 20px;
}
.loading-spinner {
    width: 32px; height: 32px;
    border: 3px solid rgba(255,255,255,0.15);
    border-top-color: #6C63FF;
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: tj-spin 0.8s linear infinite;
}
@keyframes tj-spin { to { transform: rotate(360deg); } }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255,255,255,0.6);
}
.empty-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state h2 { font-size: 1.2rem; color: #fff; margin-bottom: 8px; }
.empty-state p { font-size: 0.9rem; }

/* Journeys I Use section divider */
.section-divider {
    margin-top: 40px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.section-subheading {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    margin-bottom: 4px;
}
.section-subdesc {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}
