/* Installment Sessions Status Styles */
.installment-sessions-section {
    margin: 30px 0;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.installment-sessions-section h3 {
    color: #1f2937;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
}

.installment-card {
    margin-bottom: 25px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #f9fafb;
}

.installment-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.installment-header h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.installment-id {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.sessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    padding: 20px;
}

.session-status-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #e5e7eb;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.session-status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.session-status-card.status-paid {
    border-left-color: #10b981;
    background: #f0fdf4;
}

.session-status-card.status-student-confirmed {
    border-left-color: #3b82f6;
    background: #eff6ff;
}

.session-status-card.status-teacher-confirmed {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.session-status-card.status-pending {
    border-left-color: #6b7280;
    background: #f9fafb;
}

.session-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.session-number {
    font-weight: 600;
    color: #1f2937;
    font-size: 1.1rem;
}

.session-amount {
    color: #059669;
    font-weight: 600;
    font-size: 1rem;
}

.session-status {
    margin-bottom: 10px;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
}

.status-paid .status-badge {
    background: #10b981;
}

.status-student-confirmed .status-badge {
    background: #3b82f6;
}

.status-teacher-confirmed .status-badge {
    background: #f59e0b;
}

.status-pending .status-badge {
    background: #6b7280;
}

.payment-amount {
    color: #059669;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 5px;
    display: block;
}

.session-dates {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.4;
}

.session-dates small {
    display: block;
    margin-bottom: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sessions-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .installment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .session-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

 jdp-container { z-index: 1002 !important; }
        .dabiryab-teacher-dashboard-wrapper { direction: rtl; max-width: 1200px; margin: 10px auto; background-color: #f9fafb; color: #374151; }
        .dashboard-header-section { display: flex; align-items: center; gap: 20px; margin-bottom: 25px; padding-bottom: 25px; border-bottom: 1px solid #e5e7eb; }
        .profile-avatar { width: 80px; height: 80px; border-radius: 50%; border: 3px solid #60a5fa; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }
        .header-content { flex-grow: 1; }
        .welcome-message { font-size: 1.75rem; font-weight: bold; color: #111827; margin: 0 0 8px 0; }
        .header-meta { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 15px; font-size: 1rem; color: #4b5563; }
        .header-meta strong { color: #1e40af; font-weight: 600; }
        .header-meta .highlight-stat { color: #dc3545; font-weight: bold; }
        .header-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
        .header-buttons .button, .modal-footer .button { border-radius: 8px; font-weight: 600; transition: all 0.2s ease-in-out; padding: 8px 16px; font-size: 0.9rem; }
        .header-buttons .button-primary, .modal-footer .button-primary { background-image: linear-gradient(to right, #3b82f6, #60a5fa); border: none; color: white; }
        .header-buttons .button-primary:hover, .modal-footer .button-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); }
        .header-buttons .button-secondary, .modal-footer .button-secondary { background-color: #e5e7eb; color: #374151; border: 1px solid #d1d5db; }
        .header-buttons .button-secondary:hover, .modal-footer .button-secondary:hover { background-color: #d1d5db; }
        .header-buttons .button.sms-enabled { background-color: #10b981; color: white; border-color: #059669; }
        .header-buttons .button.sms-disabled { background-color: #a1a1aa; color: white; border-color: #71717a; }
        .header-buttons .button.visibility-enabled { background-color: #0ea5e9; color: white; border-color: #0284c7; }
        .header-buttons .button.visibility-disabled { background-color: #ef4444; color: white; border-color: #dc2626; }
        .header-buttons .free-points-btn { position: relative; }
        @keyframes blink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.6; }
        }
        .dashboard-actions-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 30px; }
        .action-item .button { width: 100%; text-align: center; border-radius: 8px; font-weight: 600; padding: 12px; }
        .dashboard-announcement { background-color: #fffbeb; border: 1px solid #fde68a; color: #92400e; padding: 15px; border-radius: 8px; margin-bottom: 30px; }
        .dashboard-announcement h3 { margin-top: 0; }
        .dashboard-unreported-sessions-alert { background-color: #fff3cd; border-right: 5px solid #ffc107; color: #856404; padding: 20px; border-radius: 8px; margin-bottom: 30px; }
        .dashboard-unreported-sessions-alert h4 { margin: 0 0 15px 0; font-size: 1.2em; display: flex; align-items: center; gap: 10px; }
        .dashboard-unreported-sessions-alert .dashicons { font-size: 28px; }
        .dashboard-unreported-sessions-alert ul { list-style: none; padding: 0; margin: 0 0 10px 0; display: flex; flex-direction: column; gap: 8px; }
        .dashboard-unreported-sessions-alert li { background-color: rgba(255, 255, 255, 0.5); padding: 8px 12px; border-radius: 6px; }
        .dashboard-unreported-sessions-alert p { margin: 0; font-size: 0.9em; }
        .dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(48%, 1fr)); gap: 25px; }
        .dashboard-section { background-color: #ffffff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 1px 3px 0 rgba(0,0,0,0.05); display: flex; flex-direction: column; }
        .dashboard-section h2 { font-size: 1.25rem; font-weight: 600; padding: 15px 20px; margin: 0; border-bottom: 1px solid #e5e7eb; color: #1f2937; display: flex; justify-content: space-between; align-items: center; }
        .count-badge { background-color: #3b82f6; color: #fff; font-size: 0.8rem; font-weight: bold; padding: 4px 10px; border-radius: 12px; }
        .dashboard-section-content { height: 400px; overflow-y: auto; padding: 10px; flex-grow: 1; }
        .dashboard-section-content::-webkit-scrollbar { width: 6px; } .dashboard-section-content::-webkit-scrollbar-track { background: #f1f1f1; } .dashboard-section-content::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 6px; }
        .request-card { background-color: #ffffff; border: 1px solid #e0e0e0; border-radius: 10px; padding: 18px; margin: 0 10px 15px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: transform 0.2s, box-shadow 0.2s; }
        .request-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
        .request-card h4 { font-size: 1.15rem; font-weight: 700; margin: 0 0 12px 0; color: #111827; border-bottom: 2px solid #f3f4f6; padding-bottom: 8px; }
        .request-card p { margin: 6px 0; font-size: 0.95rem; color: #4b5563; line-height: 1.6; }
        .request-card p.request-price-range { background-color: #eff6ff; color: #1e40af; padding: 5px 10px; border-radius: 6px; font-weight: 500;}
        .request-card-actions { margin-top: 15px; display: flex; gap: 10px; flex-wrap: wrap; border-top: 1px solid #f3f4f6; padding-top: 15px; }
        .button.button-small { padding: 5px 12px; font-size: 0.85rem; line-height: 1.5; border-radius: 6px; border: none; color: #fff; font-weight: 600; }
        .button.button-primary { background-color: #28a745 !important; color: #fff;}
        .button.button-danger { background-color: #dc3545 !important; color: #fff; }
        .action-btn-accept, .action-btn-won { background-color: #22c55e !important;  }
        .action-btn-contact { background-color: #3b82f6 !important; }
        .action-btn-lost { background-color: #ef4444 !important; }
        .action-btn-notes { background-color: #8b5cf6 !important; }
        .action-btn-manage { background-color: #f59e0b !important; }
        .action-btn-revert-accepted { background-color: #06b6d4 !important; }
        .action-btn-revert-pending { background-color: #f97316 !important; }
        .load-more-btn { display: block; width: calc(100% - 20px); margin: 10px auto; text-align: center; background-image: linear-gradient(to right, #6b7280, #4b5563); color: #fff; border: none; font-weight: 600; padding: 10px; border-radius: 8px; transition: all 0.2s; }
        .load-more-btn:hover { background-image: linear-gradient(to right, #4b5563, #6b7280); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
        .no-items-message { padding: 20px; text-align: center; color: #6b7280; }
        .error-message, .request-expired-notice, .request-full-notice, .request-finalized-notice { padding: 10px; border-radius: 5px; font-weight: bold; text-align: center;}
        .request-expired-notice { color: #991b1b; background-color: #fee2e2; }
        .request-full-notice { color: #92400e; background-color: #fffbeb; }
        .request-finalized-notice { color: #065f46; background-color: #d1fae5; }
        .loader-container { display: flex; justify-content: center; align-items: center; min-height: 150px; }
        .loader-spinner { border: 5px solid #f3f3f3; border-top: 5px solid #3b82f6; border-radius: 50%; width: 40px; height: 40px; animation: spin 1s linear infinite; }
        @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
        .dabiryab-modal { display: none; position: fixed; z-index: 1001; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.6); align-items: center; justify-content: center; }
        .dabiryab-modal-content { background-color: #fefefe; margin: auto; padding: 25px 10px; border: 1px solid #888; width: 90%; max-width: 500px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.2); position: relative; text-align: right; direction: rtl; }
        .dabiryab-close { color: #aaa; position: absolute; left: 15px; top: 10px; font-size: 28px; font-weight: bold; cursor: pointer; }
        .dabiryab-modal .form-group { margin-bottom: 20px; }
        .dabiryab-modal label { display: block; margin-bottom: 8px; font-weight: bold; }
        .dabiryab-modal input[type="text"], .dabiryab-modal input[type="number"], .dabiryab-modal select, .dabiryab-modal textarea { width: 100%; padding: 10px; border-radius: 5px; border: 1px solid #ccc; box-sizing: border-box; }
        .dabiryab-modal .form-group.time-inputs div { display: flex; align-items: center; gap: 10px; }
        .dabiryab-modal .form-group.time-inputs input[type="time"] { flex-grow: 1; }
        .dabiryab-modal .form-group.time-inputs .time-label { margin-bottom: 0; }
        .dabiryab-amount-wrapper { display: flex; align-items: center; gap: 10px; }
        .dabiryab-amount-wrapper input { flex-grow: 1; }
        #edit-session-price-btn { background-color: #f59e0b !important; border-color: #d97706 !important; }
        .price-in-words { color: #888; font-size: 12px; margin-top: 5px; display: block; min-height: 16px; }

        /* Teacher Notes Display Box */
        .teacher-notes-display-box {
            background: #e7f3ff;
            border: 2px solid #2196F3;
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 20px;
            direction: rtl;
            animation: slideInDown 0.3s ease-out;
        }

        .teacher-notes-display-box h4 {
            margin-top: 0;
            color: #1976D2;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 1.1em;
            font-weight: 600;
        }

        .teacher-notes-display-box h4 span:first-child {
            font-size: 1.3em;
        }

        .teacher-notes-display-box > div {
            color: #333;
            line-height: 1.8;
            white-space: pre-wrap;
            font-size: 0.95em;
            margin-top: 10px;
        }

        @keyframes slideInDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        .dabiryab-modal .dabiryab-radio-options label, .dabiryab-points-packages label, .dabiryab-payment-methods label, .dabiryab-amount-options label { font-weight: normal; margin-bottom: 10px; display: block; }
        .dabiryab-modal button[type="submit"], .dabiryab-modal #go-to-buy-points-btn { width: 100%; padding: 12px; font-size: 1.1em; }
        .dabiryab-message-area { padding: 10px; margin-top: 15px; border-radius: 5px; text-align: center; }
        .dabiryab-message-area.success { background-color: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
        .dabiryab-message-area.error { background-color: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
        #session-report-list { display: flex; flex-direction: column; gap: 15px; max-height: 40vh; overflow-y: auto;  border: 1px solid #eee; margin-bottom: 15px; background: #fcfcfc; border-radius: 5px; }
        .session-report-card { background-color: #fff; border: 1px solid #e5e5e5; border-right: 4px solid #3b82f6; border-radius: 6px; padding: 15px; }
        .session-report-card.status-paid { border-right-color: #16a34a; }
        .session-report-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
        .session-report-header .session-title { font-weight: bold; font-size: 1.2em; }
        .session-report-header .session-status { font-size: 0.9em; font-weight: bold; padding: 4px 8px; border-radius: 4px; color: #fff; }
        .session-report-header .status-held { background-color: #17a2b8; } .session-report-header .status-not-held { background-color: #dc3545; }
        .session-report-body p { margin: 5px 0; }
        .session-report-body .session-time { font-style: italic; color: #555; font-size: 0.9em; }
        .session-payment-area { margin-top: 15px; padding-top: 15px; border-top: 1px dashed #ccc; }
        .payment-actions-cell { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
        .session-card-actions { margin-top: 15px; border-top: 1px solid #f3f4f6; padding-top: 15px; text-align: left; }
        .session-btn-pay { background-color: #28a745 !important; color: #fff; }
        .session-btn-copy { background-color: #007bff !important; color: #fff; }
        .session-btn-send { background-color: #6f42c1 !important; color: #fff; }
        
        /* Student Review Section in Teacher Panel - Compact */
        .student-review-section { margin-top: 10px; padding: 10px 12px; background: #fffbeb; border: 1px solid #fbbf24; border-radius: 8px; border-right: 4px solid #fbbf24; }
        .student-review-section h4 { margin: 0 0 5px 0; font-size: 0.95em; color: #78350f; font-weight: 600; }
        .review-stars-display { font-size: 1.2em; color: #fbbf24; letter-spacing: 2px; margin: 3px 0; display: inline-block; }
        .review-comment { background: white; padding: 8px 10px; border-radius: 6px; margin: 5px 0; color: #374151; line-height: 1.4; font-size: 0.85em; max-height: 60px; overflow-y: auto; }
        .review-date { margin: 3px 0 0 0; color: #92400e; font-size: 0.75em; text-align: left; }
        .session-btn-edit { background-color: #6c757d !important; color: #fff; }
        .payment-form-cell input { max-width: 150px; display: inline-block; margin-left: 10px; }
        .dabiryab-share-amount { color: #e74c3c; font-weight: bold; }
        .payment-info-cell span { display: block; margin-bottom: 5px; }
        .tamassabet {display:none !important;}
        .request-info-for-notes { background: #f0f8ff; padding: 10px; border-radius: 5px; margin-bottom: 15px; font-size: 0.9em; border-right: 3px solid #60a5fa; }
        .student-contact-info { text-align: center; font-size: 1.1em; }
        .student-contact-info p { margin: 10px 0; }
        .student-contact-info a { font-size: 1.3em; font-weight: bold; color: #007bff; text-decoration: none; }
        .add-session-toggle { margin-bottom: 15px; }
        .points-modal-intro { background-color: #eef2ff; border-right: 4px solid #4f46e5; padding: 15px; margin-bottom: 20px; border-radius: 5px; color: #4338ca; }
        .points-modal-intro p { margin: 0 0 10px 0; line-height: 1.6; }
        .points-cost-info { text-align: center; color: #6b7280; font-style: italic; margin-bottom: 20px; }
        @media (max-width: 992px) { .dashboard-grid { grid-template-columns: 1fr; } }
        .action-item .button { background-image: linear-gradient(to right, #1a3664, #3b74bb); color: #fff; }
        .dabiryab-modal .modal-body { padding: 10px 0 20px; }
        .dabiryab-modal .modal-body p { margin-bottom: 15px; line-height: 1.7; }
        .dabiryab-modal .modal-footer { text-align: left; padding-top: 15px; border-top: 1px solid #eee; display: flex; justify-content: flex-end; gap: 10px; }
        #overdue-sessions-list, #next-session-confirmation-list { list-style: none; padding: 0; max-height: 150px; overflow-y: auto; background: #f8f9fa; border: 1px solid #dee2e6; padding: 10px; border-radius: 5px; }
        #overdue-sessions-list li, #next-session-confirmation-list li { margin-bottom: 8px; background-color: #fff; padding: 10px; border-radius: 4px; }
        #next-session-confirmation-list li .session-actions { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #ccc; display: flex; justify-content: flex-end; gap: 8px; }
        #dabiryab-agreement-confirmation-modal .modal-body { text-align: center; }
        /* ** EDITED: Calendar Styles for Minute Precision ** */
        .dashboard-schedule-section { background-color: #ffffff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 1px 3px 0 rgba(0,0,0,0.05); margin-top: 30px; padding: 20px; }
        .schedule-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
        .schedule-nav { display: flex; align-items: center; gap: 15px; }
        #schedule-week-title { font-size: 1.2em; font-weight: bold; color: #1f2937; }
        #schedule-calendar-container { overflow-x: auto; }
        #schedule-calendar-container table { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 800px; }
        #schedule-calendar-container th, #schedule-calendar-container td { border: 1px solid #e5e7eb; text-align: center; padding: 0; font-size: 0.9em; }
        #schedule-calendar-container th { padding: 8px; background-color: #f9fafb; font-weight: 600; }
        #schedule-calendar-container td.time-label { padding: 8px; vertical-align: top; font-weight: bold; color: #6c757d; }
        .schedule-slot { position: relative; background-color: #fff; height: 60px; }
        .schedule-slot.unavailable { background-color: #f1f3f5; }
        .session-block { position: absolute; background-color: #fecaca; border: 1px solid #fca5a5; border-radius: 4px; overflow: hidden; z-index: 1; }
        .session-block-content { padding: 4px; font-size: 0.8em; color: #991b1b; font-weight: bold; }
        .session-block .tooltip { visibility: hidden; width: 200px; background-color: #333; color: #fff; text-align: center; border-radius: 6px; padding: 8px; position: absolute; z-index: 10; bottom: 105%; left: 50%; margin-left: -100px; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
        .session-block:hover .tooltip { visibility: visible; opacity: 1; }
        .schedule-legend { margin-top: 15px; display: flex; gap: 20px; font-size: 0.9em; }
        .legend-item { display: flex; align-items: center; }
        .legend-item::before { content: ''; width: 15px; height: 15px; display: inline-block; margin-left: 8px; border-radius: 3px; border: 1px solid #ccc; }
        .legend-item.unavailable::before { background-color: #f1f3f5; }
        .legend-item.booked::before { background-color: #fecaca; }
        
        
        
        
        
        
        .dashboard-announcement {
  max-height: 500px;
  overflow-y: auto;
}



.dashboard-announcement {
  background-color: #fff;
  border: 1px solid #bbb;
}




.dashboard-section-content {
  height: auto;
  max-height: 800px;
}

.action-btn-contact {
  background-color: #3b82f6 !important;
  border-radius: 30px;
}



.button.button-primary {
  background-color: #28a745 !important;
  color: #fff;
}



.button.button-small {
  border-radius: 30px;
  margin-top: 5px;
}



.request-card-actions button{
	color:#fff
}




.count-badge {
  background-color: #00000069;
}

.dashboard-section h2{
	color: #fff;
}


.dbhide {
    display:none !important;
}


.session-report-card {
  overflow: unset !important;
}

