/**
 * CloudManager GUI - Single Source of Truth
 * Dark Theme with Purple/Blue Gradients
 */

/* ============================================
   CSS VARIABLES - DARK THEME
   ============================================ */
:root {
  /* Body & Container */
  --body-bg: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  --container-bg: #0f1419;

  /* Header */
  --header-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --header-color: white;

  /* Admin Bar */
  --admin-bar-bg: #1a1f2e;
  --admin-bar-border: #2a2f3e;
  --admin-bar-text: #c9d1d9;
  --admin-bar-label: #8b949e;

  /* Authentication */
  --auth-bg: #3a3f2a;
  --auth-border: #7a8450;
  --auth-text: #d4e09b;
  --auth-label: #f4d35e;
  --auth-value-color: #c9d1d9;
  --auth-value-code-bg: #1a1f2e;
  --auth-value-code-color: #8fbc8f;

  /* Code inline - DARK THEME WITH PURPLE TEXT */
  --code-inline-bg: #242936;
  --code-inline-color: #8b9cff;
  --code-inline-border: #2a2f3e;

  /* Tenant Card */
  --tenant-border: #2a2f3e;
  --tenant-header-bg: linear-gradient(135deg, #3b7fa8 0%, #7a5bb8 100%);
  --tenant-header-color: white;
  --tenant-header-hover-bg: linear-gradient(135deg, #2f6a8f 0%, #654a9a 100%);
  --tenant-content-bg: #1a1f2e;
  --tenant-description-color: #c9d1d9;
  --tenant-description-bg: #242936;

  /* Sections */
  --section-heading-color: #c9d1d9;
  --section-container-bg: #1a1f2e;
  --section-container-border: #2a2f3e;
  --section-h3-color: white;
  --section-h4-color: white;
  --section-header-border: #2a2f3e;

  /* Core Services */
  --core-services-bg: #1c1e28;
  --core-services-header-bg: linear-gradient(135deg, #663399 0%, #4169e1 100%);
  --core-services-header-hover-bg: linear-gradient(135deg, #542181 0%, #3457c9 100%);

  /* Subnets */
  --subnets-bg: #1a1f2e;
  --subnets-header-bg: linear-gradient(135deg, #663399 0%, #4169e1 100%);
  --subnets-header-hover-bg: linear-gradient(135deg, #542181 0%, #3457c9 100%);

  /* Pods */
  --pods-bg: #1d2230;
  --pods-header-bg: linear-gradient(135deg, #663399 0%, #4169e1 100%);
  --pods-header-hover-bg: linear-gradient(135deg, #542181 0%, #3457c9 100%);

  /* VPC */
  --vpc-section-bg: #0d1117;
  --vpc-header-bg: linear-gradient(135deg, #9370db 0%, #6495ed 100%);
  --vpc-header-color: white;
  --vpc-header-hover-bg: linear-gradient(135deg, #815ec3 0%, #5283d5 100%);
  --vpc-info-li-bg: #242936;
  --vpc-info-li-color: #c9d1d9;
  --vpc-info-strong-color: #8b9cff;

  /* Provider */
  --provider-section-bg: #1a1f2e;
  --provider-header-bg: linear-gradient(135deg, #0891b2 0%, #6366f1 100%);
  --provider-header-hover-bg: linear-gradient(135deg, #0e7490 0%, #4f46e5 100%);

  /* Tenants Section */
  --tenants-section-bg: #222834;
  --tenants-header-bg: linear-gradient(135deg, #0891b2 0%, #6366f1 100%);
  --tenants-header-hover-bg: linear-gradient(135deg, #0e7490 0%, #4f46e5 100%);

  /* Tables */
  --table-bg: #1a1f2e;
  --table-header-bg: #242936;
  --table-header-color: #c9d1d9;
  --table-header-border: #2a2f3e;
  --table-cell-border: #2a2f3e;
  --table-cell-color: #8b949e;
  --table-row-hover-bg: #242936;
  --table-row-replica-bg: #242936;
}

/* ============================================
   RESET
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--body-bg, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
  min-height: 100vh;
  padding: 10px;
  display: block;
  align-items: flex-start !important;
  justify-content: flex-start !important;
}

/* Container */
.container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 20px !important;
  background: var(--container-bg, white);
  border-radius: 0;
  box-shadow: none;
  overflow: visible !important;
  backdrop-filter: blur(20px);
  border: none;
  align-self: flex-start !important;
}

/* Header */
header {
  background: var(--header-bg, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
  color: var(--header-color, white);
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
}

header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

header h1 {
  font-size: 18px;
  margin-bottom: 2px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

header p {
  font-size: 10px;
  opacity: 0.95;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.content {
  padding: 8px 12px;
}

/* Admin Bar */
.admin-bar {
  background: var(--admin-bar-bg, #f8f9fa);
  padding: 8px 12px;
  border-bottom: 2px solid var(--admin-bar-border, #e0e0e0);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.admin-info {
  flex: 1;
  min-width: 300px;
}

.admin-label {
  margin-bottom: 4px;
  color: var(--admin-bar-text, #333);
  font-size: 12px;
}

.admin-label strong {
  color: var(--admin-bar-label, #666);
  font-weight: 600;
}

/* Authentication Section (within admin bar) - KEEP ROUNDED */
.auth-section {
  background: var(--auth-bg, #fff3cd);
  border-left: 4px solid var(--auth-border, #ffc107);
  padding: 8px;
  margin-top: 4px;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  display: inline-block;
  width: fit-content;
}

.auth-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--auth-border, #ffc107), transparent);
}

.auth-section h4 {
  margin: 0 0 4px 0;
  color: var(--auth-text, #856404);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-field {
  margin: 4px 0;
  font-size: 10px;
}

.auth-field label {
  font-weight: 600;
  color: var(--auth-label, #856404);
  margin-right: 6px;
}

.auth-field code {
  background: var(--auth-value-code-bg, #fff);
  color: var(--auth-value-code-color, #333);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  user-select: all;
  display: inline-block;
  font-family: 'Courier New', monospace;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.logout-btn {
  padding: 6px 12px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
  border: none;
  border-radius: 0;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.logout-btn:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
}

/* Code inline (for Pod IPs, etc) - DARK THEME */
code {
  background: var(--code-inline-bg);
  color: var(--code-inline-color);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  border: 1px solid var(--code-inline-border);
}


/* Tenant Card */
.tenant-card {
  margin-bottom: 8px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--tenant-border, #e0e0e0);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.tenant-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.tenant-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transform: translateY(-4px);
}

.tenant-header {
  background: var(--tenant-header-bg, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
  color: var(--tenant-header-color, white);
  padding: 5px 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tenant-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.tenant-header:hover {
  background: var(--tenant-header-hover-bg, linear-gradient(135deg, #5568d3 0%, #654091 100%));
}

.tenant-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tenant-title h2 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tenant-meta {
  font-size: 10px;
  opacity: 0.95;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.expand-icon {
  font-size: 14px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.expand-icon.expanded {
  transform: rotate(180deg);
}

.tenant-content {
  padding: 8px 12px;
  background: var(--tenant-content-bg, white);
  display: none;
}

.tenant-content.show {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tenant-description {
  color: var(--tenant-description-color, #666);
  margin-bottom: 8px;
  padding: 6px 8px;
  background: var(--tenant-description-bg, #f8f9fa);
  border-radius: 0;
  font-size: 11px;
  border-left: 3px solid rgba(102, 126, 234, 0.5);
}

/* Tenant Authentication Info */
.tenant-auth-info {
  background: var(--auth-bg, #fff3cd);
  border-left: 4px solid var(--auth-border, #ffc107);
  padding: 8px;
  margin-bottom: 8px;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.2);
  position: relative;
  overflow: hidden;
  display: inline-block;
  width: fit-content;
}

.tenant-auth-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--auth-border, #ffc107), transparent);
}

.tenant-auth-info h4 {
  margin: 0 0 4px 0;
  color: var(--auth-text, #856404);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tenant-auth-info .auth-field {
  margin: 4px 0;
  font-size: 10px;
}

/* Auth label - used for both admin and tenant */
.auth-label {
  font-weight: 600;
  color: var(--auth-label, #856404);
  margin-right: 6px;
}

.auth-value {
  color: var(--auth-value-color, #333);
}

.auth-value code {
  background: var(--auth-value-code-bg, #fff);
  color: var(--auth-value-code-color, #333);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  user-select: all;
  display: inline-block;
}

/* Core Services, VPC, Sections */
.core-services, .vpc {
  margin-bottom: 12px;
}

.core-services h4, .vpc h3 {
  color: var(--section-heading-color, #333);
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
  font-size: 12px;
  background: var(--table-bg, white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

th {
  background: var(--table-header-bg, #f8f9fa);
  color: var(--table-header-color, #333);
  font-weight: 700;
  padding: 6px 8px;
  text-align: left;
  border-bottom: 2px solid var(--table-header-border, #e0e0e0);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  position: relative;
}

th::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--table-header-border, #e0e0e0), transparent);
}

td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--table-cell-border, #f0f0f0);
  color: var(--table-cell-color, #555);
  transition: background 0.2s ease;
}

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

tbody tr {
  transition: all 0.2s ease;
}

tbody tr:hover {
  background: var(--table-row-hover-bg, #f8f9fa);
  transform: scale(1.01);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Replica row styling */
tr.replica-row {
  background: var(--table-row-replica-bg, #f9f9f9);
}

tr.replica-row:hover {
  background: var(--table-row-hover-bg, #f0f0f0);
}

/* VPC styling */
.vpc-info ul {
  list-style: none;
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 8px;
}

.vpc-info li {
  padding: 4px 8px;
  background: var(--vpc-info-li-bg, white);
  border-radius: 0;
  font-size: 11px;
  color: var(--vpc-info-li-color, #333);
  border-left: 3px solid rgba(124, 58, 237, 0.4);
  transition: all 0.2s ease;
}

.vpc-info li:hover {
  transform: translateX(4px);
  border-left-color: rgba(124, 58, 237, 0.8);
}

.vpc-info li strong {
  color: var(--vpc-info-strong-color, #667eea);
  font-weight: 600;
}

/* Section Container (for expandable VPCs, core-services, subnets, pods) */
.section-container {
  margin-bottom: 6px;
  border-radius: 0;
  overflow: hidden;
  background: var(--section-container-bg, white);
  border: 1px solid var(--section-container-border, #e0e0e0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.section-container:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transform: translateX(4px);
}

.section-header {
  padding: 6px 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--section-header-border, #e0e0e0), transparent);
}


.section-header h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--section-h3-color, #333);
}

.section-header h4 {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--section-h4-color, #555);
}

.vpc-header {
  padding: 4px 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  position: relative;
  background: var(--vpc-header-bg, linear-gradient(135deg, #764ba2 0%, #667eea 100%)) !important;
  color: var(--vpc-header-color, white) !important;
  border-radius: 6px 6px 0 0;
}

.vpc-header h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--vpc-header-color, white) !important;
}

.vpc-header:hover {
  background: var(--vpc-header-hover-bg, linear-gradient(135deg, #654091 0%, #5568d3 100%)) !important;
}

/* Core Services Section - BLUE TO DARK PURPLE */
.section-container.core-services-section {
  background: var(--core-services-bg, #1c1e28);
}

.core-services-header {
  padding: 3px 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  position: relative;
  background: var(--core-services-header-bg) !important;
  border-radius: 6px 6px 0 0;
}

.core-services-header:hover {
  background: var(--core-services-header-hover-bg) !important;
}

.core-services-header h4 {
  margin: 0;
  font-size: 9px;
  font-weight: 600;
  color: white !important;
}

/* Subnets Section - BLUE TO DARK PURPLE */
.section-container.subnets-section {
  background: var(--subnets-bg, #1a1f2e);
}

.subnets-header {
  padding: 3px 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  position: relative;
  background: var(--subnets-header-bg) !important;
  border-radius: 6px 6px 0 0;
}

.subnets-header:hover {
  background: var(--subnets-header-hover-bg) !important;
}

.subnets-header h4 {
  margin: 0;
  font-size: 9px;
  font-weight: 600;
  color: white !important;
}

/* Pods Section - BLUE TO DARK PURPLE */
.section-container.pods-section {
  background: var(--pods-bg, #1d2230);
}

.pods-header {
  padding: 3px 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  position: relative;
  background: var(--pods-header-bg) !important;
  border-radius: 6px 6px 0 0;
}

.pods-header:hover {
  background: var(--pods-header-hover-bg) !important;
}

.pods-header h4 {
  margin: 0;
  font-size: 9px;
  font-weight: 600;
  color: white !important;
}

/* Provider Section - LIGHT GREEN TO PURPLE */
.section-container.provider-section {
  background: var(--provider-section-bg, #1a1f2e);
}

.provider-section-header {
  padding: 4px 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  position: relative;
  background: var(--provider-header-bg) !important;
  border-radius: 6px 6px 0 0;
}

.provider-section-header:hover {
  background: var(--provider-header-hover-bg) !important;
}

.provider-section-header h4 {
  color: white !important;
}

/* Tenants Section - LIGHT GREEN TO PURPLE */
.section-container.tenants-section {
  background: var(--tenants-section-bg, #222834);
}

.tenants-section-header {
  padding: 4px 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  position: relative;
  background: var(--tenants-header-bg) !important;
  border-radius: 6px 6px 0 0;
}

.tenants-section-header:hover {
  background: var(--tenants-header-hover-bg) !important;
}

.tenants-section-header h4 {
  color: white !important;
}

/* VPC Section - LIGHT BLUE TO PURPLE (variant 2) */
.section-container.vpc-section {
  background: var(--vpc-section-bg, #0d1117);
}

.section-content {
  padding: 6px 10px;
  display: none;
}

.section-content.show {
  display: block;
}

/* Empty State */
.empty-state {
  color: #8b949e;
  text-align: center;
  padding: 40px 20px;
  font-size: 14px;
  font-style: italic;
}
/**
 * CloudManager GUI - Login Page Styles
 * Dark themed login page with purple gradient
 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0f0f23;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.login {
  background: #1e1e2f;
  padding: 50px 40px;
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(0,0,0,0.5);
  max-width: 420px;
  border: 1px solid rgba(255,255,255,0.1);
}

.logo {
  text-align: center;
  margin-bottom: 30px;
}

.logo h1 {
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.logo p {
  color: #888;
  font-size: 14px;
}

.error {
  background: #3d1e1e;
  border: 2px solid #e74c3c;
  color: #ff6b6b;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  text-align: center;
  animation: shake 0.5s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

.input-group {
  position: relative;
  margin: 20px 0;
}

.input-group label {
  display: block;
  color: #aaa;
  font-size: 13px;
  margin-bottom: 8px;
  font-weight: 500;
}

.input-group input {
  width: 100%;
  padding: 14px 16px;
  background: #2a2a3e;
  border: 2px solid #3a3a4e;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  transition: all 0.3s;
}

.input-group input:focus {
  outline: none;
  border-color: #667eea;
  background: #2e2e42;
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 45px;
}

.eye-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #888;
  font-size: 20px;
  user-select: none;
  transition: color 0.3s;
}

.eye-icon:hover {
  color: #667eea;
}

button.login-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 25px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(102,126,234,0.3);
}

button.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102,126,234,0.4);
}

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

/* ============================================
   TAB SYSTEM
   ============================================ */

/* Tab Container */
.tabs-container {
  margin-bottom: 10px;
}

/* Tab Navigation */
.tab-nav {
  display: flex;
  gap: 2px;
  border-bottom: 2px solid var(--section-container-border, #2a2f3e);
  background: var(--section-container-bg, #1a1f2e);
  padding: 4px 6px 0;
  border-radius: 6px 6px 0 0;
}

.tab-button {
  padding: 6px 16px;
  background: transparent;
  color: #8b949e;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.2s ease;
  position: relative;
  margin-bottom: -2px;
}

.tab-button:hover {
  color: #c9d1d9;
  background: rgba(255, 255, 255, 0.05);
}

.tab-button.active {
  color: white;
  border-bottom-color: #8b9cff;
  background: rgba(139, 156, 255, 0.1);
}

/* Tab Content */
.tab-content {
  display: none;
  padding: 10px;
  background: var(--section-container-bg, #1a1f2e);
  border: 1px solid var(--section-container-border, #2a2f3e);
  border-top: none;
  border-radius: 0 0 6px 6px;
}

.tab-content.active {
  display: block;
}

/* Nested tabs (for VPC tabs inside Tenant tabs) */
.tab-content .tabs-container {
  margin-top: 10px;
}

/* ============================================
   CRITICAL FINAL OVERRIDES - MUST BE LAST
   ============================================ */

/* ============================================
   DELETE BUTTONS
   ============================================ */

/* Header actions container */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Delete button for tenant/VPC headers */
.delete-btn {
  background: transparent;
  color: #e74c3c;
  border: none;
  padding: 0;
  font-size: 14px;
  font-weight: normal;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  line-height: 1;
}

.delete-btn:hover {
  color: #c0392b;
}

.delete-btn:active {
  color: #a93226;
}

/* Smaller delete button for table rows */
.delete-btn-small {
  background: transparent;
  color: #e74c3c;
  border: none;
  padding: 0;
  font-size: 12px;
  font-weight: normal;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  line-height: 1;
}

.delete-btn-small:hover {
  color: #c0392b;
}

.delete-btn-small:active {
  color: #a93226;
}

/* Update tenant header to use flexbox */
.tenant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  background: var(--tenant-header-bg);
  cursor: pointer;
  border-radius: 12px 12px 0 0;
  transition: all 0.3s ease;
}

.tenant-title {
  flex: 1;
}

/* Update VPC header to use flexbox */
.vpc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background: var(--vpc-header-bg);
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  transition: all 0.3s ease;
}

.vpc-header h3 {
  margin: 0;
  flex: 1;
  cursor: pointer;
}

/* ============================================
   TENANT CREATION FORM
   ============================================ */

.create-tenant-section {
  margin-bottom: 20px;
}

.add-tenant-btn {
  background: #27ae60;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
}

.add-tenant-btn:hover {
  background: #2ecc71;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.tenant-form {
  background: var(--tenant-content-bg, #1a1a2e);
  border: 1px solid var(--border-color, #2d2d44);
  border-radius: 8px;
  padding: 20px;
  margin-top: 15px;
}

.tenant-form h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #fff;
  font-size: 18px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #b0b0c0;
  font-weight: 500;
  font-size: 14px;
}

.form-group input[type="text"] {
  width: 100%;
  max-width: 400px;
  padding: 10px 12px;
  background: #16213e;
  border: 1px solid #2d2d44;
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  transition: all 0.2s ease;
}

.form-group input[type="text"]:focus {
  outline: none;
  border-color: #4a90e2;
  background: #1a1f3a;
}

.validation-message {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 500;
}

.validation-message.error {
  color: #e74c3c;
}

.validation-message.success {
  color: #27ae60;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.btn-submit {
  background: #27ae60;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-submit:hover:not(:disabled) {
  background: #2ecc71;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-submit:disabled {
  background: #555;
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-cancel {
  background: transparent;
  color: #b0b0c0;
  border: 1px solid #2d2d44;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cancel:hover {
  background: #2d2d44;
  color: #fff;
}

/* ============================================
   NOTIFICATION SYSTEM
   ============================================ */

#notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.notification {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #2d2d44;
  color: white;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  min-width: 300px;
  max-width: 500px;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  border-left: 4px solid;
}

.notification-show {
  opacity: 1;
  transform: translateX(0);
}

.notification-hide {
  opacity: 0;
  transform: translateX(400px);
}

.notification-success {
  border-left-color: #27ae60;
  background: linear-gradient(135deg, #1e3a2e 0%, #2d2d44 100%);
}

.notification-error {
  border-left-color: #e74c3c;
  background: linear-gradient(135deg, #3a1e1e 0%, #2d2d44 100%);
}

.notification-warning {
  border-left-color: #f39c12;
  background: linear-gradient(135deg, #3a2e1e 0%, #2d2d44 100%);
}

.notification-info {
  border-left-color: #4a90e2;
  background: linear-gradient(135deg, #1e2a3a 0%, #2d2d44 100%);
}

.notification-icon {
  font-size: 20px;
  font-weight: bold;
  flex-shrink: 0;
}

.notification-success .notification-icon {
  color: #27ae60;
}

.notification-error .notification-icon {
  color: #e74c3c;
}

.notification-warning .notification-icon {
  color: #f39c12;
}

.notification-info .notification-icon {
  color: #4a90e2;
}

.notification-message {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
}

.notification-close {
  background: transparent;
  border: none;
  color: #b0b0c0;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.notification-close:hover {
  color: white;
}

/* Confirmation Dialog */
.confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.confirm-overlay.confirm-show {
  opacity: 1;
}

.confirm-dialog {
  background: #1a1a2e;
  border: 1px solid #2d2d44;
  border-radius: 12px;
  padding: 30px;
  min-width: 400px;
  max-width: 600px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.2s ease;
}

.confirm-overlay.confirm-show .confirm-dialog {
  transform: scale(1);
}

.confirm-title {
  margin: 0 0 20px 0;
  color: white;
  font-size: 20px;
  font-weight: 600;
}

.confirm-message {
  color: #b0b0c0;
  margin-bottom: 30px;
  line-height: 1.6;
  white-space: pre-line;
}

.confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.confirm-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.confirm-btn-cancel {
  background: transparent;
  color: #b0b0c0;
  border: 1px solid #2d2d44;
}

.confirm-btn-cancel:hover {
  background: #2d2d44;
  color: white;
}

.confirm-btn-confirm {
  background: #e74c3c;
  color: white;
}

.confirm-btn-confirm:hover {
  background: #c0392b;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* ============================================
   COPY BUTTONS
   ============================================ */

.copy-btn {
  background: transparent;
  border: none;
  color: #4a90e2;
  cursor: pointer;
  padding: 4px 6px;
  margin-left: 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  vertical-align: middle;
}

.copy-btn:hover {
  background: rgba(74, 144, 226, 0.1);
  color: #6db3ff;
}

.copy-btn:active {
  transform: scale(0.95);
}

.copy-btn svg {
  display: block;
}

.auth-field {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.auth-field .auth-label {
  min-width: 100px;
}

.auth-field .auth-value {
  flex: 1;
}

/* ============================================
   ERROR PAGE STYLES
   ============================================ */

/* Login container - centers the error/login boxes */
.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

/* Error box styling */
.error-box {
  background: #1e1e2f;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  max-width: 450px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid #e74c3c;
  text-align: center;
}

.error-box h2 {
  color: #e74c3c;
  font-size: 24px;
  margin-bottom: 16px;
  font-weight: 600;
}

.error-box p {
  color: #b0b0c0;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Primary button */
.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

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