/* =========================================================
   LEARNHIVE OWNER
   Relies on core's student-dashboard.css for tokens, stat
   cards, buttons, form fields and notices.
   ========================================================= */

.learnhive-owner-students {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px 24px 70px;

    color: var(--lh-text);
    font-family: inherit;
}

.learnhive-owner-students *,
.learnhive-owner-students *::before,
.learnhive-owner-students *::after {
    box-sizing: border-box;
}

.learnhive-owner-card {
    margin-bottom: 24px;
    padding: 26px;

    background: var(--lh-surface);
    border: 1px solid var(--lh-border);
    border-radius: var(--lh-radius-md);
    box-shadow: var(--lh-shadow-sm);
}

.learnhive-owner-card h2 {
    margin: 0 0 18px;
    color: var(--lh-navy);
    font-size: 20px;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.lh-req {
    color: #b91c1c;
}

/* People tables (dashboard + students list) */
.learnhive-owner-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.learnhive-owner-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 16px;
    align-items: center;

    padding: 14px 16px;

    background: var(--lh-surface);
    border: 1px solid var(--lh-border);
    border-radius: var(--lh-radius-sm);
}

.lh-own-name strong {
    display: block;
    color: var(--lh-navy);
    font-size: 14px;
    font-weight: 700;
}

.lh-own-name span {
    color: var(--lh-muted);
    font-size: 12px;
}

.lh-own-meta {
    color: var(--lh-navy);
    font-size: 14px;
    font-weight: 600;
}

.lh-own-label {
    display: none;
}

@media (max-width: 640px) {

    .learnhive-owner-row {
        grid-template-columns: 1fr 1fr;
    }

    .lh-own-name {
        grid-column: 1 / -1;
    }

    .lh-own-label {
        display: block;
        margin-bottom: 2px;
        color: var(--lh-muted);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

}


/* Enrolment panel additions */
.learnhive-field select {
    width: 100%;
    padding: 11px 14px;
    color: var(--lh-text);
    background: #ffffff;
    border: 1px solid var(--lh-border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
}

.learnhive-field select:focus {
    outline: none;
    border-color: var(--lh-primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.lh-btn-remove {
    padding: 7px 14px;
    color: #b91c1c;
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

.lh-btn-remove:hover {
    background: #fecaca;
}


.learnhive-button-small {
    min-height: 36px;
    padding: 0 14px;
    font-size: 12px;
}


/* Row with an action button (remove) */
.lh-has-action {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto;
}

.lh-own-action form { margin: 0; }

@media (max-width: 640px) {
    .lh-has-action {
        grid-template-columns: 1fr 1fr;
    }
    .lh-own-action {
        grid-column: 1 / -1;
    }
}


/* One-time credential display in the create-student notice */
.learnhive-notice code {
    display: inline-block;
    padding: 2px 8px;
    margin: 2px 0;
    background: rgba(15, 23, 42, 0.06);
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    font-weight: 700;
    color: var(--lh-navy);
}
