:root {
  --primary-color: #FF44AB
;
  --secondary-color: #10b981;
  --accent-color: #8b5cf6;
  --background-color: #f9fafb;
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
  --sidebar-width: 260px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--background-color);
  color: var(--text-dark);
  line-height: 1.6;
}

/* Login Page */
.login-page {
  min-height: 100vh;
}

.login-left {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.login-form-container {
  max-width: 420px;
  width: 100%;
  padding: 2rem;
}

.login-form-container .btn-primary {
  background-color: var(--primary-color);
  border: none;
  font-weight: 500;
}

.login-form-container .btn-primary:hover {
  background-color: #3b82f6;
}

.input-group-text {
  background-color: white;
  border-right: none;
}

.input-group .form-control {
  border-left: none;
}

.input-group .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: none;
}

.input-group-text {
  border-color: #ced4da;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background-color: white;
  border-right: 1px solid var(--border-color);
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  z-index: 1000;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--primary-color);
}

.sidebar-menu {
  list-style: none;
  padding: 1rem 0;
  flex: 1;
}

.sidebar-menu li {
  margin: 0.25rem 0;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.3s ease;
}

.sidebar-menu a i {
  margin-right: 0.75rem;
  font-size: 1.1rem;
  width: 20px;
}

.sidebar-menu a:hover {
  background-color: var(--background-color);
  color: var(--primary-color);
}

.sidebar-menu li.active a {
  background-color: #eff6ff;
  color: var(--primary-color);
  font-weight: 500;
}

.sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
}

.sidebar-footer a {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  text-decoration: none;
}

.sidebar-footer a i {
  margin-right: 0.75rem;
}

/* Main Content */
.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  background-color: var(--background-color);
  width: calc(100% - var(--sidebar-width));
}

.content-wrapper {
  padding: 2rem;
  max-width: 100%;
  width: 100%;
}

.content-header {
  margin-bottom: 2rem;
}

.content-header h2 {
  font-weight: 600;
  color: var(--text-dark);
}

/* Stats Cards */
.stat-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-icon-blue {
  background-color: #eff6ff;
  color: var(--primary-color);
}

.stat-icon-green {
  background-color: #d1fae5;
  color: var(--secondary-color);
}

.stat-icon-purple {
  background-color: #ede9fe;
  color: var(--accent-color);
}

.stat-icon-teal {
  background-color: #ccfbf1;
  color: #14b8a6;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.stat-change {
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.stat-change.positive {
  color: var(--secondary-color);
}

.stat-change.negative {
  color: #FF44AB
;
}

/* Cards */
.card {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card-header {
  background-color: white;
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem;
}

.card-title {
  font-weight: 600;
  color: var(--text-dark);
}

/* Tables */
.table {
  margin-bottom: 0;
}

.table thead th {
  border-bottom: 2px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table tbody tr:hover {
  background-color: var(--background-color);
}

/* Badges */
.badge {
  font-weight: 500;
  padding: 0.35rem 0.75rem;
}

.badge-success {
  background-color: #d1fae5;
  color: #065f46;
}

.badge-warning {
  background-color: #fef3c7;
  color: #92400e;
}

.badge-danger {
  background-color: #fee2e2;
  color: #991b1b;
}

.badge-info {
  background-color: #dbeafe;
  color: #1e40af;
}

/* Buttons */
.btn {
  font-weight: 500;
  border-radius: 8px;
  padding: 0.5rem 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #3b82f6;
  border-color: #3b82f6;
}

.btn-success {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-success:hover {
  background-color: #059669;
  border-color: #059669;
}

/* Responsive */
@media (max-width: 991px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    width: 100%; /* Adjust for full width when sidebar is hidden */
  }
}

/* Chat List */
.chat-list-item {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background-color 0.2s;
}

.chat-list-item:hover {
  background-color: var(--background-color);
}

.chat-list-item.active {
  background-color: #eff6ff;
  border-left: 3px solid var(--primary-color);
}

/* Chat Messages */
.chat-message {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  max-width: 70%;
}

.chat-message.sent {
  background-color: #eff6ff;
  margin-left: auto;
}

.chat-message.received {
  background-color: #f3f4f6;
}

/* Content Cards */
.content-card {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.content-thumbnail {
  height: 180px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary-color);
}











.chat-message {
  padding: 10px 15px;
  margin: 8px 0;
  border-radius: 12px;
  position: relative;
  max-width: 80%;
  animation: fadeIn 0.3s ease;
}
.chat-message.sent {
  background-color: #cce5ff;
  align-self: flex-end;
}
.chat-message.received {
  background-color: #f1f1f1;
  align-self: flex-start;
}
.message-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.75rem;
  gap: 2px;
}
.message-actions .btn-delete-message {
  cursor: pointer;
  font-size: 0.9rem;
  display: none;
}
.chat-message:hover .btn-delete-message {
  display: inline-block;
}
.fade-in {
  animation: fadeIn 0.3s ease-in;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
.admin-input {
  position: sticky;
  bottom: 0;
  background: white;
  padding: 10px 0;
}







































 /* Chat-specific styles that don't affect the sidebar */
 .chat-container {
  height: calc(100vh - 140px);
  background: #f8fafc;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.chat-list-container {
  background: white;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 1.25rem;
  background: white;
  border-bottom: 1px solid #e2e8f0;
}

.chat-tabs {
  border-bottom: 1px solid #e2e8f0;
}

.chat-tabs .nav-link {
  color: #64748b;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border: none;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.chat-tabs .nav-link:hover {
  color: #475569;
  background: #f8fafc;
}

.chat-tabs .nav-link.active {
  color: #10b981;
  border-bottom-color: #10b981;
  background: transparent;
}

.chat-search {
  position: relative;
  margin: 1rem 1.25rem;
}

.chat-search input {
  padding-left: 2.5rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.chat-search i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.chat-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
}

.chat-item {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.chat-item:hover {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.chat-item.active {
  background: #f0fdf4;
  border-color: #10b981;
  border-left: 4px solid #10b981;
}

.chat-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
}

.group-avatar {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.chat-info {
  flex: 1;
}

.chat-name {
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.chat-preview {
  font-size: 0.875rem;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chat-meta {
  text-align: right;
  min-width: 60px;
}

.chat-time {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 0.25rem;
}

.unread-badge {
  background: #ef4444;
  color: white;
  border-radius: 10px;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.chat-window {
  display: flex;
  flex-direction: column;
  background: white;
}

.chat-window-header {
  padding: 1rem 1.5rem;
  background: white;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.chat-status {
  font-size: 0.875rem;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.chat-actions {
  display: flex;
  gap: 0.5rem;
}

.chat-actions button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: white;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.chat-actions button:hover {
  background: #f1f5f9;
  color: #10b981;
  border-color: #cbd5e1;
}

.messages-container {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message {
  max-width: 70%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  position: relative;
}

.message.received {
  align-self: flex-start;
  background: white;
  border-top-left-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.message.sent {
  align-self: flex-end;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border-bottom-right-radius: 4px;
}

.message-sender {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #475569;
}

.message.sent .message-sender {
  color: rgba(255, 255, 255, 0.9);
}

.message-content {
  line-height: 1.5;
}

.message-time {
  font-size: 0.75rem;
  text-align: right;
  margin-top: 0.5rem;
  opacity: 0.8;
}

.attachment-preview {
  margin-top: 0.75rem;
  border-radius: 8px;
  overflow: hidden;
  max-width: 250px;
}

.attachment-preview img {
  width: 100%;
  height: auto;
  display: block;
}

.file-attachment {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-top: 0.75rem;
}

.file-attachment i {
  font-size: 1.5rem;
  margin-right: 0.75rem;
}

.file-info {
  flex: 1;
}

.file-name {
  font-weight: 500;
  font-size: 0.875rem;
}

.file-size {
  font-size: 0.75rem;
  opacity: 0.8;
}

.message-input-container {
  padding: 1rem 1.5rem;
  background: white;
  border-top: 1px solid #e2e8f0;
}

.input-actions {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.input-action-btn {
  background: none;
  border: none;
  color: #64748b;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s;
}

.input-action-btn:hover {
  color: #10b981;
  background: #f1f5f9;
}

.message-input-form {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

.message-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  resize: none;
  max-height: 120px;
  min-height: 44px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.message-input::-webkit-scrollbar {
  display: none;
}

.message-input:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.send-btn {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.send-btn:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-1px);
}



.send-btn:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
  transform: none;
}

/* Modal enhancements */
.file-upload-area {
  border: 2px dashed #e2e8f0;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.file-upload-area:hover {
  border-color: #10b981;
  background: #f0fdf4;
}

.file-upload-area i {
  font-size: 2.5rem;
  color: #10b981;
  margin-bottom: 1rem;
}

.user-select-list {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.5rem;
}

.user-select-item {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background 0.2s;
}

.user-select-item:hover {
  background: #f1f5f9;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .chat-container {
      height: calc(100vh - 120px);
  }
  
  .messages-container {
      padding: 1rem;
  }
  
  .message {
      max-width: 85%;
  }
}

@media (max-width: 768px) {
  .chat-container {
      height: auto;
      min-height: calc(100vh - 120px);
  }
  
  .chat-list-container {
      height: 300px;
      border-right: none;
      border-bottom: 1px solid #e2e8f0;
  }
  
  .chat-window {
      height: 400px;
  }
}

/* Scrollbar styling */
.chat-list::-webkit-scrollbar,
.messages-container::-webkit-scrollbar {
  width: 6px;
}

.chat-list::-webkit-scrollbar-track,
.messages-container::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.chat-list::-webkit-scrollbar-thumb,
.messages-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.chat-list::-webkit-scrollbar-thumb:hover,
.messages-container::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}






/*Content.html*/

 /* Additional custom styles for resources page */
 .media-card, .article-card, .quiz-card {
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #e0e0e0;
}

.media-card:hover, .article-card:hover, .quiz-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card-title {
  color: #333;
  font-weight: 500;
}

.badge-info {
  background-color: #17a2b8;
}

.badge-primary {
  background-color: #007bff;
}

.badge-success {
  background-color: #28a745;
}

.badge-warning {
  background-color: #ffc107;
  color: #212529;
}

.badge-danger {
  background-color: #dc3545;
}

.form-control:focus, .form-select:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.btn-primary {
  background-color: #007bff;
  border-color: #007bff;
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

.nav-tabs .nav-link {
  color: #6c757d;
  border: none;
  padding: 10px 15px;
}

.nav-tabs .nav-link:hover {
  color: #007bff;
}

.nav-tabs .nav-link.active {
  color: #007bff;
  border-bottom: 2px solid #007bff;
  background-color: transparent;
}

.card {
  border: 1px solid #dee2e6;
  border-radius: 8px;
}

.modal-content {
  border-radius: 8px;
}

.modal-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #6c757d;
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 15px;
}

/* Quiz specific styles */
.question-card {
  background-color: #f8f9fa;
  border-left: 4px solid #007bff;
  margin-bottom: 15px;
}

.option-letter {
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  background-color: #e9ecef;
  border-radius: 50%;
  margin-right: 10px;
  font-weight: bold;
}

.option-letter.correct {
  background-color: #28a745;
  color: white;
}

.option-container {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 8px;
  background-color: white;
  border-radius: 5px;
  border: 1px solid #dee2e6;
}

.option-container.correct-option {
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.correct-badge {
  margin-left: auto;
  font-size: 0.8rem;
}

.question-counter {
  font-size: 0.9rem;
  color: #6c757d;
  margin-left: 10px;
}

.question-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}