/* ==========================================
   BLOSSOM TEACHER DASHBOARD
   ========================================== */

.teachers_portal { 
    --tp-bg: #faf8f6; 
    --tp-white: #ffffff; 
    --tp-pink: #f5e5e4; 
    --tp-rose: #b87980; 
    --tp-rose-dark: #965f66; 
    --tp-sage: #6f9389; 
    --tp-sage-light: #edf4f0; 
    --tp-dark: #304440; 
    --tp-text: #465853; 
    --tp-muted: #7b8984; 
    --tp-border: #e9e5e1; 
    --tp-shadow: 0 8px 30px rgba(48,68,64,0.045); 
}


.teachers_portal .teacher_dashboard { max-width: 1400px; margin: 0 auto; padding: 30px 20px 70px; color: var(--tp-text); }

/* WELCOME HEADER */

.teachers_portal .dashboard_header { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 35px; }
.teachers_portal .dashboard_header .welcome { flex: 1; }
.teachers_portal .dashboard_header .eyebrow { display: block; margin-bottom: 12px; color: var(--tp-rose); font-size: 75%; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.teachers_portal .dashboard_header h2 { margin: 0 0 10px; color: var(--tp-dark); font-size: 240%; font-weight: 600; line-height: 1.2; letter-spacing: -0.5px; }
.teachers_portal .dashboard_header p { margin: 0; color: var(--tp-muted); font-size: 100%; line-height: 1.6; }
.teachers_portal .dashboard_account .btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 25px; background: var(--tp-sage); border: 1px solid var(--tp-sage); border-radius: 30px; color: #fff; font-size: 90%; font-weight: 600; text-decoration: none; transition: all 0.25s ease; }
.teachers_portal .dashboard_account .btn:hover { background: var(--tp-dark); border-color: var(--tp-dark); transform: translateY(-2px); }

/* STATISTICS */

.teachers_portal .dashboard_stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin-bottom: 30px; }
.teachers_portal .stat_card { display: flex; align-items: center; gap: 20px; min-width: 0; padding: 25px 28px; background: var(--tp-white); border: 1px solid var(--tp-border); border-radius: 16px; box-shadow: var(--tp-shadow); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.teachers_portal .stat_card:hover { transform: translateY(-3px); box-shadow: 0 12px 35px rgba(48,68,64,0.09); }
.teachers_portal .stat_icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 62px; height: 62px; background: var(--tp-pink); border-radius: 14px; font-size: 170%; }
.teachers_portal .stat_card:nth-child(2) .stat_icon { background: var(--tp-sage-light); }
.teachers_portal .stat_card:nth-child(3) .stat_icon { background: #f6eee2; }
.teachers_portal .stat_content { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.teachers_portal .stat_content strong { color: var(--tp-dark); font-size: 190%; font-weight: 600; line-height: 1.2; }
.teachers_portal .stat_content span { color: var(--tp-muted); font-size: 88%; }

/* MAIN LAYOUT */

.teachers_portal .dashboard_content { display: grid; grid-template-columns: minmax(0,1fr) 340px; align-items: start; gap: 25px; }
.teachers_portal .dashboard_main, .teachers_portal .dashboard_sidebar { min-width: 0; }
.teachers_portal .dashboard_sidebar { display: flex; flex-direction: column; gap: 25px; }
.teachers_portal .dashboard_panel { min-width: 0; padding: 30px; background: var(--tp-white); border: 1px solid var(--tp-border); border-radius: 18px; box-shadow: var(--tp-shadow); }
.teachers_portal .panel_header { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 25px; }
.teachers_portal .panel_header h3, .teachers_portal .account_panel h3 { margin: 0; color: var(--tp-dark); font-size: 140%; font-weight: 600; line-height: 1.3; }
.teachers_portal .panel_header p { margin: 7px 0 0; color: var(--tp-muted); font-size: 90%; }

/* UPCOMING SESSIONS */

.teachers_portal .upcoming_list { display: flex; flex-direction: column; gap: 12px; }
.teachers_portal .upcoming_event { display: flex; align-items: center; width: 100%; gap: 13px; padding: 12px; background: #fff; border: 1px solid var(--tp-border); border-radius: 12px; text-align: left; font-family: inherit; color: var(--tp-text); cursor: pointer; transition: all 0.25s ease; }
.teachers_portal .upcoming_event:hover { background: #fdf9f8; border-color: #e5c7c7; transform: translateX(3px); }
.teachers_portal .event_date { display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; width: 55px; height: 60px; background: var(--tp-pink); border-radius: 10px; color: var(--tp-rose-dark); }
.teachers_portal .event_date small { font-size: 72%; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.teachers_portal .event_date strong { font-size: 155%; font-weight: 600; line-height: 1.3; }
.teachers_portal .event_details { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; }
.teachers_portal .event_details strong { color: var(--tp-dark); font-size: 90%; font-weight: 600; line-height: 1.4; }
.teachers_portal .event_details small { color: var(--tp-muted); font-size: 82%; }
.teachers_portal .event_arrow { flex-shrink: 0; color: var(--tp-sage); font-size: 170%; transition: transform 0.25s ease; }
.teachers_portal .upcoming_event:hover .event_arrow { transform: translateX(3px); }
.teachers_portal .empty_message { padding: 20px 10px; color: var(--tp-muted); font-size: 90%; text-align: center; }

/* QUICK LINKS */

.teachers_portal .account_links { display: flex; flex-direction: column; margin-top: 15px; }
.teachers_portal .account_links a { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 0; border-bottom: 1px solid var(--tp-border); color: var(--tp-text); font-size: 95%; font-weight: 500; text-decoration: none; transition: color 0.2s ease; }
.teachers_portal .account_links a:last-child { border-bottom: 0; padding-bottom: 0; }
.teachers_portal .account_links a:hover { color: var(--tp-rose-dark); }
.teachers_portal .account_links a span { color: var(--tp-sage); font-size: 150%; transition: transform 0.2s ease; }
.teachers_portal .account_links a:hover span { transform: translateX(4px); }

/* FULLCALENDAR */

.teachers_portal .fc { font-family: inherit; color: var(--tp-text); }
.teachers_portal .fc .fc-toolbar { margin-bottom: 25px; gap: 12px; }
.teachers_portal .fc .fc-toolbar-title { color: var(--tp-dark); font-size: 140%; font-weight: 600; }
.teachers_portal .fc .fc-button-primary { padding: 9px 13px; background: var(--tp-white); border: 1px solid var(--tp-border); border-radius: 7px; color: var(--tp-text); font-family: inherit; font-size: 85%; font-weight: 500; box-shadow: none; text-transform: capitalize; transition: all 0.2s ease; }
.teachers_portal .fc .fc-button-primary:hover { background: var(--tp-sage-light); border-color: var(--tp-sage); color: var(--tp-dark); }
.teachers_portal .fc .fc-button-primary:focus, .teachers_portal .fc .fc-button-primary:not(:disabled):active { background: var(--tp-sage); border-color: var(--tp-sage); color: #fff; box-shadow: none; }
.teachers_portal .fc .fc-button-primary:disabled { background: #f5f5f3; border-color: var(--tp-border); color: var(--tp-muted); opacity: 0.7; }
.teachers_portal .fc .fc-button-primary:not(:disabled).fc-button-active { background: var(--tp-sage); border-color: var(--tp-sage); color: #fff; }
.teachers_portal .fc .fc-button-group { gap: 4px; }
.teachers_portal .fc .fc-button-group > .fc-button { border-radius: 7px; margin: 0; }

.teachers_portal .fc-theme-standard td, .teachers_portal .fc-theme-standard th, .teachers_portal .fc-theme-standard .fc-scrollgrid { border-color: var(--tp-border); }
.teachers_portal .fc .fc-col-header-cell { padding: 12px 0; background: var(--tp-bg); }
.teachers_portal .fc .fc-col-header-cell-cushion { color: var(--tp-dark); font-size: 85%; font-weight: 600; text-decoration: none; }
.teachers_portal .fc .fc-daygrid-day-number { padding: 9px; color: var(--tp-text); font-size: 90%; text-decoration: none; }
.teachers_portal .fc .fc-daygrid-day-frame { min-height: 105px; }
.teachers_portal .fc .fc-day-today { background: #fdf4f2 !important; }
.teachers_portal .fc .fc-day-today .fc-daygrid-day-number { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin: 4px; padding: 0; background: var(--tp-rose); border-radius: 50%; color: #fff; }
.teachers_portal .fc .fc-day-other .fc-daygrid-day-number { color: #b5bdb8; }

.teachers_portal .fc .fc-daygrid-event { margin: 2px 4px; padding: 4px 6px; background: var(--tp-sage-light); border: 1px solid #d5e5dd; border-left: 3px solid var(--tp-sage); border-radius: 5px; color: var(--tp-dark); font-size: 82%; cursor: pointer; transition: all 0.2s ease; }
.teachers_portal .fc .fc-daygrid-event:hover { background: #dcebe3; border-color: var(--tp-sage); }
.teachers_portal .fc .fc-daygrid-event .fc-event-title { font-weight: 500; white-space: normal; }
.teachers_portal .fc .fc-daygrid-event .fc-event-time { font-weight: 600; }
.teachers_portal .fc .fc-daygrid-more-link { color: var(--tp-rose-dark); font-size: 80%; font-weight: 600; }
.teachers_portal .fc .fc-list-event:hover td { background: var(--tp-sage-light); }
.teachers_portal .fc .fc-list-day-cushion { background: var(--tp-bg); }
.teachers_portal .fc .fc-list-event-dot { border-color: var(--tp-sage); }
.teachers_portal .fc-daygrid-event .fc-event-title { display: none; }
.teachers_portal .fc-daygrid-event .fc-event-time { display: block; }

/* ATTENDEE POPUP - JQUERY UI */

.teacher_attendees_dialog.ui-dialog { padding: 0; overflow: hidden; background: #fff; border: 0; border-radius: 16px; box-shadow: 0 20px 70px rgba(0,0,0,0.18); }
.teacher_attendees_dialog .ui-dialog-titlebar { display: flex; align-items: center; justify-content: space-between; padding: 20px 25px; background: #edf4f0; border: 0; border-bottom: 1px solid #e0e9e4; border-radius: 0; }
.teacher_attendees_dialog .ui-dialog-title { margin: 0; color: #304440; font-size: 120%; font-weight: 600; }
.teacher_attendees_dialog .ui-dialog-titlebar-close { position: relative; top: auto; right: auto; margin: 0; }
.teacher_attendees_dialog .ui-dialog-content { padding: 25px; color: #465853; font-size: 95%; }
.ui-widget-overlay { background: rgba(28,43,39,0.55); opacity: 1; }

/* RESPONSIVE */

@media (max-width: 1100px) {
    .teachers_portal .dashboard_content { grid-template-columns: minmax(0,1fr); }
    .teachers_portal .dashboard_sidebar { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 850px) {
    .teachers_portal .dashboard_stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .teachers_portal .dashboard_header h2 { font-size: 200%; }
    .teachers_portal .dashboard_panel { padding: 22px; }
}

@media (max-width: 650px) {
    .teachers_portal .teacher_dashboard { padding: 20px 20 40px; }
    .teachers_portal .dashboard_header { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 25px; }
    .teachers_portal .dashboard_header h2 { font-size: 180%; }
    .teachers_portal .dashboard_stats { grid-template-columns: 1fr; gap: 12px; }
    .teachers_portal .stat_card { padding: 18px; }
    .teachers_portal .stat_icon { width: 50px; height: 50px; }
    .teachers_portal .stat_content strong { font-size: 160%; }
    .teachers_portal .dashboard_content { gap: 15px; }
    .teachers_portal .dashboard_sidebar { grid-template-columns: 1fr; gap: 15px; }
    .teachers_portal .dashboard_panel { padding: 16px; border-radius: 12px; }
    .teachers_portal .fc .fc-toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
    .teachers_portal .fc .fc-toolbar-chunk { display: flex; justify-content: center; }
    .teachers_portal .fc .fc-toolbar-title { font-size: 120%; }
    .teachers_portal .fc .fc-daygrid-day-frame { min-height: 65px; }
    .teachers_portal .fc .fc-daygrid-event { padding: 2px 3px; font-size: 70%; }
    .teachers_portal .fc .fc-col-header-cell-cushion { font-size: 75%; }
}

@media (prefers-reduced-motion: reduce) {
    .teachers_portal .stat_card, .teachers_portal .upcoming_event, .teachers_portal .event_arrow, .teachers_portal .account_links a, .teachers_portal .fc .fc-daygrid-event { transition: none; }
}

.teacher_attendees_dialog.ui-dialog { padding: 0; background: #fff; border: 0; border-radius: 18px; box-shadow: 0 25px 80px rgba(32,55,49,0.2); overflow: hidden; font-family: inherit; }
.teacher_attendees_dialog .ui-dialog-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 25px; }
.teacher_attendees_dialog .ui-dialog-title { display: block !important; float: none; width: auto; flex: 1; margin: 0; text-align: left; }
.teacher_attendees_dialog .ui-dialog-titlebar-close { position: relative; top: auto; right: auto; flex-shrink: 0; margin: 0 0 0 auto; }
.teacher_attendees_dialog .ui-dialog-titlebar-close:hover {background: #f5e5e4;border-color: #e7c9c9;}
.teacher_attendees_dialog .ui-dialog-titlebar-close .ui-icon {background-image: none;}
.teacher_attendees_dialog .ui-dialog-content { padding: 25px !important; background: #fff; color: #465853; font-size: 100%; overflow-y: auto; }
.teacher_attendees_dialog #attendees-popup-content { width: 100%; }
.teacher_attendees_dialog #attendees-popup-content h1, .teacher_attendees_dialog #attendees-popup-content h2 { margin: 0 0 22px; padding: 0 0 16px; border-bottom: 1px solid #e9e5e1; color: #304440; font-size: 110%; font-weight: 600; line-height: 1.4; }
.teacher_attendees_dialog #attendees-popup-content h3 { margin: 0 0 18px; color: #304440; font-size: 120%; font-weight: 600; }
.teacher_attendees_dialog #attendees-popup-content table { width: 100%; margin: 0; border: 1px solid #e9e5e1; border-collapse: separate; border-spacing: 0; border-radius: 10px; overflow: hidden; font-size: 95%; }
.teacher_attendees_dialog #attendees-popup-content table thead { background: #f5f7f4; }
.teacher_attendees_dialog #attendees-popup-content table th { padding: 13px 18px; background: #edf4f0; border: 0; border-bottom: 1px solid #dfe9e3; color: #304440; font-size: 85%; font-weight: 700; text-align: left; }
.teacher_attendees_dialog #attendees-popup-content table td { padding: 13px 18px; background: #fff; border: 0; border-bottom: 1px solid #edf0ed; color: #465853; font-size: 95%; line-height: 1.5; vertical-align: middle; }
.teacher_attendees_dialog #attendees-popup-content table tbody tr:nth-child(even) td { background: #fafbf9; }
.teacher_attendees_dialog #attendees-popup-content table tbody tr:hover td { background: #fdf3f2; }
.teacher_attendees_dialog #attendees-popup-content table tbody tr:last-child td { border-bottom: 0; }
.teacher_attendees_dialog #attendees-popup-content table a { color: #6f9389; text-decoration: none; font-weight: 500; }
.teacher_attendees_dialog #attendees-popup-content table a:hover { color: #b87980; text-decoration: underline; }

/* BACKDROP */

.ui-widget-overlay { background: rgba(28,43,39,0.55); opacity: 1; }

/* MOBILE */

@media (max-width: 650px) {
    .teacher_attendees_dialog.ui-dialog { border-radius: 12px; }
    .teacher_attendees_dialog .ui-dialog-titlebar { padding: 14px 18px; }
    .teacher_attendees_dialog .ui-dialog-content { padding: 18px !important; }
    .teacher_attendees_dialog #attendees-popup-content h1, .teacher_attendees_dialog #attendees-popup-content h2 { font-size: 120%; }
    .teacher_attendees_dialog #attendees-popup-content table th, .teacher_attendees_dialog #attendees-popup-content table td { padding: 11px 10px; font-size: 85%; }
}
