/* Icon-Anpassungen GEFA-CI */
.category-table-row .category-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #01936D, #01936D);
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.category-table-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 1rem;
  padding: 1rem 1rem;
  align-items: center;
  border-bottom: 1px solid #cbcdcc;
  transition: all 0.15s ease;
  background: #F3F7F7;
  margin-bottom: 4px;
}

.category-table-row:hover {
  background: #fff;
  transform: translateX(3px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.action-btn-small::after {
  display: none;
}

/* Alternate icon colors */
.category-table-row:nth-child(2) .category-icon-wrapper {
    background: linear-gradient(135deg, #01936D, #01936D);
}

.category-table-row:nth-child(3) .category-icon-wrapper {
    background: linear-gradient(135deg, #01936D, #01936D);
}

.category-table-row:nth-child(4) .category-icon-wrapper {
    background: linear-gradient(135deg, #01936D, #01936D);
}

.category-table-row:nth-child(5) .category-icon-wrapper {
    background: linear-gradient(135deg, #01936D, #01936D);
}

/* Allg. Formatierungen Edocman */
.category-table-row .category-title-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #01936D;
  text-decoration: none;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 0.25rem;
  transition: color 0.15s ease;
}

.category-table-row .category-title-link:hover {
  color: #333;
}

.category-table-row .stat-badge {
 padding: 0.5rem 0.75rem;
  background: #fff;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.category-table-row .action-btn-small.btn-view {
  background: #01936D;
  border-radius: 900px;
  font-size: 0.666rem;
}

/* Responsive */
@media (max-width: 1024px) {
 .category-table-row {
  display: flex!important;
  grid-template-columns: auto 1fr auto auto!important;
  gap: 1.5rem!important;
  padding: 1.5rem 2rem;
  align-items: center;
  border-bottom: 1px solid #e9ecef;
  transition: all 0.3s ease;
  background: white;
}
}

@media (max-width: 768px) {
    .category-table-row {
      display: grid!important;  
      grid-template-columns: auto 1fr;
        gap: 1rem;
    }
    
    .category-stats-inline {
        grid-column: 1 / -1;
        justify-content: space-between;
        padding-top: 1rem;
        border-top: 1px solid #e9ecef;
        display: none;
    }
    
    .category-actions-inline {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

  .category-actions-inline {
        display: none;
    }
}

@media (max-width: 480px) {
    .edocman-categories-table .table-header {
        padding: 1.25rem 1.5rem;
    }
    
    .category-table-row {
        padding: 1.25rem 1.5rem;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .category-icon-wrapper {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .category-info-section {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .category-stats-inline {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid #e9ecef;
    }
    
    .stat-badge {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .category-actions-inline {
        padding-top: 0.75rem;
        border-top: 1px solid #e9ecef;
    }
}

@media (max-width: 320px) {
    .category-title-link {
        font-size: 1rem;
    }
    
    .category-description {
        font-size: 0.8125rem;
    }
    
    .stat-badge {
        flex: 1;
        justify-content: center;
        min-width: calc(50% - 0.375rem);
    }
}

/* Animation */

.category-table-row:nth-child(1) { animation-delay: 0.05s; }
.category-table-row:nth-child(2) { animation-delay: 0.1s; }
.category-table-row:nth-child(3) { animation-delay: 0.15s; }
.category-table-row:nth-child(4) { animation-delay: 0.2s; }
.category-table-row:nth-child(5) { animation-delay: 0.25s; }
.category-table-row:nth-child(6) { animation-delay: 0.3s; }
.category-table-row:nth-child(7) { animation-delay: 0.35s; }
.category-table-row:nth-child(8) { animation-delay: 0.4s; }
.category-table-row:nth-child(9) { animation-delay: 0.45s; }


@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}