/* =================================
   Dashboard Styles - x0ne.training
   Uses x0ne-theme.css variables
   ================================= */

/* Welcome Header */
.welcome-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border);
}

.user-welcome h1 {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 500;
    margin: 0;
    color: var(--text);
}

.username {
    color: var(--accent-light) !important;
}

.slogan {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: var(--space-sm) 0 0 0;
}

.user-status {
    text-align: right;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: lowercase;
    background: transparent;
    border: 1px solid var(--border);
}

.status-badge.active {
    border-color: rgba(74, 217, 144, 0.3);
    color: var(--success);
    background: rgba(74, 217, 144, 0.05);
}

.status-badge.pending {
    border-color: rgba(255, 107, 107, 0.3);
    color: var(--error);
    background: rgba(255, 107, 107, 0.05);
}

.status-icon {
    margin-right: 0.5rem;
    font-weight: 600;
}

/* Section Cards - styles handled by .glass-card utility */
.setup-section,
.skill-tree-section,
.recent-unlocked-section,
.profile-info-section {
    margin-bottom: var(--space-xl);
    overflow: hidden;
}

.setup-section h2,
.skill-tree-section h2,
.recent-unlocked-section h2,
.profile-info-section h2 {
    font-family: var(--font-mono);
    padding: var(--space-md) var(--space-lg);
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    text-transform: lowercase;
}

.setup-content {
    padding: var(--space-lg);
}

.setup-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.step {
    display: flex;
    background: rgba(74, 144, 217, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-normal);
}

.step:hover {
    border-color: var(--border-hover);
}

.step-number {
    background: var(--bg);
    color: var(--accent-light);
    font-family: var(--font-mono);
    font-size: 1rem;
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    border-right: 1px solid var(--border);
}

.step-content {
    padding: var(--space-md) var(--space-lg);
    flex-grow: 1;
}

.step-content h3 {
    font-family: var(--font-mono);
    margin: 0 0 var(--space-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

.step-content p {
    margin: 0 0 var(--space-md);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.step-link {
    display: inline-block;
    font-family: var(--font-mono);
    color: var(--accent-light);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color var(--transition-fast);
}

.step-link:hover {
    color: var(--text);
}

.arrow {
    display: inline-block;
    transition: transform var(--transition-fast);
    margin-left: 0.25rem;
}

.step-link:hover .arrow {
    transform: translateX(4px);
}

/* Course Grid */
.unlocked-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
    padding: var(--space-lg);
}

/* Course cards use .glass-card-interactive from x0ne-theme.css */
.course-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.course-card:hover {
    transform: translateY(-2px);
}

/* Admin gear icon for course cards */
.course-card .admin-gear {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: opacity 0.15s ease, color 0.15s ease;
    z-index: 10;
    cursor: pointer;
}

.course-card .admin-gear svg {
    width: 100%;
    height: 100%;
}

.course-card:hover .admin-gear {
    opacity: 1;
}

.course-card .admin-gear:hover {
    color: rgba(74, 144, 217, 0.8);
}

.course-card.special {
    border-color: rgba(74, 217, 144, 0.3);
}

.course-card.special:hover {
    border-color: var(--success);
}

.course-icon {
    height: 140px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border);
}

.course-card.special .course-icon {
    border-bottom-color: rgba(74, 217, 144, 0.2);
}

.course-icon img {
    max-width: 90%;
    max-height: 90%;
    opacity: 0.6;
}

.course-info {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-info h3 {
    font-family: var(--font-mono);
    margin: 0 0 var(--space-sm);
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
}

.course-info p {
    margin: 0 0 var(--space-md);
    font-size: 14px;
    color: var(--text-muted);
    flex-grow: 1;
}

.course-level {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding-top: var(--space-sm);
}

.level-indicator {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-light);
}

.level-stars {
    font-size: 0.7rem;
    opacity: 0.6;
}

.no-courses {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-muted);
    grid-column: 1 / -1;
    font-size: 0.85rem;
}

/* Buttons */
button {
    font-family: var(--font-mono);
    background: transparent;
    border: 1px solid var(--border-hover);
    color: var(--accent-light);
    border-radius: var(--radius-sm);
    padding: 0.6rem 1.2rem;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-transform: lowercase;
}

button:hover {
    border-color: var(--accent-light);
    background: var(--accent-glow);
    box-shadow: var(--shadow-glow);
}

button:active {
    transform: translateY(1px);
}

.action-button {
    font-family: var(--font-mono);
    background: transparent;
    border: 1px solid var(--border-hover);
    color: var(--accent-light);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.action-button:hover {
    border-color: var(--accent-light);
    background: var(--accent-glow);
}

.button-todo {
    color: var(--warning);
    border-color: rgba(217, 174, 74, 0.3);
}

.button-done {
    color: var(--success);
    border-color: rgba(74, 217, 144, 0.3);
}

#delete {
    color: var(--error);
    border-color: rgba(255, 107, 107, 0.3);
}

#delete:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: var(--error);
}

/* input[type="search"] - Maintenant géré globalement dans components/admin.css */

input[type="file"] {
  color: var(--primary-color);
  font-family: var(--x0ne-font-display);
  background-color: var(--bg-card);
  border: 1px solid var(--primary-color);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-new {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  text-align: center;
  background-color: var(--bg-card);
  margin: auto;
  padding: 20px;
  border: 1px solid #fefefe;
  width: 80%;
  max-width: 400px;
  color: #fff;
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.modal-content input, .modal-content select, .modal-content textarea {
  font-family: "VT323", monospace;
  font-size: 24px;
  margin: 10px;
  border-bottom: 1px solid #a9a9a9;
  background: transparent;
  color: #fff;
  text-align: center;
}

.modal-content select {
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: var(--bg-card);
}

.modal-content select::-ms-expand {
  display: none;
}

/* Modal buttons - removed old white background style */

.hidden {
  display: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  color: var(--text-color);
  border-radius: var(--btn-border-radius);
  overflow: hidden;
}

th {
  background: rgba(0, 19, 39, 0.9) !important;
  color: #777777 !important;
  font-weight: bold;
  text-transform: uppercase;
  padding: 15px !important;
  border-bottom: 2px solid rgba(0, 19, 39, 0.6) !important;
  text-align: center !important;
}

th:hover {
  background: rgba(0, 19, 39, 1);
  color: var(--neon-blue);
  cursor: pointer;
}

th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #666 !important;
}

tr:hover {
  background: rgba(255, 255, 255, 0.1);
}

td {
  text-align: center;
}

.strip1, .strip2 {
  border: 1px solid var(--primary-color);
}

.strip1 {
  background-color: var(--bg-card);
  color: #fff;
}

.strip2 {
  background-color: var(--bg-card);
  color: #fff;
}

table.dataTable.stripe.strip1, table.dataTable.display.strip1 {
  background-color: #00334E;
  color: #fff;
}

table.dataTable.stripe.strip2, table.dataTable.display.strip2 {
  background-color: #00415d;
  color: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  color: var(--text-color);
  border-radius: var(--btn-border-radius);
  overflow: hidden;
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

th {
  background-color: rgba(0, 19, 39, 0.8);
  color: var(--primary-color);
  font-weight: 500;
}

tr:hover {
  background-color: rgba(128, 191, 255, 0.05);
}

.terminal {
  background-color: var(--terminal-bg);
  color: var(--terminal-text);
  padding: 15px;
  border-radius: var(--radius-lg);
  font-size: 16px;
  border: 1px solid var(--primary-color);
  line-height: 1.2;
  margin-right: 45px;
}

.code-block {
  background-color: var(--code-bg);
  color: var(--code-text);
  padding: 15px;
  border-radius: var(--radius-lg);
  font-size: 16px;
  overflow-x: auto;
  border: 1px solid #444;
  margin-bottom: 20px;
}

.code-block code {
  color: inherit;
}

.activity {
  color: var(--neon-yellow); 
  padding: 5px;
  border-radius: var(--radius-lg);
  font-size: 16px;
  border: 1px solid var(--neon-yellow);
  margin-bottom: 20px;
}

.activity-todo {
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  font-size: 16px;
  border: 3px solid var(--neon-orange);
  margin-bottom: 20px;
}

.activity-todo ul li {
  color: #eeeeee;
}

.activity-todo ul ul li {
  color: #888888;
}

.activity-done {
  padding: 5px;
  border-radius: var(--radius-lg);
  font-size: 16px;
  border: 1px solid var(--neon-green);
  margin-bottom: 20px;
}

.done {
  color: var(--neon-green);
}

.clickable-option {
  color: #CCCCCC;
  cursor: pointer;
  margin: 15px 0;
  font-size: 18px;
  display: block;
  padding: 10px;
  border-radius: var(--radius-lg);
  transition: background-color 0.3s ease, transform 0.3s ease, border 0.3s ease;
  border: 1px solid transparent;
}

.clickable-option:hover {
  border-radius: var(--radius-lg);
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.03);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.flex {
  justify-content: right;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
}

.vertical-center {
  align-items: center;
}

.row {
  flex-direction: row;
}

.space-between {
  justify-content: space-between;
}

.success,
.warning,
.errors {
  border-radius: var(--radius-sm);
  position: fixed;
  left: 50%;
  transform: translate(-50%, 0);
  z-index: 1000;
  font-weight: bold;
  animation: fadeout 15s forwards;
  padding: 3px;
}

.success {
  background-color: var(--success-bg);
  color: var(--bg-card);                  
  border-color: #c3e6cb;           
  padding: 10px;                   
  margin-bottom: 10px;             
  border-radius: 7px;              
  font-family: var(--x0ne-font-display); 
  z-index: 100000;                   
  width: auto;
  margin: auto;                    
  text-align: center;              
  box-shadow: 3px 3px 10px #888;   
}

.warning {
  background-color: var(--error-color);
  color: white;
}

.errors {
  background-color: orange;
  color: black;
}

@keyframes fadeout {
  0% {opacity: 1;}
  80% {opacity: 1;}
  100% {opacity: 0;}
}

.hover-text {
  position: relative;
  cursor: pointer;
}

.popup {
  display: none;
  position: absolute;
  background-color: var(--bg-card);
  color: #ffffff;
  padding: 15px;
  border-radius: var(--btn-border-radius);
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 10px;
  white-space: pre;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  z-index: 10;
  border: 1px solid #666;
  font-weight: bold;
}

.hover-text:hover .popup {
  display: block;
}

/* Old form styles removed - see Improved Form Styling below */

/* ==============================
   Action Buttons
   ============================== */
.action-buttons, .crackme-actions {
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
}

/* Scrollbar styles moved to base/scrollbar.css */
/* Footer styles moved to layout/footer.css */
/* Navigation styles moved to layout/navbar.css */
/* Rules styles moved to pages/rules.css */

/* Map styles */
#map_div {
  width: 100%;
  height: calc(100vh);
}

/* Utility classes */
.flex {
  display: flex;
}

.row {
  flex-direction: row;
}

.space-between {
  justify-content: space-between;
}

.vertical-center {
  align-items: center;
}

/* Improved Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-family: 'Fira Code', monospace;
  font-size: 12px;
  font-weight: 500;
}

.status-badge.pending {
  background-color: rgba(255, 193, 7, 0.15);
  border: 1px solid #ffc107;
  color: #ffc107;
}

.status-badge.validated {
  background-color: rgba(0, 255, 157, 0.15);
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
}

.status-badge.rejected {
  background-color: rgba(255, 56, 96, 0.15);
  border: 1px solid var(--error-color);
  color: var(--error-color);
}

/* Modal Improvements */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
}

.modal-content {
  background: var(--bg-color);
  margin: 10% auto;
  width: 80%;
  max-width: 500px;
  border-radius: var(--btn-border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
  animation: modalFadeIn 0.3s;
}

.modal-header {
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-family: 'Fira Code', monospace;
  font-weight: 500;
  color: var(--primary-color);
}

.close-button {
  color: var(--primary-color);
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.close-button:hover {
  color: var(--accent-color);
}

.modal-body {
  padding: 10px;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Improved Form Styling */
.form-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-container input,
.form-container select,
.form-container textarea {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-color);
  font-family: 'Fira Code', monospace;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-container input:focus,
.form-container select:focus,
.form-container textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(128, 191, 255, 0.2);
  outline: none;
}

.form-container button {
  background: var(--primary-color);
  color: var(--primary-dark);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 15px;
  font-family: 'Fira Code', monospace;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.form-container button:hover {
  background: #a0d1ff;
}

.form-container button:active {
  transform: translateY(1px);
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.profile-actions {
  display: flex;
  gap: var(--x0ne-spacing-sm);
  align-items: center;
  margin-top: var(--x0ne-spacing-md);
  padding-top: var(--x0ne-spacing-sm);
  border-top: 1px solid rgba(128, 191, 255, 0.2);
}

.profile-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.profile-link:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* ==============================
   🎯 UNIFIED BUTTON SYSTEM
   ============================== */

/* ==============================
   🎯 UNIFIED BUTTON SYSTEM - REFACTORED
   ============================== */

.action-button, .delete-btn {
  font-family: var(--x0ne-font-display);
  background: transparent;
  padding: var(--btn-padding);
  font-size: var(--btn-font-size);
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 3px;
  border-radius: var(--btn-border-radius);
  position: relative;
  overflow: hidden;
}

/* Default button style */
.action-button {
  border: 1px solid rgba(128, 191, 255, var(--btn-border-opacity));
  color: var(--primary-color);
}

.action-button:hover {
  opacity: 0.8;
  box-shadow: 0 0 8px rgba(128, 191, 255, 0.3);
  transform: translateY(-1px);
}

/* Button variants */
.action-button.button-todo {
  border-color: rgba(255, 56, 96, var(--btn-border-opacity));
  color: var(--error-color);
}

.action-button.button-todo:hover {
  opacity: 0.8;
  box-shadow: 0 0 8px rgba(255, 56, 96, 0.3);
}

.action-button.button-done {
  border-color: rgba(0, 255, 157, var(--btn-border-opacity));
  color: var(--accent-color);
}

.action-button.button-done:hover {
  opacity: 0.8;
  box-shadow: 0 0 8px rgba(0, 255, 157, 0.3);
}

/* Delete button specific */
.delete-btn {
  border: 1px solid rgba(255, 56, 96, var(--btn-border-opacity));
  color: var(--error-color);
  padding: 8px 12px; /* Slightly smaller for delete actions */
  font-size: 14px;
}

.delete-btn:hover {
  opacity: 0.8;
  box-shadow: 0 0 8px rgba(255, 56, 96, 0.3);
  transform: translateY(-1px);
}

/* ==============================
   📋 UNIFIED SECTION SYSTEM
   Styles now handled by .glass-card utility
   ============================== */

.info-section, .profile-info-section, .admin-info-section {
  /* background/border handled by .glass-card */
  margin-bottom: 40px;
  overflow: hidden;
}

.info-section h2, .profile-info-section h2, .admin-info-section h2 {
  font-family: 'Fira Code', monospace;
  padding: 10px 20px;
  margin: 0;
  font-size: 20px;
  border-bottom: 1px solid var(--border, rgba(74, 144, 217, 0.15));
  font-weight: 400;
  color: var(--primary-color);
}

.info-content, .profile-content, .admin-content {
  padding: 20px;
}

/* Class-specific styles */
.class-link:hover {
  text-decoration: underline;
}

.class-name {
  position: relative;
  display: inline-block;
  cursor: pointer;
  margin-left: 5px;
}

.class-menu {
  position: absolute;
  top: 20px;
  left: 0px;
  background: var(--x0ne-bg-95);
  border: 1px solid #80bfff;
  z-index: 1000;
  padding: 8px;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.4);
  border-radius: 6px;
  min-width: 120px;
}

.class-menu a {
  display: block;
  padding: 8px 12px;
  color: var(--primary-color);
  text-decoration: none;
  font-family: var(--x0ne-font-display);
  transition: all 0.3s ease;
  border-radius: var(--radius-sm);
}

.class-menu a:hover {
  background: #80bfff;
  color: rgba(10, 29, 49, 0.95);
}

/* Courses Admin Styles */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 20px;
}

.course-admin-card {
  background: rgba(10, 29, 49, 0.3);
  border: 1px solid #80bfff;
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color 0.2s;
}

.course-admin-card:hover {
  border-color: var(--accent-color);
}

.course-admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.course-admin-link {
  text-decoration: none;
  flex: 1;
}

.course-admin-link h3 {
  color: var(--accent-color);
  margin: 0;
  cursor: pointer;
  font-family: var(--x0ne-font-display);
  font-size: 22px;
}

.course-admin-link:hover h3 {
  text-decoration: underline;
}

/* delete-btn styles are now in the unified button system above */

.course-admin-meta {
  margin-bottom: 10px;
  color: rgba(128, 191, 255, 0.8);
  font-family: var(--x0ne-font-display);
}

.course-admin-description {
  color: #ccc;
  margin-bottom: 15px;
  font-family: var(--x0ne-font-display);
  line-height: 1.4;
}

.course-admin-modules {
  border-top: 1px solid rgba(128, 191, 255, 0.3);
  padding-top: 15px;
}

.course-admin-modules h4 {
  color: var(--accent-color);
  margin: 0 0 10px 0;
  font-size: 16px;
  font-family: var(--x0ne-font-display);
}

.modules-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.module-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid rgba(128, 191, 255, 0.1);
}

.module-info {
  color: #ccc;
  font-family: var(--x0ne-font-display);
}

.module-type {
  color: rgba(128, 191, 255, 0.6);
  font-size: 14px;
  margin-left: 8px;
}

.module-delete {
  background: none;
  border: none;
  color: #ff6b6b;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
  font-family: var(--x0ne-font-display);
  transition: all 0.2s;
}

.module-delete:hover {
  background: rgba(255, 107, 107, 0.1);
  border-radius: var(--radius-sm);
}

.no-modules {
  color: #666;
  font-style: italic;
  font-family: var(--x0ne-font-display);
}


/* Empty States */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  border: 1px solid var(--primary-color);
  background: rgba(10, 29, 49, 0.3);
  border-radius: var(--radius-lg);
}

.empty-icon {
  color: var(--primary-color);
  font-size: 48px;
  margin-bottom: 20px;
  font-family: var(--x0ne-font-display);
}

.empty-state h3 {
  color: var(--primary-color);
  font-family: var(--x0ne-font-display);
  margin-bottom: 10px;
}

.empty-state p {
  color: rgba(128, 191, 255, 0.7);
  margin-bottom: 20px;
  font-family: var(--x0ne-font-display);
}

/* Generic Lists */
.generic-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(128, 191, 255, 0.1);
  font-family: var(--x0ne-font-display);
}

.list-item:last-child {
  border-bottom: none;
}

.item-info {
  color: #ccc;
  flex: 1;
}

.item-meta {
  color: rgba(128, 191, 255, 0.6);
  font-size: 14px;
  margin-left: 8px;
}

.item-actions {
  display: flex;
  gap: 5px;
  align-items: center;
}

/* User Management Specific */
.db-info {
  color: #a0a0a0;
  font-family: var(--x0ne-font-display);
  font-size: 14px;
  margin: 5px 0 0 0;
}

.user-cell {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.user-name {
  position: relative;
  display: inline-block;
  cursor: pointer;
  margin-left: 5px;
}

.user-menu {
  position: absolute;
  top: 20px;
  left: 0px;
  background: var(--x0ne-bg-95);
  border: 1px solid #80bfff;
  z-index: 1000;
  padding: 8px;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.4);
  border-radius: 6px;
  min-width: 120px;
}

.user-menu a {
  display: block;
  padding: 8px 12px;
  color: var(--primary-color);
  text-decoration: none;
  font-family: var(--x0ne-font-display);
  transition: all 0.3s ease;
  border-radius: var(--radius-sm);
}

.user-menu a:hover {
  background: #80bfff;
  color: rgba(10, 29, 49, 0.95);
}

.user-menu a.delete-action {
  color: var(--error-color);
}

.user-menu a.delete-action:hover {
  background: var(--error-color);
  color: white;
}

/* Setup Section */
/* .setup-section styles handled by .glass-card utility */

.setup-section h2, .skill-tree-section h2, .recent-unlocked-section h2 {
  font-family: 'Fira Code', monospace;
  padding: 10px 20px;
  margin: 0;
  font-size: 20px;
  border-bottom: 1px solid var(--border, rgba(74, 144, 217, 0.15));
  font-weight: 400;
  color: var(--primary-color);
}

.setup-content {
  padding: 20px;
}

.setup-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step {
  display: flex;
  background: var(--x0ne-bg-50);
  border: 1px solid rgba(128, 191, 255, 0.2);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.step-number {
  background: var(--bg-color);
  color: var(--primary-color);
  font-family: var(--x0ne-font-display);
  font-size: 24px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  border-right: 1px solid rgba(128, 191, 255, 0.2);
}

.step-content {
  padding: 15px 20px;
  flex-grow: 1;
}

.step-content h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 500;
}

.step-content p {
  margin: 0 0 15px;
  color: #a0a0a0;
  font-size: 14px;
}

.step-link {
  display: inline-block;
  color: var(--accent-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.step-link:hover {
  opacity: 0.8;
}

.arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.step-link:hover .arrow {
  transform: translateX(5px);
}

/* Skill Tree Section */
.skill-tree-section {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--btn-border-radius);
  margin-bottom: 40px;
  overflow: hidden;
}

/* .recent-unlocked-section styles handled by .glass-card utility */

.unlocked-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
}

/* Action Icons in Table */
.action-icons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.action-icons a,
.action-icons button {
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  transition: color 0.2s;
  padding: 5px;
}

.action-icons a:hover,
.action-icons button:hover {
  color: var(--accent-color);
}

/* Input validation styling */
.input-with-validation {
  position: relative;
}

.validation-msg {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: #a0a0a0;
  transition: color 0.2s;
}

.input-with-validation input:invalid + .validation-msg {
  color: var(--error-color);
}

.input-with-validation input:valid + .validation-msg {
  display: none;
}

/* Flag styling */
.flag-attempt {
  font-family: 'Fira Code', monospace;
  font-size: 12px;
  background: var(--bg-color);
  padding: 2px 5px;
  border-radius: var(--radius-sm);
}

/* Hint display */
.hint-display {
  background: var(--bg-color);
  padding: 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-family: 'Fira Code', monospace;
  white-space: pre-wrap;
}

/* Charts styling */
.chart-container {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--btn-border-radius);
  margin-bottom: 20px;
  overflow: hidden;
}

.charts-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.half-width {
  width: calc(50% - 10px);
}

/* Responsive layout */
@media (max-width: 768px) {
  .charts-row {
    flex-direction: column;
  }
  
  .half-width {
    width: 100%;
  }
  
  .modal-content {
    width: 95%;
  }
  
  .unlocked-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    padding: var(--space-md);
  }
  
  .course-icon {
    height: 100px;
    padding: var(--space-md);
  }
  
  .course-info h3 {
    font-size: 14px;
  }
}

/* Small screens - dashboard */
@media (max-width: 480px) {
  .dashboard-container {
    padding: var(--space-sm);
  }
  
  .welcome-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
  }
  
  .user-welcome h1 {
    font-size: 18px;
  }
  
  .setup-section h2,
  .skill-tree-section h2,
  .recent-unlocked-section h2,
  .profile-info-section h2 {
    font-size: 14px;
    padding: var(--space-sm) var(--space-md);
  }
  
  .setup-content {
    padding: var(--space-md);
  }
  
  .setup-steps {
    gap: var(--space-sm);
  }
  
  .step {
    flex-direction: column;
  }
  
  .step-number {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: var(--space-sm);
    font-size: 0.9rem;
    min-width: auto;
    width: 100%;
    justify-content: flex-start;
  }
  
  .step-content {
    padding: var(--space-sm) var(--space-md);
  }
  
  .step-content h3 {
    font-size: 0.85rem;
  }
  
  .step-content p {
    font-size: 0.8rem;
    margin-bottom: var(--space-sm);
  }
  
  .step-link {
    font-size: 0.75rem;
  }
  
  .unlocked-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    padding: var(--space-sm);
  }
  
  .course-card {
    flex-direction: row;
    align-items: center;
  }
  
  .course-icon {
    height: auto;
    width: 80px;
    min-width: 80px;
    padding: var(--space-sm);
    border-bottom: none;
    border-right: 1px solid var(--border);
  }
  
  .course-icon img {
    max-width: 60px;
    max-height: 60px;
  }
  
  .course-info {
    padding: var(--space-sm);
  }
  
  .course-info h3 {
    font-size: 13px;
    margin-bottom: 4px;
  }
  
  .course-level {
    border-top: none;
    padding-top: 0;
    margin-top: var(--space-xs);
    justify-content: flex-start;
    gap: var(--space-sm);
  }
  
  .level-indicator {
    font-size: 0.7rem;
  }
  
  .level-stars {
    font-size: 0.6rem;
  }
  
  /* Glass cards on mobile */
  .glass-card {
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
  }
}

/* Flags table */
.flags-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

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

.flags-table th {
  background: var(--bg-color);
  color: var(--primary-color);
  font-weight: 500;
}

.flags-table tr:hover {
  background: var(--x0ne-bg-50);
}

/* No team message */
.no-team-message {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-style: italic;
}

/* Loading animation for charts */
.loading-chart {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-spinner {
  border: 3px solid var(--border-light);
  border-radius: 50%;
  border-top: 3px solid var(--primary-color);
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Simple Modal - Perfect Copy from Create Course Modal */
.simple-modal {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
}
.simple-modal.hidden { display: none; }
.simple-modal-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8);
}
.simple-modal-content {
  position: relative; background: rgba(10, 29, 49, 0.95); border: 1px solid var(--primary-color);
  border-radius: var(--radius-lg); max-width: 600px; width: 90%; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.simple-modal-header {
  padding: var(--space-md); border-bottom: 1px solid var(--primary-color);
  display: flex; justify-content: space-between; align-items: center;
}
.simple-modal-header h3 {
  color: var(--primary-color); font-family: 'VT323', monospace; font-size: 24px; margin: 0;
}
.simple-modal-close {
  background: none; border: none; color: var(--primary-color); font-size: 24px; cursor: pointer;
  padding: 0; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
}
.simple-modal-close:hover { color: #fff; }
.simple-form { padding: var(--space-md); }
.simple-field { margin-bottom: var(--space-md); }
.simple-field label {
  display: block; color: var(--primary-color); font-family: 'VT323', monospace;
  font-size: 18px; margin-bottom: 8px;
}
.simple-field input, .simple-field textarea, .simple-field select {
  width: 100%; background: rgba(10, 29, 49, 0.8); border: 1px solid var(--primary-color);
  border-radius: var(--radius-md); padding: 10px; color: var(--primary-color); font-family: 'VT323', monospace;
  font-size: 16px; box-sizing: border-box;
}
.simple-field input:focus, .simple-field textarea:focus, .simple-field select:focus {
  outline: none; border-color: var(--accent-color); box-shadow: 0 0 5px rgba(0, 255, 157, 0.3);
}
.simple-field small {
  display: block; color: rgba(128, 191, 255, 0.7); font-size: 14px;
  margin-top: 4px; font-family: 'VT323', monospace;
}
.simple-actions {
  display: flex; gap: 12px; justify-content: flex-end; margin-top: 20px;
  padding-top: 16px; border-top: 1px solid var(--border-light);
}
.simple-actions button {
  padding: 10px 20px; border-radius: 4px; font-family: 'VT323', monospace;
  font-size: 16px; cursor: pointer; transition: all 0.2s ease; border: 1px solid;
}
.simple-actions button[type="button"] {
  background: transparent; color: var(--primary-color); border-color: var(--primary-color);
}
.simple-actions button[type="button"]:hover {
  color: #fff; border-color: #fff;
}
.simple-actions button[type="submit"] {
  background: transparent; color: var(--accent-color); border-color: var(--accent-color);
}
.simple-actions button[type="submit"]:hover {
  color: #fff; border-color: var(--accent-color); box-shadow: 0 0 8px rgba(0, 255, 157, 0.3);
}

/* Module checkbox styling for manage modules modal */
.module-checkbox-item {
  margin-bottom: 12px; padding: 10px; border: 1px solid var(--border-color);
  border-radius: var(--radius-md); background: rgba(10, 29, 49, 0.5);
}
.module-checkbox-item input[type="checkbox"] {
  margin-right: 10px; width: auto;
}
.module-checkbox-item label {
  margin-left: 0; color: #ccc; cursor: pointer;
}
.module-description {
  color: rgba(128, 191, 255, 0.7); font-size: 14px; margin-top: 4px;
}
.module-info {
  color: rgba(128, 191, 255, 0.6); font-size: 12px; margin-top: 2px;
}
.legacy-badge {
  background: rgba(255, 107, 107, 0.2); color: #ff6b6b; padding: 2px 6px;
  border-radius: var(--radius-sm); font-size: 10px; margin-left: 8px;
}

/* User dropdown menu */
.user-with-menu {
  position: relative; display: flex; align-items: center; gap: 8px;
}
.username {
  font-weight: bold; color: var(--primary-color);
}
.menu-trigger {
  color: #888; cursor: pointer; font-size: 14px; padding: 2px 4px;
}
.menu-trigger:hover {
  color: #aaa;
}

/* Custom search input in header - Maintenant géré globalement dans components/admin.css */

.team-members li { background: var(--bg-light); margin-bottom: 10px; padding: 15px; border-radius: 5px; }
/* --- Styles from crackme-profile.handlebars --- */
.chart-container {
    background: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

/* --- Styles from crackme-contest.handlebars --- */
.contest-container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.contest-header { text-align: center; margin-bottom: 30px; }
.contest-header h1 { font-size: 3rem; color: var(--accent-color); text-shadow: 0 0 10px var(--accent-color); }
.contest-header p { font-size: 1.2rem; color: var(--primary-color); }
.crackme-card { background: var(--bg-light); border: 1px solid var(--border-color); padding: 15px; border-radius: 5px; }

/* --- Styles from team-dashboard.handlebars --- */
.team-dashboard { max-width: 1200px; margin: 0 auto; padding: 20px; }
.team-header { text-align: center; margin-bottom: 30px; }
.team-header h1 { font-size: 2.5rem; color: var(--accent-color); }
.team-stats { display: flex; justify-content: space-around; margin-bottom: 30px; }
.stat-card { background: var(--bg-light); padding: 20px; border-radius: 5px; text-align: center; }
.stat-card h3 { margin: 0 0 10px; color: var(--primary-color); }
.stat-card p { font-size: 1.5rem; color: #fff; }
.team-members ul { list-style: none; padding: 0; }
.team-members li { background: var(--bg-light); margin-bottom: 10px; padding: 15px; border-radius: 5px; }

/* --- Styles from _slides.handlebars --- */
.viewer-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.viewer-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Styles from _python-ml.handlebars --- */
.content-viewer p {
  color: grey;
}
.content-viewer {
  background: rgba(0, 19, 39, 0.9);
  border: 1px solid var(--primary-color);
  border-radius: 5px;
  margin: 20px 0;
  overflow: hidden;
}
.viewer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: rgba(0, 19, 39, 0.95);
  border-bottom: 1px solid var(--primary-color);
}
.section-title {
  font-family: var(--x0ne-font-display);
  color: var(--primary-color);
  font-size: 18px;
  letter-spacing: 1px;
}
.viewer-controls {
  display: flex;
  gap: 10px;
}
.control-button {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  width: 30px;
  height: 30px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.control-button:hover {
  background: var(--primary-color);
  color: #001327;
}
.fullscreen-icon {
  font-size: 16px;
}
.viewer-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}
#contentFrame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: rgba(0, 19, 39, 0.8);
}
.content-viewer.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  margin: 0;
  z-index: 1000;
}
.content-viewer.fullscreen .viewer-container {
  padding-bottom: 0;
  height: calc(100% - 50px); /* Soustrait la hauteur du header */
}
.content-viewer.fullscreen #contentFrame {
  position: relative;
  height: 100%;
}
@media screen and (max-width: 800px) {
  .viewer-container {
    padding-bottom: 75%; /* 4:3 Aspect Ratio for mobile */
  }
  .section-title {
    font-size: 16px;
  }
}

/* --- Styles from _commit-tracker.handlebars --- */
.commits-chart-container {
    margin-top: 30px;
    border: 1px solid #000000;
}
.border-success {
    border-color: var(--neon-green) !important;
}
.text-success {
    color: var(--neon-green) !important;
}
.text-warning {
    color: orange !important;
}
.border-warning {
    border-color: orange !important;
}
#debugInfo {
    display: none;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}
#debugData {
    display: none;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.modern-module {
  background: var(--x0ne-bg-card, rgba(10, 29, 49, 0.6));
  border: 1px solid var(--border-color, rgba(128, 191, 255, 0.3));
  border-radius: var(--radius-lg, 8px);
  margin-bottom: var(--space-lg, 24px);
  overflow: hidden;
  transition: all 0.3s ease;
}

.modern-module:hover {
  border-color: var(--primary-color, #80bfff);
  box-shadow: 0 4px 20px rgba(128, 191, 255, 0.1);
}

/* ═══════════════════════════════════════════════════════════════
   MODULE HEADER - Informations standardisées
   ═══════════════════════════════════════════════════════════════ */

.module-header {
  background: linear-gradient(45deg, rgba(128, 191, 255, 0.1), rgba(10, 29, 49, 0.9));
  padding: var(--space-lg, 24px);
  border-bottom: 1px solid var(--border-color, rgba(128, 191, 255, 0.3));
}

.module-title {
  color: var(--primary-color, #80bfff);
  font-family: var(--x0ne-font-display, 'VT323', monospace);
  font-size: 24px;
  margin: 0 0 var(--space-md, 16px) 0;
}

.module-meta {
  display: flex;
  gap: var(--space-md, 16px);
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-sm, 8px);
}

.module-type {
  padding: 4px 12px;
  border-radius: var(--radius-sm, 4px);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.module-type.lesson {
  background: rgba(0, 191, 255, 0.2);
  color: var(--color-info);
  border: 1px solid var(--color-info);
}

.module-type.quiz {
  background: rgba(0, 255, 157, 0.2);
  color: var(--accent-color, #00ff9d);
  border: 1px solid var(--accent-color, #00ff9d);
}

.module-type.activity {
  background: rgba(255, 215, 0, 0.2);
  color: var(--neon-yellow);
  border: 1px solid var(--neon-yellow);
}

.module-type.exam {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
  border: 1px solid #ff6b6b;
}

.module-duration {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-color, #e0e0e0);
  padding: 4px 8px;
  border-radius: var(--radius-sm, 4px);
  font-size: 12px;
}

.module-difficulty {
  padding: 4px 8px;
  border-radius: var(--radius-sm, 4px);
  font-size: 12px;
  font-weight: 500;
}

.module-difficulty.level-1 {
  background: rgba(0, 255, 0, 0.2);
  color: var(--neon-green);
}

.module-difficulty.level-2 {
  background: rgba(255, 215, 0, 0.2);
  color: var(--neon-yellow);
}

.module-difficulty.level-3 {
  background: rgba(255, 165, 0, 0.2);
  color: orange;
}

.module-difficulty.level-4 {
  background: rgba(255, 69, 0, 0.2);
  color: var(--neon-orange);
}

.module-description {
  color: rgba(224, 224, 224, 0.8);
  margin: var(--space-sm, 8px) 0 0 0;
  font-size: 14px;
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════════
   MODULE CONTENT - Zone contenu hybride
   ═══════════════════════════════════════════════════════════════ */

.module-content {
  padding: var(--space-lg, 24px);
}

/* Template Content - Préserve les styles existants */
/* .template-content {
   Le contenu template garde ses styles natifs 
} */

/* Dynamic Content - Nouveau contenu structuré */
/* .dynamic-content {
   Structure pour contenu dynamique 
} */

.module-objectives {
  margin-bottom: var(--space-lg, 24px);
}

.module-objectives h2 {
  color: var(--accent-color, #00ff9d);
  font-family: var(--x0ne-font-display, 'VT323', monospace);
  font-size: 20px;
  margin-bottom: var(--space-md, 16px);
}

.module-objectives ul {
  list-style: none;
  padding: 0;
}

.module-objectives li {
  padding: var(--space-sm, 8px) 0;
  padding-left: var(--space-lg, 24px);
  position: relative;
  color: var(--text-color, #e0e0e0);
}

.module-objectives li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-color, #00ff9d);
  font-weight: bold;
}

.module-resources {
  margin-bottom: var(--space-lg, 24px);
}

.module-resources h2 {
  color: var(--primary-color, #80bfff);
  font-family: var(--x0ne-font-display, 'VT323', monospace);
  font-size: 20px;
  margin-bottom: var(--space-md, 16px);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md, 16px);
}

.resource-link {
  display: block;
  background: rgba(128, 191, 255, 0.1);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md, 6px);
  padding: var(--space-md, 16px);
  text-decoration: none;
  transition: all 0.3s ease;
}

.resource-link:hover {
  background: rgba(128, 191, 255, 0.2);
  border-color: var(--primary-color, #80bfff);
  transform: translateY(-2px);
}

.resource-title {
  display: block;
  color: var(--primary-color, #80bfff);
  font-weight: 500;
  margin-bottom: 4px;
}

.resource-description {
  display: block;
  color: rgba(224, 224, 224, 0.7);
  font-size: 12px;
}

.content-section {
  margin-bottom: var(--space-xl, 32px);
}

.content-section h3 {
  color: var(--text-color, #e0e0e0);
  font-family: var(--x0ne-font-display, 'VT323', monospace);
  font-size: 18px;
  margin-bottom: var(--space-md, 16px);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: var(--space-sm, 8px);
}

.text-content {
  color: var(--text-color, #e0e0e0);
  line-height: 1.6;
}

.activity-container {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: var(--radius-md, 6px);
  padding: var(--space-lg, 24px);
}

.activity-instructions {
  color: var(--text-color, #e0e0e0);
  margin-bottom: var(--space-md, 16px);
}

.code-template {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm, 4px);
  padding: var(--space-md, 16px);
}

.code-template pre {
  margin: 0;
  color: var(--accent-color, #00ff9d);
  font-family: 'Fira Code', monospace;
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════
   MODULE FOOTER - Tags et métadonnées
   ═══════════════════════════════════════════════════════════════ */

.module-footer {
  padding: var(--space-md, 16px) var(--space-lg, 24px);
  background: rgba(10, 29, 49, 0.4);
  border-top: 1px solid rgba(128, 191, 255, 0.1);
}

.module-tags {
  display: flex;
  gap: var(--space-sm, 8px);
  flex-wrap: wrap;
}

.tag {
  background: rgba(128, 191, 255, 0.2);
  color: var(--primary-color, #80bfff);
  padding: 2px 8px;
  border-radius: var(--radius-sm, 4px);
  font-size: 11px;
  border: 1px solid var(--border-color);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .module-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm, 8px);
  }
  
  .resources-grid {
    grid-template-columns: 1fr;
  }
  
  .module-content {
    padding: var(--space-md, 16px);
  }
}

/* ═══════════════════════════════════════════════════════════════
   COMPATIBILITY - Support ancien système
   ═══════════════════════════════════════════════════════════════ */

/* .modern-module[data-content-type="template"] .template-content {
   Préserver les styles existants des templates 
} */

.modern-module[data-type="activity"] {
  border-left: 4px solid var(--neon-yellow);
}

.modern-module[data-type="lesson"] {
  border-left: 4px solid var(--color-info);
}

.modern-module[data-type="quiz"] {
  border-left: 4px solid var(--accent-color, #00ff9d);
}
