/* Agenda Module - Premium CSS */
.module-isolated-agenda {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  --color-surface: #ffffff;
  --color-background: #f8fafc;
  --color-text: #1e293b;
  --color-text-light: #64748b;
  --transition-bounce: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition-smooth: all 0.3s ease;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-elevated: 0 8px 25px rgba(102, 126, 234, 0.15);
  --border-radius: 12px;
}

/* Header Section */
.module-isolated-agenda .module-header-premium {
  background: var(--gradient-primary);
  color: white;
  padding: 2rem;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  margin-bottom: 2rem;
}

.module-isolated-agenda .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.module-isolated-agenda .header-main h1 {
  margin: 0 0 0.5rem 0;
  font-size: 1.75rem;
  font-weight: 700;
}

.module-isolated-agenda .header-subtitle {
  margin: 0;
  opacity: 0.9;
  font-size: 1rem;
}

.module-isolated-agenda .header-actions {
  display: flex;
  gap: 0.5rem;
}

.module-isolated-agenda .btn-header {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.module-isolated-agenda .btn-header:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.module-isolated-agenda .btn-header.active {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.module-isolated-agenda .breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

.module-isolated-agenda .breadcrumb-separator {
  opacity: 0.6;
}

.module-isolated-agenda .breadcrumb-item.active {
  font-weight: 600;
}

/* Stats Grid */
.module-isolated-agenda .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.module-isolated-agenda .stat-card-enhanced {
  background: var(--gradient-primary);
  color: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition-bounce);
  box-shadow: var(--shadow-card);
}

.module-isolated-agenda .stat-card-enhanced:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

.module-isolated-agenda .stat-icon {
  font-size: 2rem;
  opacity: 0.9;
}

.module-isolated-agenda .stat-content {
  flex: 1;
}

.module-isolated-agenda .stat-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.module-isolated-agenda .stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Filters */
.module-isolated-agenda .module-filters-premium {
  background: var(--color-surface);
  border: 1px solid #e2e8f0;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-card);
}

.module-isolated-agenda .filters-left {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.module-isolated-agenda .filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.module-isolated-agenda .filter-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.module-isolated-agenda .filter-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: white;
  min-width: 150px;
  transition: var(--transition-smooth);
}

.module-isolated-agenda .filter-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.module-isolated-agenda .btn-filter {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.module-isolated-agenda .btn-filter:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Calendar Container */
.module-isolated-agenda .calendar-container {
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-background) 100%);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.module-isolated-agenda .calendar-header {
  background: var(--gradient-secondary);
  color: white;
  padding: 1.5rem;
}

.module-isolated-agenda .calendar-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.module-isolated-agenda .nav-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.module-isolated-agenda .nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.module-isolated-agenda .calendar-title {
  text-align: center;
}

.module-isolated-agenda .calendar-title h2 {
  margin: 0 0 0.25rem 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.module-isolated-agenda .calendar-subtitle {
  margin: 0;
  opacity: 0.9;
  font-size: 0.9rem;
}

.module-isolated-agenda .calendar-content {
  padding: 2rem;
  min-height: 400px;
}

/* Today View */
.module-isolated-agenda .today-schedule {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.module-isolated-agenda .time-slot {
  border-left: 4px solid var(--primary-color);
  padding-left: 1.5rem;
}

.module-isolated-agenda .time-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.module-isolated-agenda .time-display {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
}

.module-isolated-agenda .classes-count {
  font-size: 0.9rem;
  color: var(--color-text-light);
  background: #f1f5f9;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
}

.module-isolated-agenda .classes-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1rem;
}

/* Class Cards */
.module-isolated-agenda .class-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  transition: var(--transition-bounce);
  cursor: pointer;
}

.module-isolated-agenda .class-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

.module-isolated-agenda .class-card.scheduled {
  border-left: 4px solid #3b82f6;
}

.module-isolated-agenda .class-card.in-progress {
  border-left: 4px solid #10b981;
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
}

.module-isolated-agenda .class-card.completed {
  border-left: 4px solid #6b7280;
  opacity: 0.8;
}

.module-isolated-agenda .class-card.cancelled {
  border-left: 4px solid #ef4444;
  background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
}

.module-isolated-agenda .class-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.module-isolated-agenda .class-title h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
}

.module-isolated-agenda .course-name {
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 500;
}

.module-isolated-agenda .status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.module-isolated-agenda .status-badge.scheduled {
  background: #dbeafe;
  color: #1d4ed8;
}

.module-isolated-agenda .status-badge.in-progress {
  background: #dcfce7;
  color: #166534;
}

.module-isolated-agenda .status-badge.completed {
  background: #f3f4f6;
  color: #374151;
}

.module-isolated-agenda .status-badge.cancelled {
  background: #fee2e2;
  color: #dc2626;
}

.module-isolated-agenda .class-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.module-isolated-agenda .info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.module-isolated-agenda .info-icon {
  font-size: 1rem;
}

.module-isolated-agenda .class-actions {
  display: flex;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.module-isolated-agenda .btn-action {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.module-isolated-agenda .btn-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.module-isolated-agenda .btn-checkin {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.module-isolated-agenda .btn-details {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

/* Week View */
.module-isolated-agenda .week-view {
  display: flex;
  flex-direction: column;
  height: 600px;
}

.module-isolated-agenda .week-header {
  display: grid;
  grid-template-columns: 80px repeat(7, 1fr);
  gap: 1px;
  background: #e2e8f0;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.module-isolated-agenda .day-header {
  background: var(--gradient-primary);
  color: white;
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.module-isolated-agenda .day-header.today {
  background: var(--gradient-secondary);
}

.module-isolated-agenda .day-header:first-child {
  background: #64748b;
}

.module-isolated-agenda .day-name {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.module-isolated-agenda .day-number {
  font-size: 1.2rem;
  font-weight: 700;
}

.module-isolated-agenda .week-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
}

.module-isolated-agenda .time-row {
  display: grid;
  grid-template-columns: 80px repeat(7, 1fr);
  gap: 1px;
  background: #e2e8f0;
  min-height: 60px;
}

.module-isolated-agenda .time-label {
  background: #f8fafc;
  padding: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #e2e8f0;
}

.module-isolated-agenda .day-cell {
  background: white;
  padding: 0.25rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.module-isolated-agenda .mini-class-card {
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.module-isolated-agenda .mini-class-card:hover {
  transform: scale(1.02);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.module-isolated-agenda .mini-class-card.in-progress {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.module-isolated-agenda .mini-class-card.completed {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.module-isolated-agenda .mini-class-card.cancelled {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.module-isolated-agenda .mini-class-title {
  font-weight: 600;
  margin-bottom: 0.125rem;
}

.module-isolated-agenda .mini-class-info {
  opacity: 0.9;
  font-size: 0.6rem;
}

/* Month View */
.module-isolated-agenda .month-view {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.module-isolated-agenda .month-placeholder {
  text-align: center;
  color: var(--color-text-light);
}

.module-isolated-agenda .placeholder-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.module-isolated-agenda .placeholder-text {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.module-isolated-agenda .placeholder-subtext {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Empty and Error States */
.module-isolated-agenda .empty-state,
.module-isolated-agenda .error-state {
  text-align: center;
  padding: 3rem;
  color: var(--color-text-light);
}

.module-isolated-agenda .empty-icon,
.module-isolated-agenda .error-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.module-isolated-agenda .empty-message,
.module-isolated-agenda .error-message {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.module-isolated-agenda .empty-submessage {
  font-size: 0.9rem;
  opacity: 0.8;
}

.module-isolated-agenda .btn-retry {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-top: 1rem;
  font-weight: 600;
}

.module-isolated-agenda .btn-retry:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Loading Overlay */
.module-isolated-agenda .loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.module-isolated-agenda .loading-content {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-elevated);
}

.module-isolated-agenda .loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f4f6;
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem auto;
}

.module-isolated-agenda .loading-text {
  color: var(--color-text-light);
  font-weight: 600;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .module-isolated-agenda .classes-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .module-isolated-agenda .module-header-premium {
    padding: 1.5rem;
  }
  
  .module-isolated-agenda .header-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .module-isolated-agenda .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .module-isolated-agenda .module-filters-premium {
    flex-direction: column;
    gap: 1rem;
  }
  
  .module-isolated-agenda .filters-left {
    flex-direction: column;
    width: 100%;
  }
  
  .module-isolated-agenda .filter-select {
    min-width: 100%;
  }
  
  .module-isolated-agenda .calendar-content {
    padding: 1rem;
  }
  
  .module-isolated-agenda .class-info {
    grid-template-columns: 1fr;
  }
  
  .module-isolated-agenda .class-actions {
    flex-direction: column;
  }
  
  .module-isolated-agenda .week-header {
    grid-template-columns: 60px repeat(7, 1fr);
  }
  
  .module-isolated-agenda .time-row {
    grid-template-columns: 60px repeat(7, 1fr);
  }
  
  .module-isolated-agenda .day-header {
    padding: 0.5rem;
  }
  
  .module-isolated-agenda .day-name {
    font-size: 0.7rem;
  }
  
  .module-isolated-agenda .day-number {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .module-isolated-agenda .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .module-isolated-agenda .header-actions {
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  
  .module-isolated-agenda .btn-header {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* Class Details Modal */
.class-details-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
}

.class-details-modal .modal-overlay {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.class-details-modal .modal-content {
  background: var(--color-surface);
  border-radius: var(--border-radius);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-elevated);
}

.class-details-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.class-details-modal .modal-header h2 {
  margin: 0;
  color: var(--primary-color);
}

.class-details-modal .modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-text-light);
}

.class-details-modal .modal-close:hover {
  color: var(--color-text);
}

.class-details-modal .modal-body {
  padding: 1.5rem;
}

.class-details-modal .class-detail-section {
  margin-bottom: 2rem;
}

.class-details-modal .class-detail-section h3 {
  margin: 0 0 1rem 0;
  color: var(--color-text);
  font-size: 1.1rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
}

.class-details-modal .detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.class-details-modal .detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.class-details-modal .detail-item label {
  font-weight: 600;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.class-details-modal .detail-item span {
  color: var(--color-text);
}

.class-details-modal .attendances-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.class-details-modal .attendance-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.class-details-modal .attendance-item:last-child {
  border-bottom: none;
}

.class-details-modal .student-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.class-details-modal .student-name {
  font-weight: 600;
  color: var(--color-text);
}

.class-details-modal .student-reg {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.class-details-modal .attendance-status {
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

.class-details-modal .attendance-status.present {
  background: #dcfce7;
  color: #166534;
}

.class-details-modal .attendance-status.absent {
  background: #fef2f2;
  color: #991b1b;
}

.class-details-modal .checkin-time {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.class-details-modal .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.class-details-modal .btn-secondary,
.class-details-modal .btn-primary {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.class-details-modal .btn-secondary {
  background: #f1f5f9;
  color: var(--color-text);
}

.class-details-modal .btn-secondary:hover {
  background: #e2e8f0;
}

.class-details-modal .btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.class-details-modal .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-elevated);
}

/* Month View */
.module-isolated-agenda .month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #e2e8f0;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.module-isolated-agenda .month-header-row {
  display: contents;
}

.module-isolated-agenda .month-day-header {
  background: var(--gradient-primary);
  color: white;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
}

.module-isolated-agenda .month-day-cell {
  background: var(--color-surface);
  min-height: 120px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.module-isolated-agenda .month-day-cell:hover {
  background: #f8fafc;
}

.module-isolated-agenda .month-day-cell.other-month {
  background: #f1f5f9;
  color: var(--color-text-light);
}

.module-isolated-agenda .month-day-cell.today {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border: 2px solid var(--primary-color);
}

.module-isolated-agenda .month-day-cell.has-classes {
  border-left: 4px solid var(--primary-color);
}

.module-isolated-agenda .day-number {
  font-weight: 600;
  margin-bottom: 0.5rem;
  align-self: flex-start;
}

.module-isolated-agenda .day-classes {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.module-isolated-agenda .mini-class-event {
  background: var(--gradient-primary);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 4px;
}

.module-isolated-agenda .mini-class-event:hover {
  transform: scale(1.05);
}

.module-isolated-agenda .mini-class-event.scheduled {
  background: var(--gradient-primary);
}

.module-isolated-agenda .mini-class-event.in-progress {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.module-isolated-agenda .mini-class-event.completed {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

.module-isolated-agenda .mini-class-event.cancelled {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
}

.module-isolated-agenda .class-time {
  font-weight: 600;
  white-space: nowrap;
}

.module-isolated-agenda .class-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.module-isolated-agenda .more-classes {
  background: var(--color-text-light);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.module-isolated-agenda .more-classes:hover {
  background: var(--color-text);
}

.module-isolated-agenda .month-summary {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--border-radius);
}

.module-isolated-agenda .summary-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

.module-isolated-agenda .summary-item {
  text-align: center;
}

.module-isolated-agenda .summary-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.module-isolated-agenda .summary-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Responsive adjustments for modal and month view */
@media (max-width: 768px) {
  .class-details-modal .modal-overlay {
    padding: 1rem;
  }
  
  .class-details-modal .detail-grid {
    grid-template-columns: 1fr;
  }
  
  .class-details-modal .modal-footer {
    flex-direction: column;
  }
  
  .module-isolated-agenda .month-day-cell {
    min-height: 80px;
    padding: 0.25rem;
  }
  
  .module-isolated-agenda .month-day-header {
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
  }
  
  .module-isolated-agenda .summary-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
