/**
 * Alkasim Flow — Virtual Live Classroom Styles (WebRTC Interface)
 */
@import './variables.css';

.alkasim-classroom-container {
  height: calc(100vh - 120px);
  min-height: 560px;
  background-color: var(--hero-dark);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  position: relative;
  font-family: var(--font-family);
  box-shadow: var(--shadow-xl);
}

.alkasim-video-area {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Video Stream Grid */
.alkasim-video-grid {
  flex-grow: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
  overflow-y: auto;
  align-items: center;
  justify-content: center;
}

.alkasim-video-tile {
  background-color: var(--gray-800);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  transition: border-color var(--transition-fast);
}

.alkasim-video-tile.active-speaker {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-shadow);
}

.alkasim-video-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.alkasim-video-avatar-fallback {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--primary-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.alkasim-participant-badge {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: var(--white);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Teacher Moderation Controls on Student Tiles */
.alkasim-teacher-tile-actions {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  gap: 0.35rem;
}

.alkasim-mod-btn {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
}

.alkasim-mod-btn:hover {
  background: var(--danger);
}

/* Bottom Control Dock */
.alkasim-classroom-controls {
  height: 72px;
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--gray-800);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0 1.5rem;
}

.alkasim-dock-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--gray-800);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.alkasim-dock-btn:hover {
  background: var(--gray-700);
  transform: scale(1.05);
}

.alkasim-dock-btn.active {
  background: var(--primary);
  color: var(--white);
}

.alkasim-dock-btn.danger {
  background: var(--danger);
  color: var(--white);
}

/* In-class Chat Sidebar */
.alkasim-classroom-sidebar {
  width: 320px;
  background-color: var(--gray-800);
  border-left: 1px solid var(--gray-700);
  display: flex;
  flex-direction: column;
}

.alkasim-chat-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-700);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
}

.alkasim-chat-messages {
  flex-grow: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.alkasim-chat-msg {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
}

.alkasim-chat-author {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 0.2rem;
}

.alkasim-chat-text {
  font-size: 0.85rem;
  color: var(--gray-200);
  margin: 0;
}

.alkasim-chat-input-box {
  padding: 0.75rem;
  border-top: 1px solid var(--gray-700);
  display: flex;
  gap: 0.5rem;
}
