/* ========================================
   ОБЩИЕ СТИЛИ ПЛАТФОРМЫ РЦП
   Темно-синяя тема с бирюзовыми акцентами
   ======================================== */

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #0a1628 0%, #1a2f4a 50%, #0d2137 100%);
  min-height: 100vh;
  color: #e0f2f1;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 200, 150, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 150, 200, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ========================================
   GLASSMORPHISM CARDS
   ======================================== */

.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 200, 150, 0.3);
  box-shadow: 0 12px 40px rgba(0, 200, 150, 0.15);
}

/* ========================================
   HEADER
   ======================================== */

.dashboard-header {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 40px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.dashboard-header h1 {
  font-size: 2.5em;
  font-weight: 700;
  background: linear-gradient(135deg, #00c896 0%, #00a8b4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.dashboard-header p {
  color: #8b9dc3;
  font-size: 1.1em;
}

.nav-buttons {
  display: flex;
  gap: 15px;
}

.nav-btn {
  background: rgba(0, 200, 150, 0.2);
  border: 1px solid rgba(0, 200, 150, 0.3);
  color: #00c896;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.nav-btn:hover {
  background: rgba(0, 200, 150, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 200, 150, 0.3);
}

/* ========================================
   STATS CARDS
   ======================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #00c896, #00a8b4);
}

.stat-card h3 {
  font-size: 3em;
  font-weight: 700;
  color: #00c896;
  margin-bottom: 10px;
}

.stat-card p {
  color: #8b9dc3;
  font-size: 1.1em;
  margin-bottom: 5px;
}

.stat-card .trend {
  font-size: 0.9em;
  color: #00a8b4;
}

/* ========================================
   AUTH PAGES (Login/Register/Profile)
   ======================================== */

.auth-container {
  max-width: 500px;
  margin: 80px auto;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 50px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.auth-container h2 {
  font-size: 2.2em;
  font-weight: 700;
  background: linear-gradient(135deg, #00c896 0%, #00a8b4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: 35px;
}

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

.form-group label {
  display: block;
  color: #8b9dc3;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 0.95em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e0f2f1;
  padding: 15px;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #00c896;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 4px rgba(0, 200, 150, 0.1);
}

.error-message {
  background: rgba(244, 67, 54, 0.1);
  border-left: 4px solid #f44336;
  color: #f44336;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 25px;
  text-align: center;
}

.success-message {
  background: rgba(76, 175, 80, 0.1);
  border-left: 4px solid #4caf50;
  color: #4caf50;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 25px;
  text-align: center;
}

.auth-footer {
  text-align: center;
  margin-top: 30px;
  color: #8b9dc3;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-footer a {
  color: #00c896;
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* ========================================
   PROFILE CARDS
   ======================================== */

.profile-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.profile-card h2 {
  color: #00c896;
  margin-bottom: 30px;
  font-size: 1.8em;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(0, 200, 150, 0.3);
}

.profile-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.profile-info-item {
  padding: 20px;
  background: rgba(0, 200, 150, 0.05);
  border-radius: 15px;
  border-left: 4px solid #00c896;
  transition: transform 0.3s;
}

.profile-info-item:hover {
  transform: translateX(5px);
  background: rgba(0, 200, 150, 0.1);
}

.profile-info-item label {
  display: block;
  color: #8b9dc3;
  font-size: 0.9em;
  margin-bottom: 8px;
  font-weight: 500;
}

.profile-info-item span {
  color: #e0f2f1;
  font-size: 1.2em;
  font-weight: 600;
}

/* ========================================
   TABLES
   ======================================== */

.students-table-container {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  overflow-x: auto;
}

.students-table {
  width: 100%;
  border-collapse: collapse;
}

.students-table th {
  background: rgba(0, 200, 150, 0.2);
  color: #00c896;
  padding: 15px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid rgba(0, 200, 150, 0.3);
}

.students-table td {
  padding: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #e0f2f1;
}

.students-table tbody tr {
  transition: background 0.3s;
}

.students-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* ========================================
   BADGES & PROGRESS
   ======================================== */

.badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
  display: inline-block;
}

.badge-success {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.badge-warning {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.badge-danger {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00c896, #00a8b4);
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn-primary {
  background: linear-gradient(135deg, #00c896 0%, #00a8b4 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 200, 150, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #e0f2f1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(0, 200, 150, 0.3);
}

.btn-danger {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
  padding: 12px 24px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-block;
}

.btn-danger:hover {
  background: rgba(244, 67, 54, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(244, 67, 54, 0.3);
}

/* ========================================
   SCROLLBAR
   ======================================== */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 200, 150, 0.3);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 200, 150, 0.5);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .container {
    padding: 20px 15px;
  }

  .dashboard-header {
    flex-direction: column;
    text-align: center;
    padding: 25px;
  }

  .dashboard-header h1 {
    font-size: 1.8em;
  }

  .nav-buttons {
    width: 100%;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .auth-container {
    margin: 40px 20px;
    padding: 35px 25px;
  }

  .students-table {
    font-size: 0.9em;
  }

  .students-table th,
  .students-table td {
    padding: 10px;
  }

  .profile-card {
    padding: 25px;
  }

  .profile-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .auth-container {
    padding: 30px 20px;
  }

  .auth-container h2 {
    font-size: 1.8em;
  }

  .btn-primary,
  .btn-secondary,
  .btn-danger {
    width: 100%;
  }
}
/* ========================================
   СТРАНИЦА ВЫБОРА МОДУЛЕЙ (index.php)
   ======================================== */

.main-header {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 40px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.main-header h1 {
  font-size: 2.5em;
  font-weight: 700;
  background: linear-gradient(135deg, #00c896 0%, #00a8b4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.main-header p {
  color: #8b9dc3;
  font-size: 1.1em;
}

.nav-menu {
  display: flex;
  gap: 15px;
}

.nav-menu .nav-btn {
  background: rgba(0, 200, 150, 0.2);
  border: 1px solid rgba(0, 200, 150, 0.3);
  color: #00c896;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.nav-menu .nav-btn:hover {
  background: rgba(0, 200, 150, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 200, 150, 0.3);
}

.main-heading {
  text-align: center;
  font-size: 2em;
  color: #e0f2f1;
  margin-bottom: 50px;
  font-weight: 600;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.module-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #00c896, #00a8b4);
}

.module-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 200, 150, 0.3);
  box-shadow: 0 12px 40px rgba(0, 200, 150, 0.15);
  transform: translateY(-5px);
}

.module-card h3 {
  font-size: 1.4em;
  color: #00c896;
  margin-bottom: 10px;
  font-weight: 700;
}

.module-card h4 {
  font-size: 1.2em;
  color: #e0f2f1;
  margin-bottom: 12px;
  font-weight: 600;
}

.module-card p {
  color: #8b9dc3;
  font-size: 0.95em;
  margin-bottom: 20px;
  line-height: 1.5;
}

.btn-start {
  width: 100%;
  background: linear-gradient(135deg, #00c896 0%, #00a8b4 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s;
}

.btn-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 200, 150, 0.4);
}

.info-block {
  background: rgba(255, 255, 255, 0.03);
  border-left: 4px solid #00c896;
  padding: 25px 30px;
  border-radius: 12px;
  margin-top: 30px;
}

.info-block h3 {
  color: #00c896;
  font-size: 1.3em;
  margin-bottom: 15px;
  font-weight: 600;
}

.info-block ul {
  list-style: none;
  padding: 0;
}

.info-block li {
  color: #8b9dc3;
  padding: 8px 0 8px 25px;
  position: relative;
  line-height: 1.6;
  font-size: 0.95em;
}

.info-block li::before {
  content: '•';
  color: #00c896;
  font-weight: bold;
  position: absolute;
  left: 8px;
  font-size: 1.2em;
}

@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
    text-align: center;
    padding: 25px;
  }
  
  .main-header h1 {
    font-size: 1.8em;
  }
  
  .nav-menu {
    width: 100%;
    justify-content: center;
  }
  
  .main-heading {
    font-size: 1.5em;
    margin-bottom: 30px;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
  }
  
  .module-card {
    padding: 20px;
  }
}