/* ═══════════════════════════════════════════════════════════════════════════
   Portal GPD – Design System
   Grupo Pro Digital | Azul oscuro + Cian + Blanco
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  /* Brand */
  --gpd-navy:      #0B1628;
  --gpd-navy-800:  #0F1E38;
  --gpd-navy-700:  #142540;
  --gpd-navy-600:  #1A2F52;
  --gpd-navy-500:  #1E3A63;
  --gpd-cyan:      #06B6D4;
  --gpd-cyan-400:  #22D3EE;
  --gpd-cyan-300:  #67E8F9;
  --gpd-cyan-dark: #0891B2;
  --gpd-white:     #FFFFFF;
  --gpd-gray-50:   #F8FAFC;
  --gpd-gray-100:  #F0F4F8;
  --gpd-gray-200:  #E2E8F0;
  --gpd-gray-400:  #94A3B8;
  --gpd-gray-500:  #64748B;
  --gpd-gray-700:  #334155;
  --gpd-gray-900:  #0F172A;

  /* Status */
  --gpd-success:   #10B981;
  --gpd-warning:   #F59E0B;
  --gpd-error:     #EF4444;
  --gpd-info:      #3B82F6;

  /* Spacing */
  --gpd-radius-sm: 6px;
  --gpd-radius:    10px;
  --gpd-radius-lg: 16px;
  --gpd-radius-xl: 24px;

  /* Shadows */
  --gpd-shadow-sm: 0 1px 3px rgba(11,22,40,0.12), 0 1px 2px rgba(11,22,40,0.08);
  --gpd-shadow:    0 4px 16px rgba(11,22,40,0.16), 0 2px 6px rgba(11,22,40,0.10);
  --gpd-shadow-lg: 0 10px 40px rgba(11,22,40,0.22), 0 4px 12px rgba(11,22,40,0.14);
  --gpd-shadow-cyan: 0 0 24px rgba(6,182,212,0.20);

  /* Transitions */
  --gpd-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --gpd-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Sidebar */
  --sidebar-w: 260px;
}

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

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body.gpd-portal-page {
  font-family: 'Sora', -apple-system, sans-serif;
  background: var(--gpd-navy);
  color: var(--gpd-white);
  min-height: 100vh;
  overflow-x: hidden;
}

body.gpd-portal-page * { font-family: inherit; }

/* ── Portal wrapper ─────────────────────────────────────────────────────────── */
#gpd-portal-root {
  display: flex;
  min-height: 100vh;
  width: 100%; /* <-- 1. Añadir esto */
}

/* ══════════════════════════════════════════════════════════════════════════════
   LOGIN PAGE
══════════════════════════════════════════════════════════════════════════════ */
.gpd-login-page {
  width: 100%; /* <-- 2. Añadir esto para que ocupe todo el ancho */
  flex: 1;     /* <-- 3. Asegura que el contenedor crezca dentro del flex root */
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr; /* <-- Actualizado para que sea mitad y mitad */  background: var(--gpd-navy);
}

@media (max-width: 900px) {
  /* Forzar apilamiento */
  .gpd-login-page { 
    grid-template-columns: 1fr !important; 
    display: flex !important;
    flex-direction: column !important;
  }
  
  /* Asegurar que el panel visual se muestre y sea más chico */
  .gpd-login-visual { 
    display: flex !important; 
    padding: 30px 20px !important; 
  }

  /* Logo y textos más chicos */
  .gpd-login-brand-logo-img {
    max-width: 60px !important;
    margin-bottom: 12px !important;
  }
  .gpd-login-brand h1 { font-size: 22px !important; margin-bottom: 4px !important; }
  .gpd-login-brand p { font-size: 12px !important; }

  /* FORZAR LA CUADRÍCULA DE 2 COLUMNAS */
  .gpd-login-features {
    margin-top: 24px !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    max-width: 100% !important;
  }

  /* Ajustar cada caja para que el icono quede arriba del texto */
  .gpd-feature-item {
    padding: 12px 10px !important;
    gap: 8px !important;
    flex-direction: column !important;
    text-align: center !important;
    justify-content: center !important;
  }

  /* Achicar iconos */
  .gpd-feature-icon { width: 28px !important; height: 28px !important; }
  .gpd-feature-icon svg { width: 14px !important; height: 14px !important; }
  .gpd-feature-text { font-size: 11px !important; }
  
  /* Ajustar panel de formulario */
  .gpd-login-form-panel { padding: 40px 20px !important; }
}

/* Left – Visual */
.gpd-login-visual {
  position: relative;
  background: linear-gradient(135deg, var(--gpd-navy-800) 0%, var(--gpd-navy-500) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  overflow: hidden;
}

.gpd-login-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(6,182,212,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(6,182,212,0.08) 0%, transparent 60%);
}

.gpd-login-visual-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(6,182,212,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,182,212,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.gpd-login-brand {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Agregar esta nueva clase */
.gpd-login-brand-logo-img {
  display: block;
  max-width: 120px; /* Ajusta este valor si tu logo se ve muy grande o muy chico */
  height: auto;
  margin: 0 auto 24px; /* Mantiene el logo centrado y con espacio hacia abajo */
}

.gpd-login-brand h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--gpd-white);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.gpd-login-brand p {
  font-size: 14px;
  color: var(--gpd-gray-400);
  font-weight: 400;
}

.gpd-login-features {
  position: relative;
  z-index: 1;
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 360px;
}

.gpd-feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(6,182,212,0.15);
  border-radius: var(--gpd-radius);
  backdrop-filter: blur(8px);
}

.gpd-feature-icon {
  width: 36px;
  height: 36px;
  background: rgba(6,182,212,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gpd-cyan);
  flex-shrink: 0;
}

.gpd-feature-text {
  font-size: 13px;
  color: var(--gpd-gray-200);
  font-weight: 400;
  line-height: 1.4;
}

/* Right – Form */
.gpd-login-form-panel {
  background: var(--gpd-navy-800);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  border-left: 1px solid rgba(6,182,212,0.08);
}

.gpd-login-form-header {
  text-align: left;         /* <-- Cambiamos de center a left */
  margin-bottom: 40px;
  width: 100%;
  max-width: 360px;         /* <-- Añadimos esto para que su ancho coincida con el formulario (.gpd-form) */
}

.gpd-login-form-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--gpd-white);
  margin-bottom: 6px;
}

.gpd-login-form-header p {
  font-size: 13px;
  color: var(--gpd-gray-400);
}

.gpd-form { width: 100%; max-width: 360px; }

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

.gpd-form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gpd-gray-400);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.gpd-form-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--gpd-radius);
  color: var(--gpd-white);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s var(--gpd-ease), box-shadow 0.2s var(--gpd-ease);
  outline: none;
  appearance: none;
}

.gpd-form-input::placeholder { color: var(--gpd-gray-500); }

.gpd-form-input:focus {
  border-color: var(--gpd-cyan);
  box-shadow: 0 0 0 3px rgba(6,182,212,0.15);
  background: rgba(6,182,212,0.04);
}

.gpd-form-input:autofill,
.gpd-form-input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 40px var(--gpd-navy-800) inset;
  -webkit-text-fill-color: var(--gpd-white);
}

.gpd-form-row-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.gpd-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gpd-gray-400);
  cursor: pointer;
}

.gpd-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--gpd-cyan);
}

.gpd-link {
  font-size: 13px;
  color: var(--gpd-cyan);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.gpd-link:hover { color: var(--gpd-cyan-400); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.gpd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--gpd-radius);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all 0.2s var(--gpd-ease);
  white-space: nowrap;
  text-decoration: none;
}

.gpd-btn-primary {
  background: linear-gradient(135deg, var(--gpd-cyan) 0%, var(--gpd-cyan-dark) 100%);
  color: var(--gpd-navy);
  width: 100%;
  box-shadow: 0 4px 16px rgba(6,182,212,0.30);
}

.gpd-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(6,182,212,0.40);
}

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

.gpd-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.gpd-btn-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--gpd-white);
  border: 1px solid rgba(255,255,255,0.12);
}

.gpd-btn-secondary:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(6,182,212,0.30);
}

.gpd-btn-ghost {
  background: transparent;
  color: var(--gpd-gray-400);
  padding: 0 12px;
  height: 36px;
  font-size: 13px;
}

.gpd-btn-ghost:hover { color: var(--gpd-white); background: rgba(255,255,255,0.06); }

.gpd-btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
  border-radius: var(--gpd-radius-sm);
}

.gpd-btn-danger {
  background: rgba(239,68,68,0.12);
  color: var(--gpd-error);
  border: 1px solid rgba(239,68,68,0.20);
}

.gpd-btn-danger:hover { background: rgba(239,68,68,0.20); }

/* Alert messages */
.gpd-alert {
  padding: 12px 16px;
  border-radius: var(--gpd-radius);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gpd-alert-error {
  background: rgba(239,68,68,0.10);
  border: 1px solid rgba(239,68,68,0.25);
  color: #FCA5A5;
}

.gpd-alert-success {
  background: rgba(16,185,129,0.10);
  border: 1px solid rgba(16,185,129,0.25);
  color: #6EE7B7;
}

/* Spinner */
.gpd-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(11,22,40,0.3);
  border-top-color: var(--gpd-navy);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════════════════════════════════
   DASHBOARD LAYOUT
══════════════════════════════════════════════════════════════════════════════ */

/* Sidebar */
.gpd-sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--gpd-navy-800);
  border-right: 1px solid rgba(6,182,212,0.08);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.3s var(--gpd-ease);
}

.gpd-sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 12px;
}

.gpd-sidebar-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--gpd-cyan) 0%, var(--gpd-cyan-dark) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gpd-navy);
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: var(--gpd-shadow-cyan);
}

.gpd-sidebar-brand { flex: 1; min-width: 0; }
.gpd-sidebar-brand h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--gpd-white);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gpd-sidebar-brand span {
  font-size: 11px;
  color: var(--gpd-cyan);
  font-weight: 500;
}

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

.gpd-nav-section {
  margin-bottom: 8px;
}

.gpd-nav-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gpd-gray-500);
  padding: 8px 10px 4px;
}

.gpd-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--gpd-radius-sm);
  color: var(--gpd-gray-400);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s var(--gpd-ease);
  text-decoration: none;
  position: relative;
  border: 1px solid transparent;
}

.gpd-nav-item:hover {
  color: var(--gpd-white);
  background: rgba(255,255,255,0.05);
}

.gpd-nav-item.active {
  color: var(--gpd-cyan);
  background: rgba(6,182,212,0.10);
  border-color: rgba(6,182,212,0.20);
}

.gpd-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--gpd-cyan);
  border-radius: 0 3px 3px 0;
}

.gpd-nav-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.gpd-nav-badge {
  margin-left: auto;
  background: var(--gpd-cyan);
  color: var(--gpd-navy);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  min-width: 20px;
  text-align: center;
}

.gpd-sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.gpd-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--gpd-radius);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: background 0.15s;
}

.gpd-user-card:hover { background: rgba(255,255,255,0.06); }

.gpd-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gpd-cyan-dark) 0%, var(--gpd-navy-500) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--gpd-white);
  flex-shrink: 0;
  overflow: hidden;
}

.gpd-user-avatar img { width: 100%; height: 100%; object-fit: cover; }

.gpd-user-info { flex: 1; min-width: 0; }
.gpd-user-info strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gpd-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gpd-user-info span {
  font-size: 11px;
  color: var(--gpd-cyan);
  font-weight: 500;
}

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

/* Topbar */
.gpd-topbar {
  height: 64px;
  background: rgba(11,22,40,0.80);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.gpd-topbar-title {
  flex: 1;
}

.gpd-topbar-title h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gpd-white);
  line-height: 1.2;
}

.gpd-topbar-title p {
  font-size: 12px;
  color: var(--gpd-gray-500);
}

.gpd-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Content area */
.gpd-content {
  flex: 1;
  padding: 32px;
  animation: fadeIn 0.3s var(--gpd-ease);
}

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

/* ── Cards ─────────────────────────────────────────────────────────────────── */
.gpd-card {
  background: var(--gpd-navy-800);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--gpd-radius-lg);
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.gpd-card:hover {
  border-color: rgba(6,182,212,0.15);
  box-shadow: var(--gpd-shadow);
}

.gpd-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.gpd-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--gpd-white);
}

.gpd-card-subtitle {
  font-size: 12px;
  color: var(--gpd-gray-500);
  margin-top: 2px;
}

/* ── Stats grid ─────────────────────────────────────────────────────────────── */
.gpd-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.gpd-stat-card {
  background: var(--gpd-navy-800);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--gpd-radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.2s var(--gpd-ease);
}

.gpd-stat-card:hover {
  border-color: rgba(6,182,212,0.20);
  transform: translateY(-2px);
  box-shadow: var(--gpd-shadow);
}

.gpd-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gpd-stat-body { flex: 1; }
.gpd-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--gpd-white);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.gpd-stat-label {
  font-size: 12px;
  color: var(--gpd-gray-500);
  margin-top: 4px;
}
.gpd-stat-delta {
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.gpd-stat-delta.up   { color: var(--gpd-success); }
.gpd-stat-delta.down { color: var(--gpd-error); }

/* ── Service cards ──────────────────────────────────────────────────────────── */
.gpd-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.gpd-service-card {
  background: var(--gpd-navy-800);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--gpd-radius-lg);
  padding: 24px;
  transition: all 0.25s var(--gpd-ease);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gpd-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color, var(--gpd-cyan));
  border-radius: var(--gpd-radius-lg) var(--gpd-radius-lg) 0 0;
}

.gpd-service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.15);
  box-shadow: var(--gpd-shadow-lg);
}

.gpd-service-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.gpd-service-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  color: var(--color, var(--gpd-cyan));
  font-size: 22px;
}

.gpd-service-status-badge {
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.gpd-service-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--gpd-white);
  margin-bottom: 6px;
}

.gpd-service-desc {
  font-size: 13px;
  color: var(--gpd-gray-400);
  line-height: 1.5;
  margin-bottom: 20px;
}

.gpd-progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 8px;
}

.gpd-progress-fill {
  height: 100%;
  background: var(--color, var(--gpd-cyan));
  border-radius: 99px;
  transition: width 0.8s var(--gpd-ease);
  position: relative;
}

.gpd-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40%;
  background: rgba(255,255,255,0.25);
  filter: blur(4px);
}

.gpd-progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--gpd-gray-500);
}

.gpd-service-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.gpd-service-operator {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.gpd-operator-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gpd-navy-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--gpd-cyan);
  font-weight: 700;
}

.gpd-operator-name {
  font-size: 12px;
  color: var(--gpd-gray-400);
}

/* ── Timeline ───────────────────────────────────────────────────────────────── */
.gpd-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.gpd-timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: linear-gradient(to bottom, var(--gpd-cyan), transparent);
  opacity: 0.20;
}

.gpd-timeline-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  animation: slideIn 0.3s var(--gpd-ease);
}

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

.gpd-timeline-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
  position: relative;
  z-index: 1;
}

.gpd-timeline-body { flex: 1; padding-top: 6px; }
.gpd-timeline-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gpd-white);
  margin-bottom: 4px;
}
.gpd-timeline-text {
  font-size: 13px;
  color: var(--gpd-gray-400);
  line-height: 1.5;
}
.gpd-timeline-meta {
  font-size: 11px;
  color: var(--gpd-gray-500);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── File list ──────────────────────────────────────────────────────────────── */
.gpd-files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.gpd-file-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--gpd-radius);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s var(--gpd-ease);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.gpd-file-card:hover {
  background: rgba(6,182,212,0.06);
  border-color: rgba(6,182,212,0.20);
  transform: translateY(-2px);
}

.gpd-file-icon {
  font-size: 36px;
  line-height: 1;
}

.gpd-file-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--gpd-white);
  word-break: break-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gpd-file-meta {
  font-size: 11px;
  color: var(--gpd-gray-500);
}

/* ── Tickets ─────────────────────────────────────────────────────────────────── */
.gpd-ticket-list { display: flex; flex-direction: column; gap: 12px; }

.gpd-ticket-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--gpd-radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.15s var(--gpd-ease);
}

.gpd-ticket-item:hover {
  border-color: rgba(6,182,212,0.20);
  background: rgba(6,182,212,0.04);
}

.gpd-ticket-priority {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.gpd-ticket-info { flex: 1; min-width: 0; }
.gpd-ticket-subject {
  font-size: 14px;
  font-weight: 600;
  color: var(--gpd-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gpd-ticket-meta {
  font-size: 12px;
  color: var(--gpd-gray-500);
  margin-top: 2px;
}

.gpd-badge {
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

/* Status colors */
.gpd-status-active       { background: rgba(16,185,129,0.15);  color: #6EE7B7; }
.gpd-status-production   { background: rgba(6,182,212,0.15);   color: var(--gpd-cyan-400); }
.gpd-status-review       { background: rgba(245,158,11,0.15);  color: #FCD34D; }
.gpd-status-waiting      { background: rgba(148,163,184,0.12); color: var(--gpd-gray-400); }
.gpd-status-optimization { background: rgba(139,92,246,0.15);  color: #C4B5FD; }
.gpd-status-completed    { background: rgba(16,185,129,0.10);  color: #6EE7B7; }
.gpd-status-open         { background: rgba(59,130,246,0.15);  color: #93C5FD; }
.gpd-status-closed       { background: rgba(100,116,139,0.15); color: var(--gpd-gray-400); }

.gpd-priority-urgent { background: var(--gpd-error); }
.gpd-priority-high   { background: var(--gpd-warning); }
.gpd-priority-medium { background: var(--gpd-info); }
.gpd-priority-low    { background: var(--gpd-success); }

/* ── Table ─────────────────────────────────────────────────────────────────── */
.gpd-table-wrapper {
  overflow-x: auto;
  border-radius: var(--gpd-radius);
  border: 1px solid rgba(255,255,255,0.06);
}

.gpd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.gpd-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gpd-gray-500);
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.gpd-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--gpd-gray-200);
  vertical-align: middle;
}

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

.gpd-table tr:hover td {
  background: rgba(255,255,255,0.02);
}

/* ── Grid layouts ──────────────────────────────────────────────────────────── */
.gpd-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.gpd-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.gpd-grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; }
.gpd-grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }

@media (max-width: 900px) {
  .gpd-grid-2, .gpd-grid-3, .gpd-grid-1-2, .gpd-grid-2-1 { grid-template-columns: 1fr; }
}

/* ── Welcome banner ─────────────────────────────────────────────────────────── */
.gpd-welcome-banner {
  background: linear-gradient(135deg, var(--gpd-navy-700) 0%, var(--gpd-navy-500) 100%);
  border: 1px solid rgba(6,182,212,0.15);
  border-radius: var(--gpd-radius-xl);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.gpd-welcome-banner::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,0.12) 0%, transparent 70%);
}

.gpd-welcome-text h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--gpd-white);
  margin-bottom: 6px;
}

.gpd-welcome-text p {
  font-size: 14px;
  color: var(--gpd-gray-400);
}

.gpd-welcome-badge {
  background: rgba(6,182,212,0.12);
  border: 1px solid rgba(6,182,212,0.25);
  border-radius: var(--gpd-radius);
  padding: 16px 24px;
  text-align: center;
  z-index: 1;
}

.gpd-welcome-badge strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--gpd-cyan);
}

.gpd-welcome-badge span {
  font-size: 12px;
  color: var(--gpd-gray-400);
}

/* ── Modal ──────────────────────────────────────────────────────────────────── */
.gpd-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,22,40,0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s var(--gpd-ease);
}

.gpd-modal {
  background: var(--gpd-navy-800);
  border: 1px solid rgba(6,182,212,0.15);
  border-radius: var(--gpd-radius-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s var(--gpd-ease-spring);
  box-shadow: var(--gpd-shadow-lg);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.gpd-modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gpd-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--gpd-white);
}

.gpd-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: none;
  color: var(--gpd-gray-400);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  font-size: 18px;
  line-height: 1;
}

.gpd-modal-close:hover {
  background: rgba(255,255,255,0.12);
  color: var(--gpd-white);
}

.gpd-modal-body   { padding: 28px; }
.gpd-modal-footer {
  padding: 20px 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* ── Loading / Empty states ────────────────────────────────────────────────── */
.gpd-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
  color: var(--gpd-gray-500);
  font-size: 14px;
}

.gpd-loading-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(6,182,212,0.20);
  border-top-color: var(--gpd-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.gpd-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--gpd-gray-500);
}

.gpd-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.gpd-empty h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--gpd-gray-400);
  margin-bottom: 6px;
}

.gpd-empty p { font-size: 13px; }

/* ── Utilities ─────────────────────────────────────────────────────────────── */
.gpd-flex { display: flex; }
.gpd-flex-center { display: flex; align-items: center; }
.gpd-flex-between { display: flex; align-items: center; justify-content: space-between; }
.gpd-gap-2 { gap: 8px; }
.gpd-gap-3 { gap: 12px; }
.gpd-gap-4 { gap: 16px; }
.gpd-mb-4 { margin-bottom: 16px; }
.gpd-mb-6 { margin-bottom: 24px; }
.gpd-mb-8 { margin-bottom: 32px; }
.gpd-text-muted { color: var(--gpd-gray-500); font-size: 13px; }
.gpd-text-sm { font-size: 13px; }
.gpd-text-xs { font-size: 11px; }
.gpd-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 20px 0; }

/* Select */
.gpd-select {
  appearance: none;
  background: rgba(255,255,255,0.04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--gpd-radius);
  color: var(--gpd-white);
  font-family: inherit;
  font-size: 14px;
  height: 48px;
  padding: 0 40px 0 16px;
  width: 100%;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.gpd-select:focus {
  border-color: var(--gpd-cyan);
  box-shadow: 0 0 0 3px rgba(6,182,212,0.15);
}

.gpd-select option { background: var(--gpd-navy-800); color: var(--gpd-white); }

/* Textarea */
.gpd-textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--gpd-radius);
  color: var(--gpd-white);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  min-height: 100px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  line-height: 1.6;
}

.gpd-textarea:focus {
  border-color: var(--gpd-cyan);
  box-shadow: 0 0 0 3px rgba(6,182,212,0.15);
}

/* Pulse dot */
.gpd-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gpd-success);
  position: relative;
}
.gpd-pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--gpd-success);
  opacity: 0.3;
  animation: pulse 1.5s ease infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50%       { transform: scale(1.5); opacity: 0; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(6,182,212,0.20); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(6,182,212,0.40); }

/* Responsive */
@media (max-width: 1024px) {
  :root { --sidebar-w: 220px; }
  .gpd-content { padding: 20px; }
}

@media (max-width: 768px) {
  .gpd-sidebar {
    transform: translateX(-100%);
  }
  .gpd-sidebar.open {
    transform: translateX(0);
  }
  .gpd-main { margin-left: 0; }
  .gpd-welcome-banner { flex-direction: column; gap: 16px; align-items: flex-start; }
  .gpd-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .gpd-services-grid { grid-template-columns: 1fr; }
}
