/* Dashboard Organization Styles */
.dashboard-section {
  margin: 24px 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #0a0a0a 0%, #0f0f0f 100%);
  border: 1px solid #1a1a1a;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.section-header {
  margin: 0;
  padding: 16px 20px;
  background: linear-gradient(135deg, #1a1a1a 0%, #1d1d1d 100%);
  border-bottom: 1px solid #2a2a2a;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-header::before {
  content: '';
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, #EB0028 0%, #ff4d4d 100%);
  border-radius: 2px;
}

/* Button Styles */
.action-btn {
  background: linear-gradient(135deg, #EB0028 0%, #ff4d4d 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(235, 0, 40, 0.3);
}

.action-btn:hover {
  background: linear-gradient(135deg, #ff4d4d 0%, #ff6666 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(235, 0, 40, 0.4);
}

.action-btn:active {
  transform: translateY(0);
}

.action-btn:disabled {
  background: #333;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
  box-shadow: none;
}

/* Toggle Buttons */
.toggle-btn {
  background: #1a1a1a;
  color: #bbb;
  border: 1px solid #333;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.toggle-btn:hover {
  background: #2a2a2a;
  color: #fff;
}

.toggle-btn.active {
  background: linear-gradient(135deg, #EB0028 0%, #ff4d4d 100%);
  color: white;
  border-color: #EB0028;
  box-shadow: 0 2px 8px rgba(235, 0, 40, 0.3);
}

/* Stat Cards */
.stat-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #1d1d1d 100%);
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  transition: all 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  border-color: #3a3a3a;
}

.stat-card h4 {
  color: #888;
  font-weight: 500;
  margin-bottom: 8px;
}

.stat-card > div {
  color: #fff;
}

/* Tables */
.dashboard-section table {
  background: #0a0a0a;
  border-radius: 8px;
  overflow: hidden;
}

.dashboard-section th {
  background: linear-gradient(135deg, #1a1a1a 0%, #1d1d1d 100%);
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.dashboard-section td {
  border-bottom: 1px solid #1a1a1a;
  color: #ccc;
}

.dashboard-section tr:hover td {
  background: #1a1a1a;
  color: #fff;
}

/* Form Elements */
.dashboard-section input,
.dashboard-section select {
  background: #1a1a1a;
  border: 1px solid #333;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.dashboard-section input:focus,
.dashboard-section select:focus {
  outline: none;
  border-color: #EB0028;
  box-shadow: 0 0 0 3px rgba(235, 0, 40, 0.1);
}

.dashboard-section label {
  color: #888;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Message Areas */
.dashboard-section div[id$="Msg"] {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.85rem;
  color: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
  .dashboard-section {
    margin: 16px 0;
  }
  
  .section-header {
    padding: 12px 16px;
    font-size: 1rem;
  }
  
  .dashboard-section > div[style*="padding:16px"] {
    padding: 12px !important;
  }
  
  .dashboard-section .stat-card {
    padding: 12px;
  }
  
  .dashboard-section table {
    font-size: 0.8rem;
  }
  
  .dashboard-section th,
  .dashboard-section td {
    padding: 6px 4px;
  }
}

/* Subtle animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.dashboard-section {
  animation: fadeIn 0.3s ease-out;
}

/* Collapsible sections */
.collapsible {
  cursor: pointer;
  user-select: none;
}

.collapsible::after {
  content: '▼';
  margin-left: auto;
  transition: transform 0.2s ease;
  color: #666;
}

.collapsible.collapsed::after {
  transform: rotate(-90deg);
}

.collapsible + div {
  max-height: 2000px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.collapsible.collapsed + div {
  max-height: 0;
}
