/* YSNOne Platform - Main Styles */

/* ===== Variables ===== */
:root {
  --primary: #667eea;
  --primary-dark: #5a67d8;
  --primary-light: #7c8ff4;
  --secondary: #764ba2;
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  
  --success: #48bb78;
  --success-light: #9ae6b4;
  --warning: #ed8936;
  --warning-light: #fbd38d;
  --danger: #f56565;
  --danger-light: #feb2b2;
  --info: #4299e1;
  
  --gray-50: #f7fafc;
  --gray-100: #edf2f7;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e0;
  --gray-400: #a0aec0;
  --gray-500: #718096;
  --gray-600: #4a5568;
  --gray-700: #2d3748;
  --gray-800: #1a202c;
  --gray-900: #171923;
  
  --sidebar-width: 260px;
  --header-height: 65px;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  --transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: var(--gray-100);
  color: var(--gray-700);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

/* ===== Sidebar ===== */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--gradient);
  color: white;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: var(--transition);
}

.sidebar-header {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
}

.sidebar-header .logo i {
  font-size: 28px;
}

.sidebar-header .subtitle {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 4px;
}

.sidebar-menu {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.menu-section {
  margin-top: 16px;
  margin-bottom: 8px;
}

.menu-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

.menu-section-title i {
  font-size: 10px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius-sm);
  margin-bottom: 4px;
  transition: var(--transition);
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.menu-item.active {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-weight: 600;
}

.menu-item i {
  width: 20px;
  text-align: center;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-info .avatar {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-details .name {
  font-weight: 600;
  font-size: 14px;
}

.user-details .role {
  font-size: 11px;
  opacity: 0.7;
  text-transform: capitalize;
}

.logout-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  color: white;
  font-size: 13px;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* ===== Main Content ===== */
.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-header {
  height: var(--header-height);
  background: white;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.datetime-display {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-sm);
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 500;
}

.datetime-display i {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--gray-600);
  cursor: pointer;
}

.page-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-800);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--gray-100);
  border-radius: var(--border-radius-sm);
  color: var(--gray-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition);
}

.action-btn:hover {
  background: var(--gray-200);
  color: var(--gray-800);
}

.notification-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  background: var(--danger);
  color: white;
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-name {
  font-weight: 500;
  color: var(--gray-700);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.content-wrapper {
  flex: 1;
  padding: 24px;
}

/* ===== Auth Layout ===== */
.auth-layout {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  padding: 20px;
}

.auth-container {
  width: 100%;
  max-width: 420px;
}

.auth-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo {
  width: 80px;
  height: 80px;
  background: var(--gradient);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.auth-logo i {
  font-size: 36px;
  color: white;
}

.auth-logo.success {
  background: var(--success);
}

.auth-header h1 {
  font-size: 24px;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.auth-header p {
  color: var(--gray-500);
}

.auth-form .form-group {
  margin-bottom: 20px;
}

.auth-form label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--gray-700);
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  color: var(--gray-500);
  font-size: 14px;
}

.auth-footer .text-muted {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.success-message {
  text-align: center;
  padding: 24px;
  background: var(--gray-50);
  border-radius: var(--border-radius-sm);
  margin-bottom: 24px;
}

.success-message i {
  font-size: 48px;
  color: var(--success);
  margin-bottom: 16px;
}

.email-display {
  font-weight: 600;
  color: var(--primary);
  font-size: 18px;
  margin-top: 8px;
}

.auth-instructions {
  margin-top: 24px;
}

.auth-instructions h3 {
  margin-bottom: 12px;
  color: var(--gray-700);
}

.auth-instructions ol {
  padding-left: 20px;
  color: var(--gray-600);
}

.auth-instructions li {
  margin-bottom: 8px;
}

.warning-box {
  background: var(--warning-light);
  border: 1px solid var(--warning);
  border-radius: var(--border-radius-sm);
  padding: 12px 16px;
  margin-top: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.warning-box i {
  color: var(--warning);
  margin-top: 2px;
}

.warning-box p {
  margin: 0;
  font-size: 14px;
  color: var(--gray-700);
}

/* ===== Cards ===== */
.card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-800);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-header h2 i {
  color: var(--primary);
}

.card-body {
  padding: 20px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--border-radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient);
  color: white;
}

.btn-primary:hover {
  opacity: 0.9;
  color: white;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-warning {
  background: var(--warning);
  color: white;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
}

/* ===== Forms ===== */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--gray-700);
  font-size: 14px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
  background: white;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-row .full {
  grid-column: 1 / -1;
}

.form-section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-800);
  margin: 24px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-200);
}

.form-section-title:first-child {
  margin-top: 0;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* ===== Alerts ===== */
.alert {
  padding: 14px 18px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.alert-danger {
  background: var(--danger-light);
  color: #c53030;
  border: 1px solid var(--danger);
}

.alert-success {
  background: var(--success-light);
  color: #276749;
  border: 1px solid var(--success);
}

.alert-warning {
  background: var(--warning-light);
  color: #c05621;
  border: 1px solid var(--warning);
}

/* ===== Page Header ===== */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.page-header h1 {
  font-size: 24px;
  font-weight: 600;
  color: var(--gray-800);
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-header h1 i {
  color: var(--primary);
}

.header-actions {
  display: flex;
  gap: 12px;
}

/* ===== Stats ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

.stat-icon.blue { background: var(--primary); }
.stat-icon.green { background: var(--success); }
.stat-icon.purple { background: var(--secondary); }
.stat-icon.orange { background: var(--warning); }

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-800);
}

.stat-label {
  color: var(--gray-500);
  font-size: 14px;
}

.stat-change {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 4px;
}

.stat-change .active,
.stat-change .online {
  color: var(--success);
  font-weight: 600;
}

/* ===== Dashboard Grid ===== */
.dashboard-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dashboard-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ===== Applications Grid ===== */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.app-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--gray-50);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.app-card:hover {
  border-color: var(--primary);
}

.app-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.app-info {
  flex: 1;
}

.app-name {
  font-weight: 600;
  color: var(--gray-800);
  font-size: 14px;
}

.app-link {
  color: var(--gray-400);
}

.app-link:hover {
  color: var(--primary);
}

/* ===== Activity List ===== */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: var(--gray-50);
  border-radius: var(--border-radius-sm);
}

.activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.activity-icon.success {
  background: var(--success-light);
  color: var(--success);
}

.activity-icon.failure {
  background: var(--danger-light);
  color: var(--danger);
}

.activity-icon.warning {
  background: var(--warning-light);
  color: var(--warning);
}

.activity-content {
  flex: 1;
}

.activity-action {
  font-weight: 500;
  color: var(--gray-800);
  font-size: 13px;
  text-transform: capitalize;
}

.activity-desc {
  font-size: 12px;
  color: var(--gray-500);
}

.activity-time {
  font-size: 11px;
  color: var(--gray-400);
}

/* ===== Quick Actions ===== */
.quick-actions h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 16px;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--gray-700);
  transition: var(--transition);
}

.action-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--primary);
}

.action-card i {
  font-size: 32px;
  color: var(--primary);
}

/* ===== Applications List ===== */
.applications-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.application-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.application-card:hover {
  box-shadow: var(--shadow-lg);
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.app-header .app-icon {
  width: 48px;
  height: 48px;
  font-size: 20px;
}

.app-status-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.app-status-badge.active {
  background: var(--success-light);
  color: #276749;
}

.app-status-badge.inactive {
  background: var(--gray-200);
  color: var(--gray-600);
}

.app-status-badge.maintenance {
  background: var(--warning-light);
  color: #c05621;
}

.app-status-badge.suspended {
  background: var(--danger-light);
  color: #c53030;
}

.app-body {
  padding: 20px;
}

.app-body .app-name {
  font-size: 18px;
  margin-bottom: 4px;
}

.app-slug {
  font-size: 13px;
  color: var(--gray-500);
  font-family: monospace;
}

.app-description {
  color: var(--gray-600);
  font-size: 14px;
  margin-top: 12px;
}

.app-details {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-details .detail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-600);
}

.app-details .detail i {
  color: var(--gray-400);
  width: 16px;
}

.app-health {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}

.health-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.health-status.healthy {
  color: var(--success);
}

.health-status.unhealthy {
  color: var(--danger);
}

.health-status.unknown {
  color: var(--gray-400);
}

.app-actions {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}

.app-actions .btn {
  flex: 1;
}

/* ===== Status Badges ===== */
.status-badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}

.status-badge.active { background: var(--success-light); color: #276749; }
.status-badge.inactive { background: var(--gray-200); color: var(--gray-600); }
.status-badge.pending { background: var(--warning-light); color: #c05621; }
.status-badge.suspended { background: var(--danger-light); color: #c53030; }
.status-badge.online { background: var(--success-light); color: #276749; }
.status-badge.offline { background: var(--danger-light); color: #c53030; }
.status-badge.maintenance { background: var(--warning-light); color: #c05621; }
.status-badge.unknown { background: var(--gray-200); color: var(--gray-600); }
.status-badge.trial { background: var(--info); color: white; }
.status-badge.expired { background: var(--danger-light); color: #c53030; }

.plan-badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}

.plan-badge.free { background: var(--gray-200); color: var(--gray-600); }
.plan-badge.starter { background: #c6f6d5; color: #276749; }
.plan-badge.professional { background: #bee3f8; color: #2b6cb0; }
.plan-badge.enterprise { background: #e9d8fd; color: #6b46c1; }

.role-badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}

.role-badge.superadmin { background: #fed7e2; color: #b83280; }
.role-badge.admin { background: #bee3f8; color: #2b6cb0; }
.role-badge.viewer { background: var(--gray-200); color: var(--gray-600); }

/* ===== Tables ===== */
.table-container {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  background: var(--gray-50);
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--gray-500);
  border-bottom: 1px solid var(--gray-200);
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 14px;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover {
  background: var(--gray-50);
}

.data-table .actions {
  display: flex;
  gap: 8px;
}

/* ===== Filters ===== */
.filters-bar {
  background: white;
  border-radius: var(--border-radius);
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.filters-form {
  display: flex;
  gap: 12px;
  align-items: center;
}

.filter-group {
  flex: 1;
  max-width: 200px;
}

.filter-group .form-control {
  margin: 0;
}

/* ===== Detail Pages ===== */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.detail-grid .full-width {
  grid-column: 1 / -1;
}

.detail-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
}

.detail-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-item.full {
  flex-direction: column;
  gap: 8px;
}

.detail-label {
  font-size: 13px;
  color: var(--gray-500);
}

.detail-value {
  font-weight: 500;
  color: var(--gray-800);
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--gray-500);
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state.large {
  padding: 80px 20px;
}

.empty-state.large h2 {
  font-size: 20px;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.empty-state.large p {
  margin-bottom: 20px;
}

/* ===== Modals ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: var(--border-radius);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
  font-size: 18px;
  color: var(--gray-800);
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--gray-400);
  cursor: pointer;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px;
  border-top: 1px solid var(--gray-200);
}

/* ===== Error Pages ===== */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.error-content {
  text-align: center;
}

.error-icon {
  font-size: 80px;
  margin-bottom: 20px;
}

.error-icon i {
  color: var(--warning);
}

.error-content h1 {
  font-size: 72px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.error-content h2 {
  font-size: 24px;
  color: var(--gray-600);
  margin-bottom: 16px;
}

.error-content p {
  color: var(--gray-500);
  margin-bottom: 24px;
}

/* ===== Monitoring ===== */
.monitoring-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.servers-overview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.server-status-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--border-radius-sm);
  border-left: 4px solid var(--gray-300);
}

.server-status-card.online {
  border-left-color: var(--success);
}

.server-status-card.offline {
  border-left-color: var(--danger);
}

.server-icon {
  width: 44px;
  height: 44px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

.server-info {
  flex: 1;
}

.server-name {
  font-weight: 600;
  color: var(--gray-800);
}

.server-host {
  font-size: 13px;
  color: var(--gray-500);
  font-family: monospace;
}

.server-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
}

.status-dot.online { background: var(--success); }
.status-dot.offline { background: var(--danger); }
.status-dot.active { background: var(--success); }
.status-dot.inactive { background: var(--gray-300); }

.health-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.health-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--gray-50);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--gray-200);
}

.health-card.healthy {
  border-color: var(--success);
  background: var(--success-light);
}

.health-card.unhealthy {
  border-color: var(--danger);
  background: var(--danger-light);
}

.health-icon {
  font-size: 24px;
}

.health-card.healthy .health-icon { color: var(--success); }
.health-card.unhealthy .health-icon { color: var(--danger); }
.health-card.unknown .health-icon { color: var(--gray-400); }

.health-info {
  flex: 1;
}

.health-info .app-name {
  font-size: 13px;
}

.health-status-text {
  font-size: 11px;
  color: var(--gray-500);
}

.health-actions {
  display: flex;
}

/* ===== Servers Grid ===== */
.servers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.server-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.server-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.server-status-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}

.server-body {
  padding: 20px;
}

.server-body .server-name {
  font-size: 18px;
  margin-bottom: 12px;
}

.server-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.server-details .detail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-600);
}

.server-details .detail i {
  color: var(--gray-400);
  width: 16px;
}

.server-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}

.server-specs .spec {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--gray-100);
  border-radius: 4px;
  font-size: 12px;
  color: var(--gray-600);
}

.server-specs .spec i {
  color: var(--gray-400);
}

.server-actions {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}

/* ===== Activity Timeline ===== */
.activity-timeline {
  position: relative;
}

.timeline-item {
  display: flex;
  gap: 16px;
  padding-bottom: 24px;
  position: relative;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-marker {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  z-index: 1;
}

.timeline-item.success .timeline-marker {
  background: var(--success-light);
  color: var(--success);
}

.timeline-item.failure .timeline-marker {
  background: var(--danger-light);
  color: var(--danger);
}

.timeline-item.warning .timeline-marker {
  background: var(--warning-light);
  color: var(--warning);
}

.timeline-content {
  flex: 1;
  background: var(--gray-50);
  border-radius: var(--border-radius-sm);
  padding: 16px;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.timeline-header .action {
  font-weight: 600;
  color: var(--gray-800);
  text-transform: capitalize;
}

.timeline-header .category {
  font-size: 11px;
  padding: 2px 8px;
  background: var(--gray-200);
  border-radius: 4px;
  color: var(--gray-600);
  text-transform: capitalize;
}

.timeline-body p {
  color: var(--gray-600);
  font-size: 14px;
  margin-bottom: 8px;
}

.timeline-body .user-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-500);
}

.timeline-footer {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-200);
}

.timeline-footer span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gray-400);
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.page-info {
  color: var(--gray-500);
  font-size: 14px;
}

/* ===== Settings ===== */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
}

.setting-item:last-child {
  border-bottom: none;
}

.setting-info h4 {
  font-size: 14px;
  color: var(--gray-800);
  margin-bottom: 4px;
}

.setting-info p {
  font-size: 13px;
  color: var(--gray-500);
}

.setting-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inline-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inline-form .form-control {
  width: 100px;
}

.currency {
  color: var(--gray-500);
  font-size: 14px;
}

.admins-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--gray-50);
  border-radius: var(--border-radius-sm);
}

.admin-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.admin-info {
  flex: 1;
}

.admin-name {
  font-weight: 600;
  color: var(--gray-800);
}

.admin-email {
  font-size: 13px;
  color: var(--gray-500);
}

.admin-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.admin-actions {
  display: flex;
  gap: 8px;
}

/* ===== Token Settings ===== */
.token-rate-form {
  max-width: 400px;
}

.input-with-addon {
  display: flex;
  align-items: center;
}

.input-with-addon .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-with-addon .addon {
  padding: 10px 14px;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-left: none;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  color: var(--gray-600);
  font-size: 14px;
}

.rate-preview {
  margin: 24px 0;
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--border-radius-sm);
}

.preview-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}

.preview-item .value {
  font-weight: 600;
  color: var(--primary);
}

.bonuses-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.bonus-item {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--border-radius-sm);
}

.bonus-fields {
  display: flex;
  gap: 12px;
  flex: 1;
}

.bonus-fields .form-group {
  flex: 1;
  margin: 0;
}

.calculator {
  max-width: 300px;
}

.calc-result {
  margin-top: 16px;
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--border-radius-sm);
}

.result-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}

.result-item.total {
  border-top: 1px solid var(--gray-200);
  margin-top: 8px;
  padding-top: 16px;
  font-weight: 600;
  font-size: 16px;
}

/* ===== Tokens Display ===== */
.tokens-display {
  display: flex;
  gap: 24px;
}

.token-stat {
  text-align: center;
  flex: 1;
}

.token-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
}

.token-label {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 4px;
}

/* ===== n8n Integration ===== */
.n8n-container .card {
  margin-bottom: 20px;
}

.n8n-info p {
  margin-bottom: 20px;
  color: var(--gray-600);
}

.integration-status {
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--border-radius-sm);
  margin-bottom: 20px;
}

.status-check {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-indicator {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-indicator.checking {
  background: var(--gray-200);
  color: var(--gray-600);
}

.status-indicator.online {
  background: var(--success-light);
  color: #276749;
}

.status-indicator.offline {
  background: var(--danger-light);
  color: #c53030;
}

.n8n-config {
  margin-top: 16px;
}

.n8n-config h4 {
  font-size: 14px;
  margin-bottom: 12px;
}

.config-item {
  display: flex;
  gap: 12px;
  font-size: 14px;
  margin-bottom: 8px;
}

.config-item .label {
  color: var(--gray-500);
}

.config-item .value {
  font-family: monospace;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.webhook-info p {
  margin-bottom: 12px;
}

.webhook-url {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: var(--gray-100);
  border-radius: var(--border-radius-sm);
}

.webhook-url code {
  flex: 1;
  font-size: 13px;
  word-break: break-all;
}

.workflow-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: var(--gray-50);
  border-radius: var(--border-radius-sm);
  margin-bottom: 8px;
}

.workflow-name {
  font-weight: 500;
}

.workflow-status {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
}

.workflow-status.active {
  background: var(--success-light);
  color: #276749;
}

.workflow-status.inactive {
  background: var(--gray-200);
  color: var(--gray-600);
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px;
  color: var(--gray-500);
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .applications-grid,
  .servers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .dashboard-content,
  .monitoring-grid,
  .settings-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .stats-row {
    grid-template-columns: 1fr;
  }
  
  .applications-grid,
  .servers-grid,
  .apps-grid,
  .health-grid,
  .quick-actions-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .filters-form {
    flex-wrap: wrap;
  }
  
  .filter-group {
    max-width: 100%;
  }
  
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .tokens-display {
    flex-direction: column;
    gap: 16px;
  }
}

/* ========================================
   MODAL STYLES (Global)
   ======================================== */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #ffffff;
  border-radius: var(--border-radius-lg);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  animation: modalSlideIn 0.3s ease;
  border: 1px solid #e0e0e0;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e0e0e0;
  background: #f8f9fa;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.modal-close:hover {
  background: #fee2e2;
  color: #dc2626;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  max-height: calc(90vh - 140px);
  background: #ffffff;
  color: #333;
}

.modal-body .form-group {
  margin-bottom: 1rem;
}

.modal-body .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151;
}

.modal-body .form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  background: #ffffff;
  color: #333;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.modal-body .form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.modal-body select.form-control {
  cursor: pointer;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background: #f8f9fa;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state p {
  margin: 0;
  font-size: 1rem;
}

/* ===== Help Section Styles ===== */
.page-description {
  color: var(--gray-500);
  font-size: 0.95rem;
  margin-top: 0.5rem;
  line-height: 1.6;
}

.help-box {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: var(--border-radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.help-box h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.help-box h4 i {
  font-size: 1.1rem;
}

.help-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.help-list li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--gray-600);
  font-size: 0.9rem;
  line-height: 1.5;
}

.help-list li::before {
  content: '•';
  position: absolute;
  left: 0.5rem;
  color: var(--primary);
  font-weight: bold;
}

.help-list li strong {
  color: var(--gray-700);
  font-weight: 600;
}

/* Help Section Features Grid */
.help-section {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  border: 1px solid rgba(102, 126, 234, 0.15);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.help-section h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.help-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius-sm);
}

.feature-item i {
  color: var(--primary);
  font-size: 1rem;
  margin-top: 0.15rem;
}

.feature-item strong {
  display: block;
  color: var(--gray-700);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.feature-item span {
  color: var(--gray-500);
  font-size: 0.85rem;
  line-height: 1.4;
}

/* ===== Workflows List ===== */
.workflows-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.workflow-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
}

.workflow-card:hover {
  background: white;
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
}

.workflow-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.workflow-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.workflow-icon.active {
  background: linear-gradient(135deg, var(--success), #38a169);
  color: white;
}

.workflow-icon.inactive {
  background: var(--gray-200);
  color: var(--gray-500);
}

.workflow-info {
  flex: 1;
  min-width: 0;
}

.workflow-name {
  font-weight: 600;
  color: var(--gray-800);
  font-size: 1rem;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workflow-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--gray-500);
}

.workflow-meta .workflow-triggers {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.workflow-meta .workflow-triggers i {
  color: var(--warning);
  font-size: 0.75rem;
}

.workflow-status {
  padding: 0 1rem;
}

.workflow-actions {
  display: flex;
  gap: 0.5rem;
}

/* ===== Stats Grid for n8n ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.stats-grid .stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.stats-grid .stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.stats-grid .stat-icon.success {
  background: linear-gradient(135deg, var(--success), #38a169);
  color: white;
}

.stats-grid .stat-icon.danger {
  background: linear-gradient(135deg, var(--danger), #c53030);
  color: white;
}

.stats-grid .stat-icon.warning {
  background: linear-gradient(135deg, var(--warning), #dd6b20);
  color: white;
}

.stats-grid .stat-icon.primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.stats-grid .stat-info {
  flex: 1;
}

.stats-grid .stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.2;
}

.stats-grid .stat-label {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

/* Stats Grid Secondary */
.stats-grid.secondary {
  margin-top: 1rem;
}

.stat-card.small {
  padding: 1rem 1.25rem;
}

.stat-card.small .stat-icon {
  width: 40px;
  height: 40px;
  font-size: 1rem;
}

.stat-card.small .stat-value {
  font-size: 1.5rem;
}

/* Config List */
.config-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.config-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-sm);
}

.config-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gray-600);
  font-weight: 500;
}

.config-label i {
  color: var(--primary);
  width: 20px;
  text-align: center;
}

.config-value {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-700);
  font-weight: 500;
}

.config-value code {
  background: var(--gray-800);
  color: var(--success-light);
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  max-width: 400px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-success {
  color: var(--success) !important;
}

.text-muted {
  color: var(--gray-400) !important;
}

/* Quick Actions Grid */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 500;
}

.action-card:hover {
  background: white;
  border-color: var(--primary);
  box-shadow: var(--shadow);
  color: var(--primary);
}

.action-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.action-card:hover .action-icon {
  transform: scale(1.05);
}

/* Data Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.data-table th {
  background: var(--gray-50);
  color: var(--gray-600);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.data-table tr:hover {
  background: var(--gray-50);
}

.data-table .badge {
  font-size: 0.75rem;
}
