body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 20px;
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  position: relative;
}

.small-logo {
  position: absolute;
  top: 15px;
  right: 15px;
  height: 60px;
  width: auto;
}

h1 {
  text-align: center;
  color: #667eea;
  margin-bottom: 15px;
  font-size: 2.5rem;
  font-weight: 700;
}

.container > p {
  text-align: center;
  margin-bottom: 30px;
  color: #666;
  font-size: 16px;
}

/* Tutorial Modal Styles */
.tutorial-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
}

.tutorial-modal-content {
  background: white;
  border-radius: 20px;
  width: 90%;
  max-width: 700px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
  animation: slideIn 0.4s ease-out;
}

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

.tutorial-close-x {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 32px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s;
}

.tutorial-close-x:hover {
  transform: scale(1.2);
}

.tutorial-intro {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 40px 30px;
  color: white;
  text-align: center;
}

.tutorial-intro h2 {
  margin: 0 0 15px 0;
  font-size: 28px;
  color: white !important;
}

.tutorial-intro p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: white !important;
}

.tutorial-intro u {
  text-decoration: underline;
  text-decoration-color: white;
}

.tutorial-slider-container {
  position: relative;
  padding: 40px 80px 5px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.slider-arrow:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.slider-arrow-left {
  left: 15px;
}

.slider-arrow-right {
  right: 15px;
}

.tutorial-steps {
  min-height: 250px;
  position: relative;
}

.step {
  display: none;
  text-align: center;
  animation: fadeIn 0.5s ease-in;
}

.step.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.step-number {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.step-content h3 {
  color: #667eea;
  margin-bottom: 15px;
  font-size: 22px;
}

.step-content p {
  color: #555;
  line-height: 1.6;
  font-size: 15px;
}

.slider-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0 20px 5px;
  margin-top: -35px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  width: 30px;
  border-radius: 6px;
}

.tutorial-close-btn {
  width: calc(100% - 60px);
  margin: 5px 30px 20px;
  padding: 15px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tutorial-close-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Filters Section */
.filters-section {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 30px;
  color: white;
}

.filters-section h3 {
  margin: 0 0 15px 0;
  font-size: 20px;
  color: white;
}

.filters-container {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-group label {
  font-weight: 500;
  color: white;
}

.filter-group select,
.filter-group input[type="date"] {
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  background: white;
  color: #333;
  font-size: 14px;
}

.filter-group input[type="checkbox"] {
  cursor: pointer;
  width: 18px;
  height: 18px;
}

.export-btn, .refresh-btn {
  padding: 8px 16px;
  border: 2px solid white;
  border-radius: 6px;
  background: transparent;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
  position: relative;
}

.refresh-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) scale(0);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
  transition: all 0.3s ease;
  opacity: 0;
  z-index: 100;
}

.refresh-btn::before {
  content: '';
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%) scale(0);
  border: 6px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
  transition: all 0.3s ease;
  opacity: 0;
  z-index: 100;
}

.refresh-btn:hover::after,
.refresh-btn:hover::before {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

.export-btn:hover, .refresh-btn:hover {
  background: white;
  color: #667eea;
}

#apply-custom {
  background: white;
  color: #667eea;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

/* Dashboard Section */
.dashboard-section {
  background: white;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 30px;
  border-left: 5px solid #9333ea;
}

.dashboard-section h3 {
  color: #9333ea;
  margin: 0 0 20px 0;
  font-size: 22px;
  font-weight: 600;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

.metric-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s;
  border: 1px solid #e2e8f0;
}

.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.metric-icon {
  font-size: 36px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.metric-content {
  flex: 1;
}

.metric-content h4 {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}

.metric-value {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 5px 0;
}

.metric-change {
  font-size: 13px;
  margin: 0;
  font-weight: 500;
}

.metric-change.positive {
  color: #10b981;
}

.metric-change.negative {
  color: #ef4444;
}

.metric-change.neutral {
  color: #64748b;
}

/* Charts Section */
.charts-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-bottom: 30px;
}

.chart-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border-left: 5px solid #667eea;
}

.chart-card.large {
  grid-column: span 2;
}

.chart-card h3 {
  color: #667eea;
  margin: 0 0 20px 0;
  font-size: 18px;
  font-weight: 600;
}

.chart-card canvas {
  width: 100%;
  height: 400px;
  display: block;
}

/* Table Section */
.table-section {
  background: white;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 30px;
  border-left: 5px solid #f97316;
}

.table-section h3 {
  color: #f97316;
  margin: 0 0 20px 0;
  font-size: 22px;
  font-weight: 600;
}

.table-filters {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.table-filters input,
.table-filters select {
  padding: 10px 15px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  flex: 1;
  min-width: 200px;
}

.table-container {
  overflow-x: auto;
}

.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 2px solid #f1f5f9;
}

.show-more-btn {
  padding: 10px 20px;
  background: linear-gradient(90deg, #f97316 0%, #fb923c 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.show-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.showing-count {
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

thead {
  background: linear-gradient(90deg, #f97316 0%, #fb923c 100%);
  color: white;
}

th {
  padding: 15px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  border-right: 2px solid rgba(255,255,255,0.3);
}

th:last-child {
  border-right: none;
}

td {
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
}

tbody tr:hover {
  background: #f8fafc;
}

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

.status-badge.completada {
  background: #d1fae5;
  color: #065f46;
}

.status-badge.pendiente {
  background: #fef3c7;
  color: #92400e;
}

.status-badge.cancelada {
  background: #fee2e2;
  color: #991b1b;
}

/* Insights Section */
.insights-section {
  background: white;
  padding: 30px;
  border-radius: 12px;
  border-left: 5px solid #10b981;
}

.insights-section h3 {
  color: #10b981;
  margin: 0 0 20px 0;
  font-size: 22px;
  font-weight: 600;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.insight-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #10b981;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.insight-card.warning {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-left-color: #f59e0b;
}

.insight-card.info {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-left-color: #3b82f6;
}

.insight-card h4 {
  margin: 0 0 10px 0;
  color: #1e293b;
  font-size: 16px;
  font-weight: 600;
}

.insight-card p {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .charts-section {
    grid-template-columns: 1fr;
  }
  
  .chart-card.large {
    grid-column: span 1;
  }
  
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .filters-container {
    flex-direction: column;
    align-items: stretch;
  }
}

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