/* public/css/admin.css */

:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --primary-dark: #2ecc71;
    --background-color: #f4f4f4;
    --text-color: #333;
    --border-color: #ddd;
    --header-bg: #34495e;
    --danger-color: #e74c3c;
  }
  
  .wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .content {
    flex: 1;
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
  }
  
  .container {
    width: 100%;
    min-height: 500px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
  }
  
  /* Header Styles */
  header {
    background-color: var(--header-bg);
    color: #fff;
    padding: 1rem 0;
  }
  
  nav ul {
    display: flex;
    justify-content: center;
    list-style-type: none;
  }
  
  nav ul li {
    margin: 0 15px;
  }
  
  nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
  }
  
  nav ul li a:hover {
    color: var(--secondary-color);
  }

  nav ul li.active a {
    color: var(--secondary-color);
}
  
  /* Main Content Styles */
  main {
    margin-top: 2rem;
  }
  
  h1, h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
  }
  
  /* Table Styles */
  .schools-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
  }
  
  .schools-table th,
  .schools-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
  }
  
  .schools-table thead {
    background-color: var(--primary-color);
    color: #fff;
  }
  
  .schools-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
  }
  
  .schools-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
  }
  
  .schools-table tbody tr:hover {
    background-color: #e9ecef;
  }
  
  /* Sortable Headers */
  .sortable {
    cursor: pointer;
  }
  
  .sort-icon {
    margin-left: 5px;
  }
  
  /* Button Styles */
  .btn {
    display: inline-block;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.1s ease;
  }
  
  .btn:hover {
    transform: translateY(-1px);
  }
  
  .btn-primary {
    background-color: var(--primary-color);
    color: #fff;
  }
  
  .btn-primary:hover {
    background-color: #2980b9;
  }
  
  .btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
  }
  
  .btn-secondary:hover {
    background-color: #27ae60;
  }
  
  .btn-danger {
    background-color: var(--danger-color);
    color: #fff;
  }
  
  .btn-danger:hover {
    background-color: #c0392b;
  }
  
  /* Form Styles */
  .search-form {
    display: flex;
    margin-bottom: 2rem;
  }
  
  .search-form input[type="text"] {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
  }
  
  .search-form button {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
  }
  
  .search-form button:hover {
    background-color: #2980b9;
  }
  
  .page-info {
    margin: 0 10px;
    font-weight: 500;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .container {
      width: 95%;
    }
  
    .schools-table {
      font-size: 14px;
    }
  
    .schools-table th,
    .schools-table td {
      padding: 8px 10px;
    }
  
    .btn {
      padding: 6px 12px;
      font-size: 12px;
    }
  
    .search-form {
      flex-direction: column;
    }
  
    .search-form input[type="text"],
    .search-form button {
      width: 100%;
      border-radius: 4px;
    }
  
    .search-form input[type="text"] {
      margin-bottom: 10px;
      border-right: 1px solid var(--border-color);
    }
  }
  
  /* Edit School Form Styles */
  .edit-school-form {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
  }
  
  .form-group input[type="text"],
  .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
  }

 select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
  
  .form-group textarea {
    min-height: 100px;
    resize: vertical;
  }
  
  .form-actions {
    text-align: right;
    margin-top: 2rem;
  }
  
  .form-actions .btn + .btn {
    margin-left: 10px;
  }
  
  /* Footer Styles */
  footer {
    background-color: var(--header-bg);
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
  }

  .site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logout-button {
  display: flex;
    margin-left: 20px;
}

.btn-logout {
    padding: 8px 15px;
    background-color: #f44336;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn-logout:hover {
    background-color: #d32f2f;
}

.btn-logout i {
    margin-right: 5px;
}


  /* Dashboard Styles */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
  }
  
  .dashboard-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }
  
  .dashboard-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
  }
  
  .dashboard-card .count {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-color);
  }
  
  .dashboard-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 2rem;
  }
  
  .dashboard-action {
    background-color: var(--primary-color);
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
  }
  
  .dashboard-action:hover {
    background-color: var(--secondary-color);
  }
  
  .recent-activities {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-top: 2rem;
  }
  
  .recent-activities h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
  }
  
  .activity-list {
    list-style-type: none;
  }
  
  .activity-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
  }
  
  .activity-item:last-child {
    border-bottom: none;
  }
  
  .activity-item .time {
    font-size: 0.9rem;
    color: #777;
  }
  
  /* Responsive styles for dashboard */
  @media (max-width: 768px) {
    .dashboard {
      grid-template-columns: 1fr;
    }
  
    .dashboard-actions {
      grid-template-columns: 1fr;
    }
  }


  /* OTP Login Page Styles */
.auth-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .auth-container h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
  }
  
  .auth-container .error {
    background-color: #ffe6e6;
    border: 1px solid #ff9999;
    color: #cc0000;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-align: center;
  }
  
  .auth-container form {
    display: flex;
    flex-direction: column;
  }
  
  .auth-container input {
    padding: 10px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
  }
  
  .auth-container input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(144, 156, 60, 0.2);
  }
  
  .auth-container button {
    padding: 10px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .auth-container button:hover {
    background-color: var(--primary-dark);
  }
  
  /* Responsive design */
  @media (max-width: 480px) {
    .auth-container {
      margin: 20px auto;
      padding: 1.5rem;
    }
  
    .auth-container h1 {
      font-size: 1.5rem;
    }
  }

  /* School Page Styles */
.school-container {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin-bottom: 2rem;
}

.school-container h1 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.school-container p {
  margin-bottom: 1rem;
}

.school-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-card {
  display: block; /* Делаем карточку блочным элементом */
  text-decoration: none; /* Убираем подчеркивание ссылки */
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.stat-card h3 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.stat-card p {
  font-size: 2rem;
  font-weight: bold;
  color: var(--text-color);
  margin: 0;
}

/* Уникальные цвета для каждой карточки */
.stat-card:nth-child(1) {
  border-top: 4px solid #3498db; /* Синий для классов */
}

.stat-card:nth-child(2) {
  border-top: 4px solid #2ecc71; /* Зеленый для учеников */
}

.stat-card:nth-child(3) {
  border-top: 4px solid #f1c40f; /* Желтый для администраторов */
}

/* Добавляем стиль для курсора, чтобы показать, что элемент кликабельный */
.stat-card {
  cursor: pointer;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.admin-table th,
.admin-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.admin-table th {
  background-color: var(--primary-color);
  color: #fff;
}

.admin-table tr:nth-child(even) {
  background-color: #f8f9fa;
}

.actions {
  display: flex;
  gap: 1rem;
}

.actions .btn {
  flex: 1;
  text-align: center;
}

@media (max-width: 768px) {
  .school-stats {
    grid-template-columns: 1fr;
  }

  .stat-card {
    margin-bottom: 1rem;
  }

  .actions {
    flex-direction: column;
  }

  .actions .btn {
    margin-bottom: 0.5rem;
  }
}

.students-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

.students-table th, .students-table td {
  border: 1px solid #e0e0e0;
  padding: 12px;
  text-align: left;
}

.students-table th {
  background-color: var(--primary-color);
  color: white;
  font-weight: bold;
}

.students-table tr:nth-child(even) {
  background-color: #f8f8f8;
}

.students-table tr:hover {
  background-color: #f0f0f0;
}

.students-table td:last-child {
  text-align: center;
  font-weight: bold;
}

.actions-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.btn-create {
  background-color: #4CAF50;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
}

.btn-create:hover {
  background-color: #45a049;
}

.sp-form { 
  margin-bottom: 20px; 
}

.sp-form label { 
  display: block; 
  margin-top: 10px; 
}

.sp-form input[type="text"], 
.sp-form textarea, 
.sp-form select { 
  width: 100%; 
  padding: 8px; 
  margin-top: 5px; 
}

.sp-button { 
  padding: 10px 15px; 
  background-color: #4CAF50; 
  color: white; 
  border: none; 
  cursor: pointer; 
  margin-top: 10px; 
}

.sp-button:hover { 
  background-color: #45a049; 
}

.sp-participants-list { 
  list-style-type: none; 
  padding: 0; 
}

.sp-participant-item { 
  background-color: #f1f1f1; 
  margin-bottom: 5px; 
  padding: 10px; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
}

.sp-error { 
  color: red; 
}

.sp-class-section { 
  margin-bottom: 20px; 
}

.sp-student-list { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 10px; 
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #ccc;
  padding: 10px;
  margin-top: 10px;
}

.sp-student-item { 
  background-color: #e9e9e9; 
  padding: 5px 10px; 
  border-radius: 5px; 
  display: flex; 
  align-items: center; 
  transition: all 0.3s ease; 
}

.sp-student-item input[type="checkbox"] { 
  margin-right: 5px; 
}

.sp-student-item.selected { 
  background-color: #4CAF50; 
  color: white; 
}

.sp-student-item.selected:hover { 
  background-color: #45a049; 
}

.sp-student-item:hover { 
  background-color: #d1d1d1; 
}

.sp-current-participants { 
  margin-top: 20px; 
}

.sp-select-all-container {
  margin: 10px 0;
  display: flex;
  align-items: center;
}

.sp-select-all-container input[type="checkbox"] {
  margin-right: 5px;
}



.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.users-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #ddd;
  padding: 10px;
  margin-bottom: 20px;
}

.user-item {
  padding: 5px 0;
}

.selected-users {
  margin-top: 20px;
}

.selected-user {
  display: inline-block;
  padding: 5px 10px;
  margin: 5px;
  background: #e9ecef;
  border-radius: 4px;
}

.btn-create {
  background: #28a745;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn-create:hover {
  background: #218838;
}

.selected-users {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.selected-user {
  display: inline-block;
  padding: 5px 10px;
  margin: 5px;
  background: #e9ecef;
  border-radius: 4px;
}

.remove-user {
  background: none;
  border: none;
  color: #dc3545;
  margin-left: 5px;
  cursor: pointer;
}

.remove-user:hover {
  color: #c82333;
}

.form-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
}

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

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

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #545b62;
}

/* event */
.events-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.event-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.event-date {
  color: #007bff;
  font-weight: 500;
  margin-bottom: 5px;
}

.event-time {
  color: #666;
  font-size: 14px;
  margin-bottom: 10px;
}

.event-title {
  margin: 10px 0;
  color: #333;
}

.event-description {
  color: #666;
  margin-bottom: 15px;
  line-height: 1.4;
}

.event-school {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  padding-left: 5px;
  border-left: 3px solid #007bff;
}

.event-actions {
  display: flex;
  gap: 10px;
}

.btn-edit {
  background: #28a745;
  color: white;
}

.btn-delete {
  background: #dc3545;
  color: white;
}

/* create event */


.event-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.event-heading {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
}

.event-form {
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.event-form-group {
  margin-bottom: 20px;
}

.event-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #444;
}

.event-input,
.event-select,
.event-textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.event-input:focus,
.event-select:focus,
.event-textarea:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
  outline: none;
}

.event-textarea {
  min-height: 120px;
  resize: vertical;
}

.event-form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.event-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.1s;
}

.event-btn:active {
  transform: translateY(1px);
}

.event-btn-create {
  background: #4a90e2;
  color: white;
}

.event-btn-create:hover {
  background: #357abd;
}

.event-btn-cancel {
  background: #f3f4f6;
  color: #374151;
}

.event-btn-cancel:hover {
  background: #e5e7eb;
}

/* Стили для datetime-local input */
.event-input[type="datetime-local"] {
  min-height: 42px; /* Для консистентности с другими полями */
}

/* Стили для валидации */
.event-input:invalid,
.event-select:invalid,
.event-textarea:invalid {
  border-color: #ff4444;
}

.event-input:invalid:focus,
.event-select:invalid:focus,
.event-textarea:invalid:focus {
  box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.1);
}


/* discussion */
.discussion-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.discussion-heading {
  font-size: 24px;
  margin-bottom: 24px;
  color: #333;
}

.discussion-form {
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.discussion-form-group {
  margin-bottom: 20px;
}

.discussion-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #444;
}

.discussion-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.discussion-input,
.discussion-select,
.discussion-textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.discussion-checkbox {
  width: 18px;
  height: 18px;
  margin: 0;
}

.discussion-input:focus,
.discussion-select:focus,
.discussion-textarea:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
  outline: none;
}

.discussion-textarea {
  min-height: 120px;
  resize: vertical;
}

.discussion-form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.discussion-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.1s;
}

.discussion-btn:active {
  transform: translateY(1px);
}

.discussion-btn-create {
  background: #4a90e2;
  color: white;
}

.discussion-btn-create:hover {
  background: #357abd;
}

.discussion-btn-cancel {
  background: #f3f4f6;
  color: #374151;
}

.discussion-btn-cancel:hover {
  background: #e5e7eb;
}

/* discussion-list */
.discussion-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.discussion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.discussion-heading {
  font-size: 24px;
  color: #333;
  margin: 0;
}

.discussion-filters {
  margin-bottom: 20px;
}

.discussion-list {
  display: grid;
  gap: 20px;
}

.discussion-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  overflow: hidden;
}

.discussion-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.discussion-card-title {
  margin: 0;
  font-size: 18px;
  color: #333;
}

.discussion-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.discussion-badge.global {
  background: #e3f2fd;
  color: #1976d2;
}

.discussion-badge.school {
  background: #f0f4c3;
  color: #827717;
}

.discussion-card-body {
  padding: 20px;
}

.discussion-description {
  margin: 0 0 12px;
  color: #666;
  line-height: 1.5;
}

.discussion-school {
  font-size: 14px;
  color: #666;
  padding-left: 8px;
  border-left: 3px solid #1976d2;
}

.discussion-card-footer {
  padding: 16px 20px;
  background: #f8f9fa;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.discussion-meta {
  font-size: 14px;
  color: #666;
}

.discussion-actions {
  display: flex;
  gap: 8px;
}

.discussion-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s;
}

.discussion-btn-create {
  background: #4a90e2;
  color: white;
}

.discussion-btn-edit {
  background: #28a745;
  color: white;
}

.discussion-btn-delete {
  background: #dc3545;
  color: white;
}

.discussion-empty {
  text-align: center;
  padding: 40px;
  background: white;
  border-radius: 8px;
  color: #666;
}

@media (max-width: 768px) {
  .discussion-card-header {
      flex-direction: column;
      gap: 10px;
      align-items: flex-start;
  }

  .discussion-card-footer {
      flex-direction: column;
      gap: 10px;
  }

  .discussion-actions {
      width: 100%;
  }

  .discussion-btn {
      flex: 1;
      text-align: center;
  }
}

.hidden {
  display: none;
}


/* notification */
.notification-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.notification-heading {
  font-size: 24px;
  margin-bottom: 24px;
  color: #333;
}

.notification-form {
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.notification-form-group {
  margin-bottom: 20px;
}

.notification-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #444;
}

.notification-input,
.notification-select,
.notification-textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.2s;
}

.notification-textarea {
  resize: vertical;
  min-height: 100px;
}

.notification-form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.notification-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.notification-btn-send {
  background: #4CAF50;
  color: white;
}

.notification-btn-cancel {
  background: #f3f4f6;
  color: #374151;
}

.select-container {
  display: flex;
  gap: 10px;
  align-items: center;
}

.select-info {
  color: #666;
  font-size: 14px;
  padding: 5px 10px;
  background: #f5f5f5;
  border-radius: 4px;
}


/* headerMenu */
.site-header {
  background: #2c3e50;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  padding: 20px 0;
  display: block;
  position: relative;
}

.main-nav a:after {
  content: '';
  position: absolute;
  bottom: 15px;
  left: 0;
  width: 0;
  height: 2px;
  background: #3498db;
  transition: width 0.3s;
}

.main-nav a:hover:after {
  width: 100%;
}

.btn-logout {
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
  background: #e74c3c;
  transition: background 0.3s;
}

.btn-logout:hover {
  background: #c0392b;
}

@media (max-width: 1324px) {
  .menu-toggle {
      display: block;
  }

  .main-nav {
      position: fixed;
      top: 60px;
      left: -100%;
      width: 250px;
      height: calc(100vh - 60px);
      background: #2c3e50;
      transition: left 0.3s;
      overflow-y: auto;
  }

  .main-nav.active {
      left: 0;
  }

  .main-nav ul {
      flex-direction: column;
      gap: 0;
  }

  .main-nav a {
      padding: 15px 20px;
      border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .main-nav a:after {
      display: none;
  }

  .logout-button {
      margin-left: auto;
  }
}

@media (max-width: 480px) {
  .site-header {
      padding: 0 10px;
  }

  .btn-logout span {
      display: none;
  }

  .btn-logout {
      padding: 8px;
  }
}


.site-header {
  background: #2c3e50;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  padding: 0;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 10px 20px;
  height: 60px;
  width: 60px;
}

@media (max-width: 1324px) {
  .menu-toggle {
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0;
      position: absolute;
      left: 0;
      top: 0;
  }

  .main-nav {
      position: fixed;
      top: 60px;
      left: -250px; /* Начальная позиция за экраном */
      width: 250px;
      height: calc(100vh - 60px);
      background: #2c3e50;
      transition: left 0.3s ease;
      overflow-y: auto;
      box-shadow: 2px 0 5px rgba(0,0,0,0.2);
  }

  .main-nav.active {
      left: 0;
  }

  .logout-button {
    position: absolute;
    right: 20;
      margin-left: auto;
  }
}



/* notification list */

.notification-list-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.btn-create {
  background: #4CAF50;
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.btn-create:hover {
  background: #45a049;
}

.notification-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  gap: 20px;
}

.badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.badge.school {
  background: #e3f2fd;
  color: #1976d2;
}

.badge.class {
  background: #f0f4c3;
  color: #827717;
}

.badge.user {
  background: #e8f5e9;
  color: #2e7d32;
}

.notification-content {
  flex-grow: 1;
}

.notification-title {
  margin: 0 0 10px;
  font-size: 18px;
  color: #333;
}

.notification-body {
  color: #666;
  margin-bottom: 15px;
}

.notification-info {
  display: flex;
  justify-content: space-between;
  color: #666;
  font-size: 14px;
}

.btn-deleteNotification {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  padding: 8px;
  transition: color 0.3s;
}

.btn-deleteNotification:hover {
  color: #c82333;
}

.no-notifications {
  text-align: center;
  padding: 40px;
  background: white;
  border-radius: 8px;
  color: #666;
}

@media (max-width: 768px) {
  .notification-card {
      flex-direction: column;
      gap: 15px;
  }

  .notification-info {
      flex-direction: column;
      gap: 5px;
  }

  .notification-actions {
      text-align: right;
  }
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.pagination-btn {
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  background: white;
  transition: all 0.3s;
}

.pagination-btn:hover {
  background: #f5f5f5;
}

.pagination-btn.active {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .pagination {
      flex-wrap: wrap;
  }
  
  .pagination-btn {
      padding: 6px 12px;
      font-size: 14px;
  }
}

/* Стили для добавления в global.css */
/* Используем префикс .school-ideas для изоляции стилей */

.school-ideas-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.school-ideas-list {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

/* Стили для статусов идей */
.school-idea-status {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}

.school-idea-status-approved {
  color: #28a745;
  background-color: #ecfce5;
}

.school-idea-status-rejected {
  color: #dc3545;
  background-color: #fff2f0;
}

.school-idea-status-pending {
  color: #ffc107;
  background-color: #ffffff;
}

/* Карточка идеи */
.school-idea-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e8e8e8;
}

/* Заголовок идеи */
.school-idea-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
}

/* Описание идеи */
.school-idea-card p {
  margin: 0 0 16px;
  color: #666;
}

/* Мета-информация */
.school-idea-meta {
  color: #666;
  font-size: 14px;
  margin-top: 12px;
}

/* Кнопки действий */
.school-idea-btn {
  padding: 6px 16px;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.school-idea-btn-approve {
  background: #28a745;
  color: white;
}

.school-idea-btn-reject {
  background: #dc3545;
  color: white;
}

/* Время и автор */
.school-idea-time {
  color: #666;
  font-size: 14px;
  margin-top: 8px;
}

.school-idea-author {
  color: #666;
  font-style: normal;
  font-size: 14px;
}


.school-idea-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  display: inline-block;
}

.school-idea-status-confirmed {
  background: #E8F5E9;
  color: #2E7D32;
}

.school-idea-status-rejected {
  background: #FFEBEE;
  color: #C62828;
}

.school-idea-alert {
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.school-idea-alert-success {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #A5D6A7;
}

.school-idea-alert-danger {
  background: #FFEBEE;
  color: #C62828;
  border: 1px solid #EF9A9A;
}

.school-idea-empty {
  text-align: center;
  color: #666;
  padding: 40px;
  border: 2px dashed #ddd;
  border-radius: 8px;
}