/**
 * Dashboard styling
 */
.lms-dashboard {
    margin: 20px auto 60px;
    max-width: 1200px;
}

.lms-dashboard-hero {
    padding: 32px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f8ec7, #6a5acd);
    color: #fff;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.lms-kicker {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 12px;
    opacity: 0.8;
    margin: 0 0 10px;
}

.lms-hero-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.lms-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.lms-panel {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 25px 50px -12px rgba(15, 118, 110, 0.15);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lms-panel-highlight {
    border: 1px solid #0f8ec7;
    box-shadow: 0 10px 30px rgba(15, 142, 199, 0.15);
}

.lms-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.lms-card-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lms-card {
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.lms-card-muted {
    opacity: 0.7;
}

.lms-chip-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lms-chip {
    background: #eef6ff;
    color: #0f8ec7;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.lms-progress-card,
.lms-stat-card {
    padding: 16px;
    border-radius: 12px;
    background: #f9fafc;
    border: 1px solid #eef2f7;
}

.lms-progress {
    background: #f1f5f9;
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}

.lms-progress div {
    height: 100%;
    background: linear-gradient(90deg, #0f8ec7, #6a5acd);
}

.lms-goal-card {
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
}

.lms-goal-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.lms-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lms-timeline-item {
    border-left: 4px solid #0f8ec7;
    padding-left: 12px;
}

.lms-timeline-item.resolved {
    border-color: #22c55e;
}

.lms-calendar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lms-calendar-item {
    border: 1px dashed #cbd5f5;
    padding: 10px;
    border-radius: 10px;
}

.lms-chat-links .lms-chat-link {
    border: 1px solid #eef2f7;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
}

.lms-support-actions li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f7;
}

.lms-btn {
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-align: center;
}

.lms-btn-primary {
    background: #111c43;
    color: #fff;
}

.lms-btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.6);
    color: #fff;
}

.lms-btn-secondary {
    background: #0f8ec7;
    color: #fff;
}

.lms-btn-danger {
    background: #dc2626;
    color: #fff;
}

.lms-btn-link {
    background: none;
    color: #0f8ec7;
    border: none;
    padding: 0;
}

.lms-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
    font-size: 14px;
}

.lms-form input,
.lms-form select,
.lms-form textarea {
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 10px;
    font-size: 14px;
    width: 100%;
}

.lms-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.lms-form-status {
    font-size: 13px;
    color: #0f8ec7;
}

.lms-note {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

dialog.lms-modal {
    border: none;
    border-radius: 16px;
    padding: 24px;
    max-width: 420px;
}

dialog::backdrop {
    background: rgba(15, 24, 58, 0.6);
}

/* Admin */
.lms-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.lms-admin-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(15, 24, 58, 0.08);
}

.lms-metrics {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.lms-metrics li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f7;
}

.lms-presence {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.lms-presence ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lms-admin-chat {
    grid-column: 1 / -1;
    display: flex;
    gap: 20px;
}

.lms-admin-chat-sidebar {
    width: 280px;
    border-right: 1px solid #eef2f7;
}

.lms-admin-chat-log {
    min-height: 260px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 10px;
}

.lms-conversation-toggle {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
}

.lms-conversation-toggle:hover {
    background: #f3f4f6;
}

.lms-admin-chat-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 768px) {
    .lms-dashboard-hero {
        flex-direction: column;
    }
}

