.fl-scholar-wrapper {
    display: grid;
    gap: 24px;
    margin-top: 20px;
}

.fl-scholar-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 26px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    transition: all 0.25s ease;
}

.fl-scholar-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(0,0,0,0.08);
}

.fl-scholar-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
}

.fl-scholar-icon {
    font-size: 38px;
    margin-right: 14px;
}

.fl-scholar-info h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.fl-scholar-grade {
    font-size: 14px;
    color: #E3B23C;
    font-weight: 600;
}

.fl-scholar-body p {
    margin: 4px 0;
    font-size: 14px;
}

.fl-scholar-actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
}

.fl-btn-gold {
    background: #E3B23C;
    padding: 8px 18px;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.fl-btn-outline {
    border: 1px solid #E3B23C;
    padding: 8px 18px;
    border-radius: 8px;
    color: #E3B23C;
    font-weight: 600;
    text-decoration: none;
}

.fl-no-scholars {
    padding: 12px 18px;
    background: #fff7df;
    border-left: 4px solid #E3B23C;
    border-radius: 6px;
    font-weight: 600;
}
.fl-tutor-body {
    padding: 15px 10px;
    background: #fafafa;
    border-radius: 10px;
    margin-top: 5px;
}

.fl-credit-line {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.fl-credit-sub {
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
}

.fl-credit-btn {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    border-radius: 8px;
}

.fl-tutor-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    padding: 12px 10px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #eee;
}

.fl-tutor-expanded .fl-tutor-body {
    display: block;
}

.fl-tutor-body {
    display: none;
}
/* Drawer push wrapper */
.fl-dashboard-push-wrapper {
    transition: transform 0.25s ease;
}

/* When drawer open, push main dashboard left by drawer width */
body.fl-summary-open .fl-dashboard-push-wrapper {
    transform: translateX(-420px);
}

/* Summary drawer */
.fl-summary-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 100%;
    height: 100vh;
    background: #ffffff;
    box-shadow: -8px 0 24px rgba(15, 23, 42, 0.18);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
}

body.fl-summary-open .fl-summary-panel {
    transform: translateX(0);
}

.fl-summary-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px 22px 24px;
    box-sizing: border-box;
}

.fl-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.fl-summary-title {
    font-size: 18px;
    font-weight: 700;
}

.fl-summary-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-top: 2px;
}

.fl-summary-close {
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.fl-summary-section {
    margin-top: 16px;
}

.fl-summary-section-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.fl-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
}

.fl-summary-stat {
    background: #f9fafb;
    border-radius: 10px;
    padding: 10px 11px;
}

.fl-summary-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 2px;
}

.fl-summary-value {
    font-size: 15px;
    font-weight: 600;
}

.fl-summary-tutor-card {
    background: #f9fafb;
    border-radius: 10px;
    padding: 10px 11px;
    margin-bottom: 8px;
}

.fl-summary-tutor-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
}

.fl-summary-tutor-meta {
    font-size: 13px;
    color: #4b5563;
}

.fl-summary-empty {
    font-size: 13px;
    color: #6b7280;
}

.fl-summary-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.fl-summary-action {
    display: inline-block;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    background: #3b82f6; /* FL blue */
    color: #ffffff;
}

.fl-summary-action:hover {
    opacity: 0.9;
}

/* Mobile: panel full-width, do not push */
@media (max-width: 768px) {
    body.fl-summary-open .fl-dashboard-push-wrapper {
        transform: translateX(0);
    }

    .fl-summary-panel {
        width: 100%;
    }
}

