/* Dashboard Admin Custom Styles */

:root {
  /* Enhanced Dashboard Colors */
  --dashboard-primary: #667eea;
  --dashboard-secondary: #764ba2;
  --dashboard-accent: #f093fb;
  --dashboard-success: #56ab2f;
  --dashboard-warning: #f5576c;
  --dashboard-info: #4facfe;
  --dashboard-danger: #ff6b6b;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-success: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
  --gradient-warning: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-info: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-danger: linear-gradient(135deg, #ff6b6b 0%, #ffa8a8 100%);
  
  /* Enhanced Shadows */
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.16);
  --shadow-glow: 0 0 20px rgba(102, 126, 234, 0.3);
}

/* Dashboard Header Enhancement */
.dashboard-header {
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.dashboard-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.dashboard-title {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Dashboard Title Enhancement */
.dashboard-header .notification-title.text-primary {
    color: #1a365d !important; /* Darker primary blue */
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-weight: 700 !important;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.dashboard-header .notification-title.text-primary i {
    color: #2563eb; /* Bright blue for icon */
    margin-right: 0.75rem;
    text-shadow: none;
}

.dashboard-header .notification-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    font-size: 1rem;
}

/* Enhanced header gradient for better contrast */
.dashboard-header.notification-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #1e40af 100%);
    position: relative;
    overflow: hidden;
}

.dashboard-header.notification-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
    pointer-events: none;
}

.dashboard-header .container-fluid {
    position: relative;
    z-index: 2;
}

/* Responsive title sizing */
@media (max-width: 768px) {
    .dashboard-header .notification-title.text-primary {
        font-size: 1.8rem;
    }
    
    .dashboard-header .notification-title.text-primary i {
        margin-right: 0.5rem;
    }
}

/* Enhanced Stats Cards */
.dashboard-stats-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-light);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dashboard-stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.dashboard-stats-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-heavy);
}

.dashboard-stats-card:hover::before {
  transform: scaleX(1);
}

.dashboard-stats-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.dashboard-stats-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  opacity: 0.1;
  transform: scale(1.5);
  border-radius: 50%;
}

.dashboard-stats-icon.primary {
  background: var(--gradient-primary);
  color: white;
}

.dashboard-stats-icon.success {
  background: var(--gradient-success);
  color: white;
}

.dashboard-stats-icon.warning {
  background: var(--gradient-warning);
  color: white;
}

.dashboard-stats-icon.info {
  background: var(--gradient-info);
  color: white;
}

.dashboard-stats-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 8px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dashboard-stats-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dashboard-stats-trend {
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dashboard-stats-trend.up {
  color: var(--dashboard-success);
}

.dashboard-stats-trend.down {
  color: var(--dashboard-danger);
}

/* Quick Actions Enhancement */
.dashboard-quick-actions {
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-medium);
  margin-top: 32px;
}

.dashboard-action-btn {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: #4a5568;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.dashboard-action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dashboard-action-btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
  border-color: var(--dashboard-primary);
  color: white;
}

.dashboard-action-btn:hover::before {
  opacity: 1;
}

.dashboard-action-btn i,
.dashboard-action-btn span {
  position: relative;
  z-index: 2;
}

.dashboard-action-btn i {
  font-size: 2rem;
}

.dashboard-action-btn.action-logs i {
  color: #f59e0b;
}

.dashboard-action-btn.action-notification i {
  color: #8b5cf6;
}

.dashboard-action-btn.action-accounts i {
  color: #10b981;
}

.dashboard-action-btn.action-users i {
  color: #3b82f6;
}

/* Recent Activity Tables */
.dashboard-activity-card {
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-light);
  overflow: hidden;
  margin-top: 32px;
}

.dashboard-activity-header {
  background: var(--gradient-primary);
  color: white;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-activity-body {
  padding: 0;
}

.dashboard-activity-table {
  margin: 0;
  width: 100%;
}

.dashboard-activity-table thead th {
  background: #f7fafc;
  border: none;
  padding: 16px 24px;
  font-weight: 600;
  color: #4a5568;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dashboard-activity-table tbody td {
  padding: 16px 24px;
  border-top: 1px solid #e2e8f0;
  vertical-align: middle;
}

.dashboard-activity-table tbody tr:hover {
  background: #f7fafc;
}

/* Log Type Badges */
.log-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.log-badge.success {
  background: var(--gradient-success);
  color: white;
}

.log-badge.error {
  background: var(--gradient-danger);
  color: white;
}

.log-badge.warning {
  background: var(--gradient-warning);
  color: white;
}

/* Loading States */
.dashboard-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: #718096;
}

.dashboard-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e2e8f0;
  border-top: 3px solid var(--dashboard-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 12px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Empty States */
.dashboard-empty {
  text-align: center;
  padding: 40px;
  color: #a0aec0;
}

.dashboard-empty i {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 768px) {
  .dashboard-stats-card {
    padding: 20px;
    margin-bottom: 16px;
  }
  
  .dashboard-stats-number {
    font-size: 2rem;
  }
  
  .dashboard-quick-actions {
    padding: 24px;
  }
  
  .dashboard-action-btn {
    padding: 16px;
  }
  
  .dashboard-activity-table thead th,
  .dashboard-activity-table tbody td {
    padding: 12px 16px;
  }
}

/* Animation Delays for Staggered Loading */
.dashboard-stats-card:nth-child(1) { animation-delay: 0.1s; }
.dashboard-stats-card:nth-child(2) { animation-delay: 0.2s; }
.dashboard-stats-card:nth-child(3) { animation-delay: 0.3s; }
.dashboard-stats-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard-animate {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}
