
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  display: flex;
  min-height: 100vh;
  background-color: #f4f6f8;
  color: #333;
}

.dashboard-container {
  display: flex;
  width: 100%;
}

/* Sidebar */
.sidebar {
  width: 240px;
  background-color: #1e2a38;
  color: #fff;
  padding: 1rem;
  min-height: 100vh;
  position: fixed;
}

.sidebar h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin: 1rem 0;
}

.sidebar a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.sidebar a:hover {
  color: #fff;
}

/* Main Content */
.main-content {
  margin-left: 240px;
  padding: 2rem;
  flex-grow: 1;
}

header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

header p {
  color: #666;
  margin-bottom: 2rem;
}

.dashboard-widgets {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  flex: 1 1 300px;
}

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

/* Progress Bar */
.progress-bar {
  width: 100%;
  height: 16px;
  background: #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress {
  height: 100%;
  background-color: #007bff;
  border-radius: 8px 0 0 8px;
}

.menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: #ffffff;
  padding: 10px 15px;
  text-decoration: none;
  transition: background 0.2s;
}

.menu a:hover {
  background-color: #111111;
  border-radius: 8px;
}

.menu i {
  font-size: 1.2rem;
  color: #007bff;
}

.panel-section {
  padding: 2rem;
}

.welcome-header h2 {
  font-size: 2rem;
  color: #2a2a2a;
  margin-bottom: 0.2rem;
}

.welcome-header p {
  color: #666;
  margin-bottom: 1.5rem;
}

.group-info-card {
  background-color: #e9f0fb;
  border-left: 5px solid #2979ff;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.group-info-columns {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.group-info-left {
  flex: 1;
  min-width: 0;
}

.group-info-content h3 {
  margin: 0 0 0.5rem 0;
  color: #1e345d;
  font-size: 1.3rem;
  font-weight: 600;
}

.group-info-content p {
  margin: 0.3rem 0;
  color: #2a2a2a;
  font-size: 0.95rem;
  line-height: 1.4;
}

.group-info-right {
  flex: 0 0 auto;
  min-width: 280px;
}

.class-selector-integrated {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  box-shadow: 0 3px 10px rgba(102, 126, 234, 0.2);
}

.selector-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
}

.selector-label i {
  font-size: 1.1rem;
  color: #ffffff;
}

.selector-wrapper {
  position: relative;
  width: 100%;
}

.class-select {
  width: 100%;
  padding: 0.7rem 2.5rem 0.7rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.95);
  color: #333;
  font-size: 0.9rem;
  font-weight: 500;
  appearance: none;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  backdrop-filter: blur(10px);
}

.class-select:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
  background-color: #ffffff;
}

.class-select:hover {
  background-color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.selector-arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 0.9rem;
  pointer-events: none;
  transition: transform 0.3s ease;
}

.class-select:focus + .selector-arrow {
  transform: translateY(-50%) rotate(180deg);
}

/* Responsive para el diseño de dos columnas */
@media (max-width: 768px) {
  .group-info-columns {
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
  }
  
  .group-info-right {
    min-width: 0;
  }
  
  .group-info-content {
    text-align: center;
  }
  
  .class-selector-integrated {
    padding: 1rem;
  }
  
  .selector-label {
    justify-content: center;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .group-info-card {
    padding: 1rem;
  }
  
  .group-info-columns {
    gap: 1rem;
  }
  
  .group-info-content h3 {
    font-size: 1.1rem;
  }
  
  .group-info-content p {
    font-size: 0.9rem;
  }
}



.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: flex-start;
}

.tool-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
  border: 1px solid #dce3ec;
   flex: 0 1 280px; /* Puedes ajustar el ancho base aquí */
  max-width: 100%;
}




.tool-card:hover {
  transform: translateY(-5px);
}

.tool-card h4 {
  margin-top: 0;
  color: #2979ff;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.tool-card p {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 1rem;
}

.tool-card button {
  background-color: #2979ff;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.tool-card button:hover {
  background-color: #1c5fd9;
}

.score-charts-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  align-items: flex-start;
  justify-content: center;
}

.main-score-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(30,52,93,0.08);
  padding: 2rem 2.5rem;
  flex: 2 1 400px;
  min-width: 320px;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.skills-charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  flex: 1 1 320px;
  min-width: 320px;
  max-width: 400px;
}

.skill-chart-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(30,52,93,0.08);
  padding: 1.2rem 1rem 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  max-width: 320px;
  flex: 1 1 260px;
  margin-bottom: 1.5rem;
}

.skill-chart-card h4 {
  margin-bottom: 0.5rem;
  color: #1E345D;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    position: relative;
    width: 100%;
    min-height: auto;
  }

  .main-content {
    margin-left: 0;
    padding: 1rem;
  }

  .dashboard-widgets {
    flex-direction: column;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .score-charts-container {
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
  }
  .main-score-card, .skills-charts-grid {
    max-width: 100%;
    min-width: 0;
  }
  .skills-charts-grid {
    grid-template-columns: 1fr;
  }
}

/* Canvas sizing for charts */
.main-score-card canvas {
  width: 100% !important;
  max-width: 350px;
  height: 220px !important;
}
.skill-chart-card canvas {
  width: 100% !important;
  max-width: 220px;
  height: 140px !important;
}
