/* =====================================
   TEACHER DASHBOARD
===================================== */

.sgh-dashboard{
    display:grid;
    gap:24px;
}

/* Hero */
.sgh-lesson-hero{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
    flex-wrap:wrap;

    padding:28px;
    border-radius:24px;

    background:linear-gradient(
        135deg,
        rgba(37,99,235,0.25),
        rgba(124,58,237,0.25)
    );

    border:1px solid rgba(255,255,255,0.08);
}

/* Status Pill */
.sgh-status-pill{
    display:inline-block;
    margin-bottom:14px;
    padding:8px 14px;
    border-radius:999px;
    background:#f59e0b;
    color:#fff;
    font-size:12px;
    font-weight:700;
}

/* Meta Row */
.sgh-meta-row{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
    margin-top:14px;
    opacity:0.85;
}

/* Quick Grid */
.sgh-quick-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}

/* Main Layout */
.sgh-main-grid{
    display:grid;
    grid-template-columns:1fr 320px;
    gap:24px;
}

.sgh-left-column,
.sgh-right-column{
    display:grid;
    gap:20px;
}

/* Textarea */
.sgh-card textarea{
    width:100%;
    margin-top:16px;
    border-radius:16px;
    padding:16px;
    background:rgba(255,255,255,0.05);
    color:#fff;
    border:1px solid rgba(255,255,255,0.08);
}

/* Action Row */
.sgh-action-row{
    display:flex;
    gap:14px;
    margin-top:18px;
    flex-wrap:wrap;
}

/* Buttons */
.sgh-success-btn{
    background:#16a34a;
}

/* AI Box */
.sgh-ai-box{
    line-height:1.8;
}

/* Summary Items */
.sgh-summary-item{
    padding:12px 0;
    border-bottom:1px solid rgba(255,255,255,0.08);
}

/* Side Links */
.sgh-teacher-side-links{
    display:grid;
    gap:12px;
}

.sgh-teacher-side-links a{
    text-decoration:none;
    color:#fff;
    padding:12px;
    border-radius:12px;
    background:rgba(255,255,255,0.05);
}

/* Today's Lessons */
.sgh-header-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
    margin-bottom:20px;
    flex-wrap:wrap;
}



.sgh-lesson-top{
    display:flex;
    justify-content:space-between;
    gap:20px;
    flex-wrap:wrap;
}

/* Lesson Status */
.sgh-lesson-status{
    display:inline-block;
    padding:6px 12px;
    border-radius:999px;
    font-size:12px;
    font-weight:600;
}

.sgh-lesson-status-live{
    background:#16a34a;
    color:#fff;
}

.sgh-lesson-status-upcoming{
    background:#f59e0b;
    color:#fff;
}

.sgh-lesson-status-completed{
    background:#2563eb;
    color:#fff;
}

.sgh-stats-grid{
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
}

.sgh-mt-15{
    margin-top:15px;
}

.sgh-teacher-lesson-card{
    padding:20px;
    border-radius:16px;

    background:
        rgba(255,255,255,0.03);

    border:
        1px solid rgba(255,255,255,0.06);

    margin-bottom:15px;
}

/* Responsive */
@media(max-width:980px){

    .sgh-main-grid{
        grid-template-columns:1fr;
    }

}

/* Grid*/
.sgh-dashboard-grid{
    display:grid;
    grid-template-columns:
        repeat(auto-fit,minmax(260px,1fr));
    gap:20px;
}

.sgh-dashboard-grid a{
    text-decoration:none;
}

.sgh-teacher-lesson-card{
    padding:20px;
    border:1px solid #e5e7eb;
    border-radius:16px;
    margin-bottom:15px;
}

.sgh-message-item{
    padding:10px 0;
    border-bottom:1px solid #e5e7eb;
}

.sgh-message-item:last-child{
    border-bottom:none;
}

.sgh-ai-panel{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.sgh-ai-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.sgh-ai-button.active{
    background:#2563eb;
    color:#fff;
}

.sgh-ai-output-wrapper{
    margin-top:15px;
}

.sgh-ai-output-header{
    font-weight:600;
    margin-bottom:10px;
}

.sgh-ai-output{
    width:100%;
    min-height:300px;
    padding:15px;
    border:1px solid #d1d5db;
    border-radius:12px;
    resize:vertical;
}

.sgh-ai-footer{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.sgh-ai-notice{
    padding:12px;
    border-radius:10px;
    margin-bottom:15px;
}

.sgh-ai-notice.success{
    background:#ecfdf5;
    color:#166534;
    border:1px solid #bbf7d0;
}

.sgh-ai-notice.error{
    background:#fef2f2;
    color:#991b1b;
    border:1px solid #fecaca;
}

.sgh-profile-page{
    max-width:900px;
    margin:0 auto;
}

.sgh-profile-header{
    text-align:center;
    margin-bottom:20px;
}

.sgh-profile-avatar{
    width:120px;
    height:120px;
    border-radius:50%;
    object-fit:cover;
    margin-bottom:15px;
}

.sgh-profile-avatar-placeholder{
    width:120px;
    height:120px;
    border-radius:50%;
    background:#ddd;
    margin:0 auto 15px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:42px;
}

.sgh-profile-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px;
}

@media(max-width:768px){

    .sgh-profile-grid{
        grid-template-columns:1fr;
    }

}