/* Dashboard Layout System */
.cat-dashboard {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Stats Widgets */
.cat-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.cat-stat-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}
.cat-stat-card:hover {
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.15);
}
.cat-stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--accent, #fff);
}
.cat-stat-info {
  display: flex;
  flex-direction: column;
}
.cat-stat-val {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}
.cat-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Search Control Panel */
.cat-controls {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 8px;
  backdrop-filter: blur(10px);
}
.cat-search-wrap {
  display: flex;
  align-items: center;
  padding: 0 16px;
  height: 52px;
  width: 100%;
}
.cat-search-wrap i {
  color: rgba(255,255,255,0.4);
  font-size: 20px;
  margin-right: 14px;
}
.cat-search-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 16px;
}
.cat-search-wrap input::placeholder {
  color: rgba(255,255,255,0.3);
}

/* Section Panels */
.cat-section {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  padding: 24px;
  transition: border-color 0.3s ease;
}
.cat-section:hover {
  border-color: rgba(255,255,255,0.1);
}
.cat-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cat-section-title {
  font-size: 18px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin: 0;
}
.cat-section-icon {
  color: var(--accent);
  font-size: 20px;
  background: rgba(255,255,255,0.05);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Grid Layout */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

/* Category Card - Widget Style */
.cat-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  height: 100%;
}
.cat-card:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}

.cat-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--accent);
  margin-bottom: 16px;
  transition: transform 0.3s ease;
}
.cat-card:hover .cat-icon-box {
  transform: scale(1.1);
  background: var(--accent);
  color: #000;
}

.cat-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  transition: color 0.3s ease;
}
.cat-card:hover .cat-title {
  color: #fff;
}

.cat-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
}
.cat-card:hover .cat-badge {
  background: #fff;
  color: #000;
}

/* Theme Colors */
.cat-net { --accent: #38BDF8; --accent-glow: rgba(56, 189, 248, 0.5); }
.cat-srv { --accent: #FBBF24; --accent-glow: rgba(251, 191, 36, 0.5); }
.cat-sec { --accent: #F87171; --accent-glow: rgba(248, 113, 113, 0.5); }
.cat-tech { --accent: #A78BFA; --accent-glow: rgba(167, 139, 250, 0.5); }
.cat-tut { --accent: #34D399; --accent-glow: rgba(52, 211, 153, 0.5); }
.cat-news { --accent: #F472B6; --accent-glow: rgba(244, 114, 182, 0.5); }
.cat-cloud { --accent: #60A5FA; --accent-glow: rgba(96, 165, 250, 0.5); }

/* Mobile Layout Adjustments */
@media (max-width: 767px) {
  .bl-wrap {
    padding-top: 100px !important;
  }
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cat-section {
    padding: 16px;
  }
}

/* No Results State */
.cat-no-results {
  text-align: center;
  padding: 40px;
  color: rgba(255,255,255,0.5);
  font-size: 15px;
  display: none;
}