/* ========== CONTAINER ========== */
.groups-container {
  max-width: 98%;
  padding: 0 20px;
  margin: 0 auto;
}

/* ========== HERO SECTION ========== */
.groups-hero {
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 80px 20px;
  border-radius: 24px;
  margin-bottom: 40px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.hero-icon-container {
  margin-bottom: 30px;
}

.icon-circle {
  width: 100px;
  height: 100px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  animation: float 3s ease-in-out infinite;
}

.icon-circle i {
  font-size: 3rem;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-main-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 15px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-description {
  font-size: 1.2rem;
  opacity: 0.95;
}

.floating-element {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float-random 15s ease-in-out infinite;
}

.element-1 { top: 10%; left: 5%; animation-delay: 0s; }
.element-2 { top: 60%; right: 10%; animation-delay: -5s; }
.element-3 { bottom: 20%; left: 15%; animation-delay: -10s; }

@keyframes float-random {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* ========== ACTIONS GRID ========== */
.actions-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.action-card-item {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.action-card-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.action-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.gradient-green { background: linear-gradient(135deg, #28a745, #20c997); }
.gradient-blue { background: linear-gradient(135deg, #0dcaf0, #0891b2); }

.action-card-item h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 20px;
}

.action-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-modern {
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.input-modern:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.file-upload-wrapper {
  position: relative;
}

.file-input {
  display: none;
}

.file-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 30px;
  border: 2px dashed #dee2e6;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.file-label:hover {
  border-color: #0dcaf0;
  background: rgba(13, 202, 240, 0.05);
}

.file-label i {
  font-size: 2rem;
  color: #6c757d;
}

.btn-action-modern {
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-action-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ✅ CSV Format Info */
.csv-format-info {
  background: #f8f9fa;
  border-left: 4px solid #0dcaf0;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 0.85rem;
}

.csv-format-info p {
  margin: 0 0 10px 0;
  color: #495057;
  font-weight: 600;
}

.csv-format-info ul {
  margin: 0;
  padding-left: 20px;
  list-style: none;
}

.csv-format-info li {
  margin: 5px 0;
  color: #6c757d;
}

.csv-format-info code {
  background: white;
  padding: 2px 6px;
  border-radius: 4px;
  color: #0dcaf0;
  font-family: monospace;
  font-size: 0.9em;
}

/* ========== TABLE ========== */
.table-modern-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
}

.table-card-header {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 20px 30px;
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 700;
}

.table-container-modern {
  overflow-x: auto;
  padding: 20px;
}

.groups-table-modern {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  font-size: 0.95rem;
}

.groups-table-modern thead th {
  background: #f8f9fa;
  color: #495057;
  font-weight: 600;
  padding: 15px 12px;
  text-align: center;
  white-space: nowrap;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.groups-table-modern tbody tr {
  background: #f8f9ff;
  transition: all 0.3s ease;
}

.groups-table-modern tbody tr:hover {
  background: linear-gradient(90deg, #e8ecff, #f0f4ff);
  transform: scale(1.01);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

.groups-table-modern tbody td {
  padding: 15px 12px;
  text-align: center;
  vertical-align: middle;
}

.id-badge {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
}

.group-name-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.group-name-link:hover {
  color: #764ba2;
  text-decoration: underline;
}

.group-name-link i {
  font-size: 1.2rem;
}

.members-badge {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1rem;
  display: inline-block;
}

.date-cell {
  font-family: monospace;
  color: #6c757d;
  font-size: 0.9rem;
}

.btn-delete-modern {
  padding: 8px 16px;
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-delete-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
  color: white;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero-main-title {
    font-size: 2rem;
  }
  
  .actions-grid-modern {
    grid-template-columns: 1fr;
  }
  
  .table-container-modern {
    overflow-x: auto;
  }
  
  .groups-table-modern {
    font-size: 0.85rem;
  }
  
  .groups-table-modern thead th,
  .groups-table-modern tbody td {
    padding: 10px 8px;
  }
}
