/* Teacher Stats Styles */

.teacher-panel {
    padding: 20px 0;
}

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

.teacher-panel h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 2rem;
}

/* Stats Overview */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-card.clickable {
    cursor: pointer;
}

.stat-card.clickable:hover {
    border-color: #3498db;
    background: linear-gradient(135deg, #ecf0f1 0%, #f8f9fa 100%);
}

.stat-card.active {
    border-color: #00b0f0;
    background: linear-gradient(135deg, rgba(236, 240, 241, 0.3) 0%, rgba(248, 249, 250, 0.5) 100%);
    box-shadow: 0 2px 8px rgba(0, 176, 240, 0.1);
}

.stat-card h3 {
    color: #2c3e50;
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #3498db;
    margin: 8px 0;
}

.stat-subtitle {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-top: 4px;
}

/* Detailed Stats */
.detailed-stats {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #ecf0f1;
}

.stats-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5rem;
}

#back-to-overview {
    padding: 8px 16px;
    background: #95a5a6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#back-to-overview:hover {
    background: #7f8c8d;
}

/* Users Grid */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.user-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.user-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #3498db;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.2rem;
}

.user-info h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.user-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.stat-item .stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

/* Stats Table */
.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.stats-table th,
.stats-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.stats-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.stats-table tr:hover {
    background: #f8f9fa;
}

/* Tests Stats */
.tests-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.test-stat-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #ecf0f1;
}

.test-stat-card h4 {
    margin: 0 0 16px 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.test-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* User Detail */
.user-detail {
    max-width: 800px;
    margin: 0 auto;
}

.user-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
}

.user-avatar.large {
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

.user-info-detail h3 {
    margin: 0 0 4px 0;
    color: #2c3e50;
    font-size: 1.5rem;
}

.user-info-detail p {
    margin: 0;
    color: #7f8c8d;
}

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

.user-stats-summary .stat-card {
    padding: 20px;
}

.user-stats-summary .stat-card h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.user-stats-summary .stat-value {
    font-size: 1.8rem;
}

.user-test-history h4 {
    color: #2c3e50;
    margin-bottom: 16px;
}

.test-results-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.test-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #ecf0f1;
}

.test-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.test-name {
    font-weight: 600;
    color: #2c3e50;
}

.test-date {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.test-score {
    text-align: right;
}

.test-score .score {
    font-weight: 600;
    color: #2c3e50;
    display: block;
}

.test-score .percentage {
    color: #27ae60;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-overview {
        grid-template-columns: 1fr;
    }

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

    .user-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .user-stats {
        align-items: center;
    }

    .stats-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

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

    .user-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

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

    .test-result-item {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
        text-align: center;
    }

    .stats-table {
        font-size: 0.9rem;
    }

    .stats-table th,
    .stats-table td {
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .teacher-panel .container {
        padding: 0 10px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 2rem;
    }

    .user-card {
        padding: 16px;
    }

    .detailed-stats {
        padding: 16px;
    }
}

/* Focus styles for accessibility */
.stat-card:focus,
.user-card:focus,
.btn:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Success and error colors matching the theme */
.success-text {
    color: #27ae60;
    font-weight: 600;
}

.warning-text {
    color: #f39c12;
    font-weight: 600;
}

.error-text {
    color: #e74c3c;
    font-weight: 600;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Стили для преподавательской панели */
.teacher-panel {
  padding: 40px 0;
  min-height: 100vh;
}

.teacher-panel .container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

.teacher-panel .navigation {
  margin-bottom: 30px;
}

.teacher-panel h1 {
  margin-bottom: 40px;
}

.teacher-panel h2 {
  margin: 40px 0 20px 0;
  font-size: 36px;
  line-height: 44px;
  color: #333;
}

.teacher-panel .table-container {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  overflow-x: auto;
}

/* Стили для таблицы пользователей */
.users-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.users-table th,
.users-table td {
  padding: 20px;
  text-align: left;
  border-bottom: 1px solid #eee;
  line-height: 1.4;
}

.users-table th {
  background: linear-gradient(135deg, rgba(0, 176, 240, 0.1), rgba(1, 135, 184, 0.1));
  color: #2c3e50;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(0, 176, 240, 0.2);
}

.users-table tbody tr:hover {
  background-color: #f8f9fa;
}

.users-table tbody tr:last-child td {
  border-bottom: none;
}

/* Стили для ячеек с информацией о пользователе */
.user-info-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar-small {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00b0f0, #0187b8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 14px;
  flex-shrink: 0;
}

.user-details {
  min-width: 0;
}

.user-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 2px;
}

/* Стили для бейджей ролей и статусов */
.role-badge,
.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.role-badge.role-student {
  background: #e3f2fd;
  color: #1976d2;
}

.role-badge.role-teacher {
  background: #f3e5f5;
  color: #7b1fa2;
}

.role-badge.role-admin {
  background: #ffebee;
  color: #d32f2f;
}

.status-badge.status-online {
  background: #e8f5e8;
  color: #2e7d32;
}

.status-badge.status-recent {
  background: #fff3e0;
  color: #f57c00;
}

.status-badge.status-inactive {
  background: #fafafa;
  color: #616161;
}

.status-badge.status-never {
  background: #ffebee;
  color: #d32f2f;
}

.status-badge.status-unknown {
  background: #f5f5f5;
  color: #9e9e9e;
}

/* Стили для кнопок действий */
.btn-small {
  padding: 6px 12px;
  font-size: 12px;
  line-height: 16px;
}

.users-table, .stats-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.users-table th, .users-table td,
.stats-table th, .stats-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.users-table th, .stats-table th {
  background-color: #f5f5f5;
}

.stats-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.stat-card {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 5px;
  text-align: center;
}

.stat-value {
  font-size: 24px;
 font-weight: bold;
  color: #00b0f0;
}

/* Стили для переключателя доступа к обучению */
.learning-access-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 100px;
}

.learning-access-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  cursor: pointer;
}

.learning-access-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

.learning-access-toggle input:checked + .toggle-slider {
  background-color: #00b0f0;
}

.learning-access-toggle input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

.access-status {
  font-size: 10px;
  color: #666;
  text-align: center;
  white-space: nowrap;
}

/* Responsive design для teacher-users */
@media (max-width: 1100px) {
  .teacher-panel .table-container {
    padding: 15px;
  }

  .users-table th,
  .users-table td {
    padding: 16px;
  }
}

@media (max-width: 850px) {
  .users-table th:nth-child(6),
  .users-table td:nth-child(6) {
    display: none;
  }
}

@media (max-width: 770px) {
  .teacher-panel {
    padding: 20px 0;
  }

  .teacher-panel .container {
    padding: 0 10px;
  }

  .teacher-panel h1 {
    font-size: 36px;
    line-height: 44px;
    margin-bottom: 30px;
  }

  .teacher-panel h2 {
    font-size: 28px;
    line-height: 36px;
    margin: 30px 0 20px 0;
  }

  .teacher-panel .navigation {
    margin-bottom: 20px;
  }

  .stats-overview {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .users-table th,
  .users-table td {
    padding: 14px;
  }

  .users-table th:nth-child(1),
  .users-table td:nth-child(1) {
    display: none;
  }

  .user-info-cell {
    gap: 8px;
  }

  .user-avatar-small {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .user-name {
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .teacher-panel {
    padding: 15px 0;
  }

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

  .users-table th:nth-child(7),
  .users-table td:nth-child(7) {
    display: none;
  }

  .btn-small {
    padding: 4px 8px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .teacher-panel h1 {
    font-size: 28px;
    line-height: 36px;
  }

  .teacher-panel h2 {
    font-size: 24px;
    line-height: 32px;
  }

  .users-table {
    font-size: 14px;
  }

  .users-table th,
  .users-table td {
    padding: 12px;
  }

  .role-badge,
  .status-badge {
    padding: 2px 8px;
    font-size: 10px;
  }
}

@media (max-width: 320px) {
  .teacher-panel h1 {
    font-size: 24px;
    line-height: 32px;
  }

  .teacher-panel h2 {
    font-size: 20px;
    line-height: 28px;
  }

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

  .user-avatar-small {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }
}

/* Time Statistics Styles */
.time-stats-section {
    margin-top: 30px;
    margin-bottom: 30px;
}

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

.time-stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-left: 4px solid #3498db;
}

.time-stat-card.total-time {
    border-left-color: #3498db;
}

.time-stat-card.completed-modules {
    border-left-color: #27ae60;
}

.time-stat-card.progress {
    border-left-color: #f39c12;
}

.time-stat-card.sessions {
    border-left-color: #9b59b6;
}

.time-stat-card h4 {
    margin: 0 0 8px 0;
    color: #7f8c8d;
    font-size: 0.9rem;
    font-weight: 500;
}

.time-stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.time-stat-card .stat-subtitle {
    font-size: 0.8rem;
    color: #95a5a6;
    margin-top: 4px;
}

/* Module Time Stats */
.module-time-stats {
    margin-top: 30px;
}

.module-time-stats h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.module-time-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.module-time-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #ecf0f1;
}

.module-time-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.module-time-info h5 {
    margin: 0 0 4px 0;
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
}

.module-time-info .module-duration {
    font-size: 0.85rem;
    color: #7f8c8d;
}

.module-time-stats {
    text-align: right;
}

.module-time-spent {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
}

.module-time-spent .time-value {
    color: #3498db;
}

.module-sessions {
    font-size: 0.8rem;
    color: #95a5a6;
}

/* Progress Bar */
.module-progress {
    margin-top: 12px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: #7f8c8d;
}

.progress-bar-container {
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-bar.completed {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
}

.progress-bar.in-progress {
    background: linear-gradient(90deg, #f39c12, #f1c40f);
}

.progress-bar.not-started {
    background: #bdc3c7;
}

.progress-bar.overdue {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

/* Status Badge */
.module-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.module-status.completed {
    background: #e8f5e8;
    color: #27ae60;
}

.module-status.in-progress {
    background: #fff3e0;
    color: #f39c12;
}

.module-status.not-started {
    background: #fafafa;
    color: #95a5a6;
}

.module-status.overdue {
    background: #ffebee;
    color: #e74c3c;
}

/* Module Dates */
.module-dates {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #ecf0f1;
    font-size: 0.8rem;
    color: #95a5a6;
    display: flex;
    gap: 20px;
}

.module-dates span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Program Progress Overview */
.program-progress-overview {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    border: 1px solid #ecf0f1;
}

.program-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.program-progress-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.program-progress-bar {
    height: 24px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.program-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #00b0f0);
    border-radius: 12px;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
}

.program-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Time Format Helper */
.time-format-hours-minutes {
    white-space: nowrap;
}

/* Empty State */
.time-stats-empty {
    text-align: center;
    padding: 40px 20px;
    color: #95a5a6;
}

.time-stats-empty p {
    margin: 0;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .time-stats-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .time-stat-card {
        padding: 16px;
    }

    .time-stat-card .stat-value {
        font-size: 1.4rem;
    }

    .module-time-header {
        flex-direction: column;
        gap: 12px;
    }

    .module-time-stats {
        text-align: left;
    }

    .program-progress-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .module-dates {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .time-stats-overview {
        grid-template-columns: 1fr;
    }

    .module-time-item {
        padding: 16px;
    }

    .program-progress-fill {
        font-size: 0.75rem;
        padding-right: 8px;
    }
}

/* Enhanced Modules Time List Styles */
.modules-time-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.module-time-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #ecf0f1;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.module-time-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.module-time-card.completed {
    border-left: 4px solid #27ae60;
}

.module-time-card.in-progress {
    border-left: 4px solid #f39c12;
}

.module-time-card.not-started {
    border-left: 4px solid #bdc3c7;
}

.module-time-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 12px;
}

.module-title-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
}

.module-status-icon {
    font-size: 1.2rem;
    line-height: 1;
    margin-top: 2px;
}

.module-time-card.completed .module-status-icon {
    color: #27ae60;
}

.module-time-card.in-progress .module-status-icon {
    color: #f39c12;
}

.module-time-card.not-started .module-status-icon {
    color: #bdc3c7;
}

.module-title {
    margin: 0;
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.module-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.module-status-badge.completed {
    background: #e8f5e8;
    color: #27ae60;
}

.module-status-badge.in-progress {
    background: #fff3e0;
    color: #f39c12;
}

.module-status-badge.not-started {
    background: #fafafa;
    color: #95a5a6;
}

.module-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.module-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.module-stat-icon {
    font-size: 1.2rem;
}

.module-stat-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.module-stat-label {
    font-size: 0.75rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.module-stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

.module-progress-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.module-progress-bar {
    flex: 1;
    height: 10px;
    background: #ecf0f1;
    border-radius: 5px;
    overflow: hidden;
}

.module-progress-bar .progress-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.3s ease;
}

.module-progress-bar .progress-fill.completed {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
}

.module-progress-bar .progress-fill.in-progress {
    background: linear-gradient(90deg, #f39c12, #f1c40f);
}

.module-progress-bar .progress-fill.not-started {
    background: #bdc3c7;
}

.progress-percent {
    font-size: 0.85rem;
    font-weight: 600;
    color: #7f8c8d;
    min-width: 40px;
    text-align: right;
}

.module-time-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #ecf0f1;
}

.time-info-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.time-info-label {
    font-size: 0.8rem;
    color: #95a5a6;
}

.time-info-value {
    font-size: 0.85rem;
    color: #7f8c8d;
    font-weight: 500;
}

/* Responsive for modules-time-list */
@media (max-width: 768px) {
    .module-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .module-stat-item {
        padding: 10px;
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }

    .module-stat-content {
        align-items: center;
    }

    .module-time-header {
        flex-direction: column;
        gap: 10px;
    }

    .module-title-row {
        align-items: center;
    }

    .module-status-badge {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .module-time-card {
        padding: 16px;
    }

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

    .module-stat-item {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }

    .module-stat-content {
        align-items: flex-start;
    }

    .module-progress-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .module-progress-bar {
        width: 100%;
    }

    .progress-percent {
        text-align: left;
    }

    .module-time-footer {
        flex-direction: column;
        gap: 8px;
    }
}