:root {
  --gcp-primary: #0071e3;
  --gcp-primary-hover: #0077ed;
  --gcp-danger: #ff3b30;
  --gcp-text: #1d1d1f;
  --gcp-text-sub: #86868b;
  --gcp-bg: #f5f5f7;
  --gcp-card-bg: #ffffff;
  --gcp-border: #d2d2d7;
  --gcp-radius: 12px;
  --gcp-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  --gcp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ===== Animation ===== */
@keyframes gcpFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gcp-animate-in {
  animation: gcpFadeIn 0.4s ease-out forwards;
}

/* ===== Layout ===== */
.gcp-container {
  font-family: var(--gcp-font);
  color: var(--gcp-text);
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  line-height: 1.5;
  animation: gcpFadeIn 0.4s ease-out forwards;
  background-color: #F3F4F6;
}

.gcp-card {
  background: var(--gcp-card-bg);
  border-radius: var(--gcp-radius);
  box-shadow: var(--gcp-shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 24px;
  margin-bottom: 24px;
}

.gcp-folder-header {
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  border-bottom: 1px solid var(--gcp-border);
  padding-bottom: 20px;
}

.gcp-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gcp-title-row h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--gcp-text);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== Tabs ===== */
.gcp-tabs {
  display: inline-flex;
  background: #ebebeb;
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 25px;
}

.gcp-tab {
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--gcp-text-sub);
  font-weight: 500;
  font-size: 15px;
  transition: all .2s ease;
}

.gcp-tab.active {
  background: #fff;
  color: var(--gcp-text);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.gcp-tab:hover:not(.active) {
  color: var(--gcp-text);
}

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

.gcp-label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--gcp-text);
}

.gcp-input,
.gcp-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gcp-border);
  border-radius: 8px;
  font-size: 15px;
  background: #fff;
  box-sizing: border-box;
}

.gcp-input:focus {
  border-color: var(--gcp-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

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

.gcp-btn-primary {
  background: var(--gcp-primary);
  color: #fff;
}

.gcp-btn-primary:hover {
  background: var(--gcp-primary-hover);
  transform: translateY(-1px);
}

.gcp-btn-danger {
  background: #fff0f0;
  color: var(--gcp-danger);
  border: 1px solid #ffcccc;
}

.gcp-btn-danger:hover {
  background: #ffe5e5;
}

.gcp-btn-secondary {
  background: #e5e5ea;
  color: var(--gcp-text);
}

.gcp-btn-secondary:hover {
  background: #d1d1d6;
}

.gcp-btn-mini {
  padding: 8px 12px;
  font-size: 13px;
}

/* ===== Upload ===== */
.gcp-upload-area {
  border: 2px dashed var(--gcp-border);
  border-radius: var(--gcp-radius);
  padding: 40px;
  text-align: center;
  background: #fafafa;
  margin-bottom: 20px;
  transition: all .2s;
  position: relative;
}



.gcp-upload-list {
  margin-top: 20px;
  text-align: left;
}

.gcp-upload-item {
  background: #fff;
  border: 1px solid #eee;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.gcp-prog-bar-bg {
  height: 8px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}

.gcp-prog-bar-fill {
  height: 100%;
  background: var(--gcp-primary);
  width: 0%;
  transition: width .2s;
}

.gcp-upload-success {
  color: #065f46;
  font-weight: 700;
}

/* ===== Lists / Grid ===== */
.gcp-section-title {
  font-size: 20px;
  font-weight: 700;
  margin: 30px 0 20px;
  color: var(--gcp-text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.gcp-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #f0f0f0;
  transition: background .1s;
}

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

.gcp-list-item:hover {
  background: #fafafa;
}

.gcp-file-icon {
  width: 44px;
  height: 44px;
  background: #f5f5f7;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 18px;
  color: var(--gcp-text-sub);
}

.gcp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
}

.gcp-grid-item {
  background: #fff;
  border: 1px solid var(--gcp-border);
  border-radius: var(--gcp-radius);
  padding: 30px;
  text-align: center;
  transition: all .2s;
  text-decoration: none;
  color: var(--gcp-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}

.gcp-grid-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--gcp-shadow);
  border-color: var(--gcp-primary);
}

.gcp-folder-icon-large {
  font-size: 52px;
  margin-bottom: 15px;
  display: block;
  color: #ffcc00;
}

/* ===== Alerts ===== */
.gcp-alert {
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 24px;
}

.gcp-alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.gcp-alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ===== Icons ===== */
svg.icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}


/* ===== Upload Queue (Static) ===== */
.gcp-queue-container {
  background: #fff;
  border: 1px solid var(--gcp-border);
  border-radius: var(--gcp-radius);
  margin-top: 20px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  display: none;
  /* Hidden by default until files are added */
}

.gcp-queue-container.active {
  display: block;
  animation: gcpFadeIn 0.3s ease-out;
}

.gcp-queue-header {
  padding: 15px 20px;
  background: #f9f9fa;
  border-bottom: 1px solid var(--gcp-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gcp-queue-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--gcp-text);
}

.gcp-queue-count {
  background: var(--gcp-primary);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  margin-left: 8px;
}

.gcp-queue-list {
  max-height: 400px;
  overflow-y: auto;
}

.gcp-queue-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid #f0f0f0;
  gap: 15px;
}

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

.gcp-queue-icon {
  width: 36px;
  height: 36px;
  background: #f0f2f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gcp-text-sub);
  flex-shrink: 0;
}

.gcp-queue-info {
  flex: 1;
  min-width: 0;
  /* Text truncation */
}

.gcp-queue-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--gcp-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.gcp-queue-meta {
  font-size: 12px;
  color: var(--gcp-text-sub);
  display: flex;
  align-items: center;
  gap: 10px;
}

.gcp-queue-size {
  background: #eee;
  padding: 1px 6px;
  border-radius: 4px;
}

.gcp-queue-status {
  font-weight: 500;
}

.gcp-queue-status.status-error {
  color: var(--gcp-danger);
}

.gcp-queue-status.status-success {
  color: #10b981;
}

.gcp-queue-status.status-uploading {
  color: var(--gcp-primary);
}

.gcp-queue-progress-bg {
  height: 4px;
  background: #eee;
  border-radius: 2px;
  margin-top: 6px;
  width: 100%;
  overflow: hidden;
  display: none;
  /* Only show when uploading */
}

.gcp-queue-progress-fill {
  height: 100%;
  background: var(--gcp-primary);
  width: 0%;
  transition: width 0.2s;
}

.gcp-queue-item.uploading .gcp-queue-progress-bg {
  display: block;
}

.gcp-queue-action-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  color: var(--gcp-text-sub);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gcp-queue-action-btn:hover {
  background: #f0f0f0;
  color: var(--gcp-danger);
}

.gcp-queue-footer {
  padding: 15px 20px;
  background: #fff;
  border-top: 1px solid var(--gcp-border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ===== Pills ===== */
.gcp-pillbar {
  display: inline-flex;
  gap: 8px;
  background: #ebebeb;
  padding: 6px;
  border-radius: 999px;
  margin: 10px 0 12px;
  flex-wrap: wrap;
}

.gcp-pill {
  padding: 8px 14px;
  border-radius: 999px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  color: var(--gcp-text-sub);
  transition: all .15s ease;
}

.gcp-pill.active {
  background: #fff;
  color: var(--gcp-text);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* ===== Users ===== */
.gcp-userbox {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--gcp-border);
  padding: 10px;
  border-radius: 8px;
  background: #fff;
}

.gcp-userbox label {
  display: block;
  margin-bottom: 6px;
}

.gcp-user-tag {
  color: var(--gcp-text-sub);
  font-size: 12px;
  font-weight: 700;
  margin-left: 6px;
}

.gcp-subtabs {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.gcp-subtab {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--gcp-border);
  background: #fff;
  text-decoration: none;
  font-weight: 800;
  color: var(--gcp-text-sub);
}

.gcp-subtab.active {
  border-color: var(--gcp-primary);
  color: var(--gcp-text);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.gcp-user-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.gcp-inline-form {
  display: inline;
  margin: 0;
}

.gcp-search-input {
  margin-top: 10px;
}

.gcp-user-email {
  display: block;
  font-size: 12px;
  color: var(--gcp-text-sub);
  margin-left: 24px;
  margin-top: 2px;
}

.gcp-empty {
  margin-top: 10px;
  color: var(--gcp-text-sub);
  font-size: 13px;
}

/* ===== Password eye (ÚNICO + robusto) ===== */
.gcp-container .gcp-pass-wrap {
  position: relative;
  width: 100%;
  display: block;
}

.gcp-container .gcp-pass-wrap>input.gcp-input {
  width: 100%;
  padding-right: 56px;
  box-sizing: border-box;
}

.gcp-container .gcp-pass-wrap>button.gcp-eye {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  z-index: 9999;

  width: 36px;
  height: 36px;
  min-width: 36px;

  margin: 0;
  padding: 0;

  border: 0;
  background: transparent;
  box-shadow: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  color: var(--gcp-text-sub);
}

.gcp-container .gcp-pass-wrap>button.gcp-eye:hover {
  background: rgba(0, 0, 0, .06);
  border-radius: 10px;
  color: var(--gcp-text);
}

.gcp-container .gcp-pass-wrap>button.gcp-eye:focus-visible {
  outline: 2px solid rgba(0, 113, 227, .35);
  outline-offset: 2px;
  border-radius: 10px;
}

.gcp-container .gcp-pass-wrap>button.gcp-eye svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* Blindaje */
.gcp-container .gcp-pass-wrap>button.gcp-eye svg,
.gcp-container .gcp-pass-wrap>button.gcp-eye svg * {
  stroke: currentColor !important;
  stroke-width: 2 !important;
  fill: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* ================================
   LOGIN (IAC Design - Tailwind & Custom)
================================ */

/* Animación del fondo principal */
.gcp-animated-bg {
  background: linear-gradient(-45deg, #059669, #34d399, #ecfdf5, #ffffff);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.gcp-glass-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  z-index: -1;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Inputs animados (solo transición suave del grupo, NO mover labels) */
.gcp-input-group {
  transition: all 0.3s ease;
}

/* Estilos del Slider */
.gcp-slide {
  transition: opacity 1.5s ease-in-out;
}

.gcp-slide-active {
  opacity: 1;
  z-index: 10;
}

.gcp-slide-hidden {
  opacity: 0;
  z-index: 0;
}

/* Efecto Zoom lento en imágenes del slider */
.gcp-slide-bg {
  transition: transform 10s ease;
  transform: scale(1);
}

.gcp-slide-active .gcp-slide-bg {
  transform: scale(1.1);
}

/* Loader */
.gcp-loader {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 3px solid white;
  width: 20px;
  height: 20px;
  animation: gcpSpin 1s linear infinite;
  display: none;
}

@keyframes gcpSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Botón Gradiente (base) */
.gcp-btn-gradient-green {
  background: linear-gradient(90deg, #059669 0%, #10b981 100%);
  transition: all 0.3s ease;
}

.gcp-btn-gradient-green:hover {
  background: linear-gradient(90deg, #047857 0%, #059669 100%);
  box-shadow: 0 10px 15px -3px rgba(5, 150, 105, 0.3);
}

/* =========================================================
   Scoped wrapper
========================================================= */
.gcp-login-wrapper-iac,
.gcp-login-wrapper-iac * {
  box-sizing: border-box;
}

.gcp-login-wrapper-iac {
  font-family: 'Inter', sans-serif;
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 3rem 1.5rem;
  margin: 0 !important;
  animation: gcpFadeIn 0.6s ease-out forwards;
}

/* Card width igual HTML */
.gcp-login-wrapper-iac .card-container {
  width: 100%;
  max-width: 64rem !important;
  /* max-w-5xl */
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25) !important;
}

/* Force Logo Size Override */
.gcp-login-wrapper-iac img[alt="Logo IAC"] {
  height: 6rem !important;
  /* h-24 */
  width: auto !important;
  object-fit: contain;
}

/* --- NO rompas el botón submit: NO reseteamos todos los buttons --- */
.gcp-login-wrapper-iac button#gcp-toggle-pass {
  background: transparent;
  border: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}

/* Asegura Phosphor */
.gcp-login-wrapper-iac i.ph {
  font-family: "Phosphor" !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Inputs */
.gcp-login-wrapper-iac .input-field {
  height: 52px;
  line-height: 1.2;
}

.gcp-login-wrapper-iac .group {
  position: relative;
}

.gcp-login-wrapper-iac .group .absolute.inset-y-0 {
  z-index: 5;
}

.gcp-login-wrapper-iac #gcp-toggle-pass {
  z-index: 6;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gcp-login-wrapper-iac label {
  transform: translateZ(0);
}

.gcp-login-wrapper-iac .gcp-loader {
  display: none;
}

/* Focus ring */
.gcp-login-wrapper-iac input.input-field:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .15) !important;
  border-color: #10b981 !important;
}

/* ===== Re-aplicar utilidades Tailwind usadas en el header (scoped) ===== */
.gcp-login-wrapper-iac h1,
.gcp-login-wrapper-iac p {
  margin: 0 !important;
  /* el theme mete márgenes raros */
}

.gcp-login-wrapper-iac .mb-2 {
  margin-bottom: 0.5rem !important;
}

/* 8px */
.gcp-login-wrapper-iac .mb-6 {
  margin-bottom: 1.5rem !important;
}

/* 24px */
.gcp-login-wrapper-iac .mb-8 {
  margin-bottom: 2rem !important;
}

/* 32px */

/* ===== Tipografía input/placeholder igual al HTML ===== */
.gcp-login-wrapper-iac input.input-field {
  font-family: 'Inter', sans-serif !important;
  font-size: 16px !important;
  line-height: 24px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  -webkit-text-size-adjust: 100%;
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 1px solid #d1d5db !important;
  border-radius: 0.5rem !important;
  box-shadow: none !important;
  background-color: #ffffff !important;
  color: #1f2937 !important;
}

.gcp-login-wrapper-iac input.input-field::placeholder {
  font-size: 16px !important;
  line-height: 24px !important;
  font-weight: 400 !important;
  color: #9CA3AF !important;
  opacity: 1 !important;
}

/* ===== Botón login SIEMPRE visible y con look del HTML ===== */
.gcp-login-wrapper-iac .gcp-btn-gradient-green {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;

  opacity: 1 !important;
  visibility: visible !important;

  background: linear-gradient(90deg, #059669 0%, #10b981 100%) !important;
  color: #ffffff !important;

  font-family: 'Inter', sans-serif !important;
  font-size: 1.25rem !important;
  /* text-xl */
  font-weight: 800 !important;

  min-height: 56px !important;
  border: 0 !important;
}

.gcp-login-wrapper-iac .gcp-btn-gradient-green:hover {
  background: linear-gradient(90deg, #047857 0%, #059669 100%) !important;
  box-shadow: 0 10px 15px -3px rgba(5, 150, 105, 0.3) !important;
}

.gcp-login-wrapper-iac .gcp-btn-gradient-green,
.gcp-login-wrapper-iac .gcp-btn-gradient-green * {
  filter: none !important;
  mix-blend-mode: normal !important;
}

/* Slider */
.gcp-login-wrapper-iac .gcp-slide-bg {
  transform: scale(1.05);
  will-change: transform, opacity;
}

.gcp-login-wrapper-iac #gcp-dot1,
.gcp-login-wrapper-iac #gcp-dot2 {
  width: 0.5rem;
  height: 0.5rem;
}

/* ===== Ajuste: menos espacio entre "Hub..." y los campos ===== */
.gcp-login-wrapper-iac .mb-8 {
  margin-bottom: 0px !important;
  /* 20px */
}

/* ================================
   ADMIN SHELL (match gestor.html)
   Scoped: .gcp-admin-shell
================================ */

.gcp-admin-shell,
.gcp-admin-shell * {
  box-sizing: border-box;
}

.gcp-admin-shell {
  width: 100%;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #111827;
  background: #F3F4F6;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
  animation: gcpFadeIn 0.4s ease-out forwards;
}

/* HEADER (h-24) */
.gcp-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
  min-height: 96px;
}

.gcp-topbar__inner {
  height: 96px;
  /* h-24 */
  max-width: 1280px;
  /* max-w-7xl */
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;

  box-sizing: border-box;
}

@media (min-width: 640px) {
  .gcp-topbar__inner {
    padding: 0 24px;
  }
}

@media (min-width: 1024px) {
  .gcp-topbar__inner {
    padding: 0 32px;
  }
}

/* Logo (h-16) */
.gcp-topbar__logo {
  height: 64px !important;
  /* h-16 */
  max-height: 64px !important;
  width: auto !important;
  object-fit: contain;
  display: block;
  cursor: pointer;
  transition: transform .15s ease;
}

.gcp-topbar__logo:hover {
  transform: scale(1.05);
}

/* User dropdown (hover) */
.gcp-user {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.gcp-user__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.gcp-user__meta {
  text-align: right;
  line-height: 1.15;
  display: none;
}

@media (min-width: 640px) {
  .gcp-user__meta {
    display: block;
  }
}

.gcp-user__name {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

.gcp-user__role {
  font-size: 12px;
  color: #6b7280;
}

.gcp-user__avatar {
  width: 44px;
  /* h-11 w-11 */
  height: 44px;
  border-radius: 999px;
  overflow: hidden;
  background: #d1fae5;
  /* emerald-100 */
  border: 2px solid #10b981;
  /* emerald-500 */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}

.gcp-user__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gcp-user__caret {
  color: #9ca3af;
  /* gray-400 */
  font-size: 18px;
  transition: color .15s ease;
}

.gcp-user:hover .gcp-user__caret {
  color: #059669;
}

/* emerald-600 */

.gcp-user__dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0px);
  width: 192px;
  /* w-48 */
  background: #fff;
  border: 1px solid rgba(17, 24, 39, .06);
  border-radius: 10px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .12);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all .15s ease;
  z-index: 60;
}

.gcp-user:hover .gcp-user__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.gcp-user__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  text-decoration: none;
  font-size: 14px;
  color: #dc2626;
  /* red-600 */
  font-weight: 600;
}

.gcp-user__item:hover {
  background: #fef2f2;
  /* red-50 */
}

/* MAIN WRAP (max-w-5xl) */
.gcp-admin-main {
  max-width: 1024px;
  /* max-w-5xl */
  margin: 0 auto;
  padding: 40px 16px;
}

@media (min-width: 640px) {
  .gcp-admin-main {
    padding: 40px 24px;
  }
}

@media (min-width: 1024px) {
  .gcp-admin-main {
    padding: 40px 32px;
  }
}

/* Hero */
.gcp-admin-hero {
  margin-bottom: 32px;
  /* mb-8 */
}

.gcp-admin-hero h1 {
  margin: 0 0 8px;
  font-size: 30px;
  /* text-3xl */
  font-weight: 700;
  color: #111827;
}

.gcp-admin-hero p {
  margin: 0;
  font-size: 18px;
  /* text-lg */
  color: #6b7280;
  /* gray-500 */
  font-weight: 500;
}

/* dashed separator */
.gcp-admin-sep {
  border-bottom: 2px dashed #d1d5db;
  /* gray-300 */
  margin: 0 0 40px;
  /* mb-10 */
}

/* Panel card wrapper */
.gcp-admin-panel {
  background: #fff;
  border-radius: 16px;
  /* rounded-2xl */
  border: 1px solid rgba(17, 24, 39, .06);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
  overflow: hidden;
  min-height: 600px;
}

/* Tabs bar */
.gcp-admin-tabs {
  display: flex;
  border-bottom: 1px solid rgba(17, 24, 39, .06);
  background: rgba(243, 244, 246, .5);
  /* bg-gray-50/50 */
}

.gcp-admin-tab {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;

  padding: 16px 32px;
  /* px-8 py-4 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  border-top: 2px solid transparent;
  transition: all .15s ease;
}

.gcp-admin-tab:hover {
  background: #F9FAFB;
  color: #374151;
}

.gcp-admin-tab.is-active {
  background: #fff;
  border-top-color: #059669;
  color: #047857;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.gcp-admin-tab i {
  font-size: 18px;
}

/* Content padding inside panel */
.gcp-admin-panel-body {
  padding: 32px 32px;
  /* p-8 */
}

@media (max-width: 768px) {
  .gcp-admin-panel-body {
    padding: 28px 20px;
  }
}

/* =========================================================
   ADMIN (gestor.html) – LAYOUT WIDTHS (NO FULL-WIDTH)
   Header: max-width 1280px (7xl)
   Contenido/hero/tabs: max-width 1024px (5xl) centrado
   ========================================================= */

.gcp-admin-shell {
  background: #F3F4F6;
}

/* Sección hero (Bienvenido...) */
.gcp-admin-hero {
  background: #F3F4F6;
  padding-top: 48px;
  padding-bottom: 24px;
}

.gcp-admin-hero__inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 32px;
}

.gcp-admin-hero h1 {
  margin: 0 0 8px 0;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
}

.gcp-admin-hero p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #6B7280;
}

/* Tabs wrapper (misma caja del HTML) */
.gcp-admin-tabs-wrap {
  padding: 0 0 0;
}

.gcp-admin-tabs__inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 32px;
}

.gcp-admin-tabs {
  display: flex;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}

.gcp-admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 14px;
  color: #6B7280;
  text-decoration: none;
  border-top: 2px solid transparent;
}

.gcp-admin-tab:hover {
  background: #F9FAFB;
  color: #374151;
}

.gcp-admin-tab.is-active {
  color: #047857;
  border-top-color: #059669;
  background: #FFFFFF;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Metrics Dashboard */
.gcp-metrics-dashboard {
  width: 100%;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.gcp-metric-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.gcp-metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.gcp-metric-data {
  display: flex;
  flex-direction: column;
}

.gcp-metric-label {
  font-size: 0.875rem;
  color: #6B7280;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.gcp-metric-val {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

/* Contenido principal: centrado, no full width */
.gcp-admin-content {
  padding-bottom: 64px;
}

.gcp-admin-content__inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 32px;
}

.gcp-admin-content__card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-top: 0;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  padding: 28px;
}

/* Asegura que .gcp-container no vuelva a imponer max-width extraño */
.gcp-admin-content__card .gcp-container {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Responsive padding */
@media (max-width: 1024px) {

  .gcp-admin-hero__inner,
  .gcp-admin-tabs__inner,
  .gcp-admin-content__inner {
    padding: 0 24px;
  }

  .gcp-admin-hero h1 {
    font-size: 34px;
  }
}

@media (max-width: 640px) {
  .gcp-admin-hero {
    padding-top: 32px;
  }

  .gcp-admin-hero__inner,
  .gcp-admin-tabs__inner,
  .gcp-admin-content__inner {
    padding: 0 16px;
  }

  .gcp-admin-hero h1 {
    font-size: 28px;
  }

  /* FIX 1: Tabs scrollables horizontalmente en mobile */
  .gcp-admin-tabs {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    /* ocultar scrollbar visual */
    scrollbar-width: none;
  }

  .gcp-admin-tabs::-webkit-scrollbar {
    display: none;
  }

  .gcp-admin-tab {
    padding: 16px 14px;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .gcp-admin-content__card {
    padding: 20px;
  }

  /* FIX 2: Tipo de perfil (badge) va DEBAJO del email en Crear Proyecto */
  .gcp-user-row-modern {
    flex-wrap: wrap;
  }

  .gcp-user-row-modern .gcp-user-row-left {
    width: 100%;
    align-items: flex-start;
  }

  .gcp-user-row-modern .gcp-checkbox-visual {
    margin-top: 0.2rem;
  }

  .gcp-user-row-modern .gcp-badge {
    margin-left: 4.75rem;
    margin-top: 0.25rem;
  }

  /* Ancho fit content para el badge en mobile */
  .gcp-badge-pill {
    display: inline-block;
    max-width: 100%;
  }

  /* FIX 3: En la lista de archivos, el email/uploader va DEBAJO del peso del archivo */
  .gcp-file-list-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    gap: 2px;
    width: 100%;
  }

  /* Ocultar el separador (dot) en mobile */
  .gcp-file-list-meta .gcp-dot {
    display: none;
  }

  /* El uploader (quien subió) ocupa el ancho completo en nueva línea */
  .gcp-file-list-meta span:last-child {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* FIX 4a: Permisos - título + buscador se apilan verticalmente */
  .gcp-settings-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .gcp-settings-header .gcp-search-wrapper-small {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* FIX 4b: En el user row de permisos, badge va debajo del nombre */
  .gcp-user-check-row {
    display: flex;
    align-items: flex-start !important;
    gap: 10px;
    width: 100%;
  }

  .gcp-user-check-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
  }

  /* FIX 4c: Footer de permisos - "Eliminar carpeta" va DEBAJO de "Guardar Permisos" */
  .gcp-settings-footer {
    display: flex !important;
    flex-direction: column-reverse !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .gcp-settings-footer .gcp-btn-dark {
    width: 100%;
    text-align: center;
  }

  .gcp-settings-footer .gcp-btn-delete-flat {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* FIX 5: En la vista de carpetas (grid), el creador de la carpeta va DEBAJO de la fecha */
  .gcp-folder-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
  }

  /* FIX 6: Gestión de Usuarios header and actions responsive */
  .gcp-header-title-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .gcp-header-actions {
    flex-wrap: wrap;
    justify-content: flex-start !important;
    gap: 10px;
    width: 100%;
  }

  /* Prevent wrapping and reduce padding slightly for mobile buttons */
  .gcp-header-actions .gcp-btn-success,
  .gcp-header-actions .gcp-btn-secondary-small {
    flex: 1;
    text-align: center;
    justify-content: center;
    white-space: nowrap;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-size: 0.8rem;
  }

  .gcp-header-actions .gcp-btn-header-back {
    justify-content: flex-start;
    text-align: left;
    white-space: nowrap;
    margin-right: auto !important;
  }

  /* FIX 7: Audit View header and buttons responsive */
  .gcp-section-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 15px !important;
  }

  .gcp-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
  }

  .gcp-actions-row .gcp-btn-secondary-small {
    flex: 1;
    text-align: center;
    justify-content: center;
  }
}

/* FIX 8: Emails not clickable to avoid mail client opening */
.gcp-user-email,
.gcp-user-card-email {
  pointer-events: none;
}

/* ===== User menu (match gestor.html) ===== */
.gcp-user-menu {
  position: relative;
}

.gcp-user-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 0;
  padding: 8px 0;
  cursor: pointer;
}

.gcp-avatar-wrap {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #D1FAE5;
  /* emerald-100 */
  border: 2px solid #10B981;
  /* emerald-500 */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.gcp-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gcp-caret {
  color: #9CA3AF;
  /* gray-400 */
  display: inline-flex;
  align-items: center;
  transition: color .15s ease;
}

.gcp-user-menu:hover .gcp-caret,
.gcp-user-menu:focus-within .gcp-caret {
  color: #059669;
  /* emerald-600 */
}

.gcp-user-dropdown {
  position: absolute;
  right: 0;
  margin-top: 0;
  /* mt-0 */
  width: 192px;
  /* w-48 */
  background: #fff;
  border: 1px solid #F3F4F6;
  /* gray-100 */
  border-radius: 8px;
  /* rounded-lg */
  box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
  /* shadow-lg feel */
  padding: 8px;
  /* py-2 */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all .18s ease;
  transform-origin: top right;
  z-index: 60;
}

.gcp-user-menu:hover .gcp-user-dropdown,
.gcp-user-menu:focus-within .gcp-user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.gcp-user-dropdown__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #DC2626;
  /* red-600 */
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.gcp-user-dropdown__item:hover {
  background: #FEF2F2;
  /* red-50 */
}

.gcp-logout-ico {
  display: inline-flex;
}


/* Mobile: tabs ocupan todo el ancho (como gestor.html) */
.gcp-admin-tab {
  flex: 1;
}

/* Desde sm (>=640px): tabs tamaño contenido */
@media (min-width: 640px) {
  .gcp-admin-tab {
    flex: 0 0 auto;
  }
}


/* =========================================
   NUEVOS ESTILOS - GESTOR.HTML COMPATIBILIDAD
   ========================================= */

/* Typography & Layout */
.gcp-h3-title {
  font-size: 1.5rem;
  /* text-2xl */
  font-weight: 700;
  color: #1f2937;
  /* text-gray-800 */
  margin-bottom: 1.5rem;
}

.gcp-form-group {
  margin-bottom: 2rem;
}

/* Modern Inputs */
.gcp-input-modern {
  width: 100%;
  padding: 0.75rem 1rem;
  /* py-3 px-4 */
  border: 1px solid #d1d5db;
  /* border-gray-300 */
  border-radius: 0.75rem;
  /* rounded-xl */
  background-color: #f9fafb;
  /* bg-gray-50 */
  color: #374151;
  outline: none;
  transition: all 0.2s;
}

.gcp-input-modern:focus {
  background-color: #ffffff;
  border-color: transparent;
  box-shadow: 0 0 0 2px #10b981;
  /* ring-2 ring-emerald-500 */
}

/* Label */
.gcp-label {
  display: block;
  font-size: 0.875rem;
  /* text-sm */
  font-weight: 600;
  color: #374151;
  /* text-gray-700 */
  margin-bottom: 0.5rem;
}

/* Search Wrapper */
.gcp-search-wrapper {
  position: relative;
  margin-bottom: 1rem;
}

.gcp-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  /* text-gray-400 */
  font-size: 1.25rem;
  pointer-events: none;
}

.gcp-input-search {
  padding-left: 2.5rem;
  /* pl-10 */
}

/* Pillbar Buttons */
.gcp-pillbar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.gcp-pill {
  padding: 0.375rem 1rem;
  /* px-4 py-1.5 */
  border-radius: 9999px;
  /* rounded-full */
  font-size: 0.75rem;
  /* text-xs */
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  background-color: #f3f4f6;
  /* bg-gray-100 */
  color: #4b5563;
  /* text-gray-600 */
}

.gcp-pill:hover {
  background-color: #e5e7eb;
  /* hover:bg-gray-200 */
}

.gcp-pill.active {
  background-color: #111827;
  /* bg-gray-900 */
  color: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
}

/* User Box & List */
.gcp-userbox-modern {
  border: 1px solid #e5e7eb;
  /* border-gray-200 */
  border-radius: 0.75rem;
  /* rounded-xl */
  background-color: #ffffff;
  overflow: hidden;
  max-height: 16rem;
  /* max-h-64 */
  overflow-y: auto;
  padding: 0.25rem;
}

.gcp-user-row-modern {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  border-radius: 0.5rem;
  /* rounded-lg */
  cursor: pointer;
  transition: background-color 0.2s;
  margin-bottom: 0.25rem;
}

.gcp-user-row-modern:hover {
  background-color: #ecfdf5;
  /* hover:bg-emerald-50 */
}

.gcp-user-row-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Hidden Checkbox & Visual */
.gcp-hidden-checkbox {
  display: none;
}

.gcp-checkbox-visual {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.25rem;
  border: 1px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all 0.2s;
}

/* Checked State Logic */
.gcp-user-row-modern input:checked+.gcp-checkbox-visual {
  background-color: #059669;
  /* emerald-600 */
  border-color: #059669;
  color: white;
}

/* Avatar */
.gcp-avatar-circle {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  overflow: hidden;
  background-color: #e5e7eb;
}

.gcp-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* User Info */
.gcp-user-info {
  display: flex;
  flex-direction: column;
}

.gcp-user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
  line-height: 1.25;
}

.gcp-user-email {
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 0;
}

/* Badges */
.gcp-badge {
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.gcp-badge-gray {
  background-color: #f3f4f6;
  color: #4b5563;
}

.gcp-badge-orange {
  background-color: #ffedd5;
  color: #c2410c;
}

.gcp-badge-emerald {
  background-color: #d1fae5;
  color: #047857;
}

/* User Count */
.gcp-user-count {
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: right;
  margin-top: 0.5rem;
}

/* Footer & Button */
.gcp-form-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 1rem;
}

.gcp-btn-gradient {
  background: linear-gradient(to right, #059669, #10b981);
  color: white;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 0.75rem;
  /* rounded-xl */
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
  font-size: 1rem;
}

.gcp-btn-gradient:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.gcp-btn-gradient i {
  font-size: 1.25rem;
}


/* =========================================
   DOCUMENTS VIEW (FOLDERS)
   ========================================= */

.gcp-docs-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .gcp-docs-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.gcp-docs-title {
  font-size: 1.5rem;
  /* text-2xl */
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.gcp-docs-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Search Small */
.gcp-search-wrapper-small {
  position: relative;
}

.gcp-search-icon-small {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 1rem;
  pointer-events: none;
}

.gcp-input-search-small {
  padding: 0.5rem 1rem 0.5rem 2.25rem;
  /* py-2 pl-9 pr-4 */
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  /* rounded-lg */
  font-size: 0.875rem;
  /* text-sm */
  width: 12rem;
  /* w-48 */
  outline: none;
  transition: all 0.2s;
  color: #374151;
}

.gcp-input-search-small:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 2px #10b981;
}

/* View Toggles */
.gcp-view-toggles {
  display: flex;
  background-color: #f3f4f6;
  padding: 0.25rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
}

.gcp-toggle-btn {
  padding: 0.375rem;
  border-radius: 0.375rem;
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gcp-toggle-btn:hover {
  color: #4b5563;
}

.gcp-toggle-btn.active {
  background-color: white;
  color: #059669;
  /* emerald-600 */
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.gcp-toggle-btn i {
  font-size: 1.125rem;
  /* text-lg */
}

/* GRID VIEW */
.gcp-docs-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
  /* gap-6 */
}

@media (min-width: 640px) {
  .gcp-docs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .gcp-docs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .gcp-docs-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* FOLDER CARD (Shared) */
.gcp-folder-card {
  background-color: white;
  border: 1px solid #f3f4f6;
  /* border-gray-100 */
  border-radius: 1rem;
  /* rounded-2xl */
  padding: 1.5rem;
  transition: all 0.2s;
  cursor: pointer;
  display: block;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.gcp-folder-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Grid Layout Elements */
.gcp-docs-grid .gcp-folder-list-content {
  display: none;
}

.gcp-folder-grid-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gcp-folder-options {
  position: absolute;
  top: 1rem;
  right: 1rem;
  opacity: 0;
  transition: opacity 0.2s;
  color: #9ca3af;
}

.gcp-folder-card:hover .gcp-folder-options {
  opacity: 1;
}

.gcp-folder-icon-wrapper {
  color: #fbbf24;
  /* amber-400 */
  font-size: 3.75rem;
  /* text-6xl */
  margin-bottom: 1rem;
  transition: transform 0.3s;
  line-height: 1;
}

.gcp-folder-card:hover .gcp-folder-icon-wrapper {
  transform: scale(1.1);
}

.gcp-folder-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.25rem;
  transition: color 0.2s;
  /* line-clamp-2 */
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25;
  height: 2.5em;
  /* approximate for 2 lines */
  margin-top: 0;
}

.gcp-folder-card:hover .gcp-folder-title {
  color: #059669;
}

.gcp-folder-meta {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* LIST VIEW */
.gcp-docs-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gcp-docs-list .gcp-folder-card {
  padding: 1rem;
  /* p-4 */
  border-radius: 0.75rem;
  /* rounded-xl */
  border: 1px solid #f3f4f6;
  box-shadow: none;
}

.gcp-docs-list .gcp-folder-card:hover {
  background-color: #f9fafb;
  /* bg-gray-50 */
  transform: none;
}

.gcp-docs-list .gcp-folder-grid-content {
  display: none;
}

.gcp-docs-list .gcp-folder-list-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.gcp-folder-list-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.gcp-folder-icon-list {
  color: #fbbf24;
  font-size: 1.875rem;
  /* text-3xl */
  line-height: 1;
}

.gcp-folder-title-list {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.gcp-folder-card:hover .gcp-folder-title-list {
  color: #059669;
}

.gcp-folder-date-list {
  font-size: 0.75rem;
  color: #9ca3af;
  display: block;
  /* Visible on mobile mostly */
}

/* Hide date in left col on desktop if using right col, but gestor code shows it in mobile only one place */
@media (min-width: 768px) {
  .gcp-folder-date-list {
    display: none;
  }
}

.gcp-folder-list-right {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  color: #6b7280;
}

@media (min-width: 768px) {
  .gcp-folder-list-right {
    display: flex;
  }
}

.gcp-folder-btn-list {
  padding: 0.5rem;
  /* p-2 */
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.2s;
}

.gcp-folder-btn-list:hover {
  background-color: #e5e7eb;
  color: #4b5563;
}


/* =========================================
   PROJECT DETAILS VIEW (Inside Folder)
   ========================================= */

/* Header Actions */
.gcp-header-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.gcp-btn-header-back {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  /* text-sm */
  font-weight: 500;
  color: #6b7280;
  /* text-gray-500 */
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.gcp-btn-header-back:hover {
  color: #059669;
  /* emerald-600 */
}

.gcp-icon-circle {
  padding: 0.375rem;
  border-radius: 9999px;
  background-color: #f3f4f6;
  /* bg-gray-100 */
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  transition: background-color 0.2s;
}

.gcp-btn-header-config {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  background-color: transparent;
  border: 1px solid #e5e7eb;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.gcp-btn-header-config:hover {
  color: #059669;
  border-color: #a7f3d0;
  background-color: #ecfdf5;
}

/* Title Large */
.gcp-folder-title-large {
  font-size: 1.5rem;
  /* text-2xl */
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gcp-folder-title-large i {
  font-size: 1.5em;
}

/* Settings Panel */
.gcp-settings-panel {
  margin-bottom: 2rem;
  background-color: #f9fafb;
  /* bg-gray-50 */
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  /* rounded-xl */
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease-out;
}

.gcp-settings-panel.hidden {
  display: none;
}

.gcp-settings-stripe {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: #10b981;
  /* emerald-500 */
}

.gcp-section-header {
  margin-bottom: 2rem;
}

.gcp-header-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.gcp-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gcp-settings-card {
  background-color: white;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  padding: 1rem;
}

.gcp-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.gcp-settings-subtitle {
  font-size: 0.75rem;
  color: #9ca3af;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 0;
}

.gcp-settings-userlist {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

/* User Check Row */
.gcp-user-check-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.gcp-user-check-row:hover {
  background-color: #f9fafb;
}

.gcp-checkbox-modern {
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
  border: 1px solid #d1d5db;
  color: #059669;
}

.gcp-user-check-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gcp-user-check-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.gcp-badge-small {
  font-size: 0.625rem;
  /* text-[10px] */
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  background-color: #f3f4f6;
  color: #4b5563;
  border: 1px solid #e5e7eb;
}

.gcp-settings-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
}

.gcp-btn-delete-flat {
  color: #ef4444;
  /* red-500 */
  font-size: 0.875rem;
  font-weight: 500;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
}

.gcp-btn-delete-flat:hover {
  background-color: #fef2f2;
  /* red-50 */
  color: #b91c1c;
  /* red-700 */
}

.gcp-btn-dark {
  background-color: #111827;
  /* gray-900 */
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s;
}

.gcp-btn-dark:hover {
  background-color: #000000;
}

/* Dropzone Modern */
.gcp-dropzone-modern {
  border: 2px dashed #d1d5db;
  /* gray-300 */
  border-radius: 0.75rem;
  /* rounded-xl */
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s;
  background-color: #f9fafb;
  /* bg-gray-50 */
  margin-bottom: 2rem;
  cursor: pointer;
  position: relative;
}

.gcp-dropzone-modern:hover {
  border-color: #34d399;
  /* emerald-400 */
  background-color: white;
}

.gcp-dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  /* Handled by margins */
  width: 100%;
  height: 100%;
  color: #6b7280;
  /* text-gray-500 */
  cursor: pointer;
}

.gcp-dropzone-main {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.gcp-dropzone-sub {
  font-size: 11px;
  color: #6b7280;
  text-align: center;
}

.gcp-dropzone-modern:hover .gcp-dropzone-content {
  color: #059669;
  /* emerald-600 */
}

/* Files Header */
.gcp-files-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  /* Allow wrapping */
  gap: 10px;
}

.gcp-h3-simple {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
  width: 100%;
  /* Force 100% width on mobile */
}

@media (min-width: 768px) {
  .gcp-h3-simple {
    width: auto;
    /* Revert to auto on desktop */
  }
}

.gcp-file-search-container {
  flex: 1;
  /* Allow search to fill remaining space on mobile */
  display: flex;
  justify-content: flex-start;
}

/* FILE VIEW MODES */

/* Shared wrapper */
.gcp-file-card-wrapper {
  /* No layout here, managed by container grid/flex */
}

/* Default hidden states */
.gcp-file-card-grid {
  display: none;
}

.gcp-file-card-list {
  display: none;
}

/* GRID MODE */
.gcp-files-grid-view {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 768px) {
  .gcp-files-grid-view {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.gcp-files-grid-view .gcp-file-card-wrapper {
  display: block;
}

.gcp-files-grid-view .gcp-file-card-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: white;
  border: 1px solid #f3f4f6;
  border-radius: 0.75rem;
  /* rounded-xl */
  padding: 1rem;
  position: relative;
  transition: all 0.2s;
}

.gcp-files-grid-view .gcp-file-card-grid:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.gcp-file-grid-icon {
  font-size: 1.875rem;
  /* text-3xl */
  margin-bottom: 0.75rem;
}

.gcp-file-grid-title {
  font-size: 0.875rem;
  /* text-sm */
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.25rem;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gcp-file-grid-date {
  font-size: 0.75rem;
  /* text-xs */
  color: #9ca3af;
  margin-bottom: 0.75rem;
}

.gcp-file-grid-actions {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  gap: 0.25rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.gcp-files-grid-view .gcp-file-card-grid:hover .gcp-file-grid-actions {
  opacity: 1;
}

/* LIST MODE */
.gcp-files-list-view {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gcp-files-list-view .gcp-file-card-wrapper {
  display: block;
}

.gcp-files-list-view .gcp-file-card-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: white;
  border: 1px solid #f3f4f6;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  transition: background-color 0.2s;
}

.gcp-files-list-view .gcp-file-card-list:hover {
  background-color: #f9fafb;
}

.gcp-file-list-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-grow: 1;
  min-width: 0;
  /* for truncation */
}

.gcp-file-list-icon {
  font-size: 1.5rem;
  /* 2xl */
  padding: 0.5rem;
  background-color: #f9fafb;
  border-radius: 0.5rem;
}

.gcp-file-list-info {
  min-width: 0;
}

.gcp-files-list-view .gcp-file-card-list:hover .gcp-file-list-icon {
  background-color: white;
}

.gcp-file-list-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1f2937;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gcp-file-list-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.125rem;
}

.gcp-dot {
  width: 3px;
  height: 3px;
  background-color: #d1d5db;
  border-radius: 50%;
}

.gcp-file-list-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.gcp-file-list-date {
  font-size: 0.875rem;
  color: #6b7280;
  display: none;
}

@media (min-width: 768px) {
  .gcp-file-list-date {
    display: block;
  }
}

.gcp-file-list-actions {
  display: flex;
  gap: 0.5rem;
}

.gcp-btn-list-action {
  padding: 0.5rem;
  border-radius: 0.5rem;
  background-color: #f9fafb;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gcp-btn-list-action:hover {
  background-color: #e5e7eb;
}

/* Icon Buttons small */
.gcp-btn-icon-emerald {
  padding: 0.375rem;
  background-color: white;
  color: #059669;
  border: 1px solid #f3f4f6;
  border-radius: 0.375rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  /* Ensures the icon is the same size */
  line-height: 1;
  width: 32px;
  height: 32px;
  box-sizing: border-box;
}

.gcp-btn-icon-red {
  padding: 0.375rem;
  background-color: white;
  color: #ef4444;
  border: 1px solid #f3f4f6;
  border-radius: 0.375rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  /* Ensures the icon is the same size */
  line-height: 1;
  width: 32px;
  height: 32px;
  box-sizing: border-box;
}


/* =========================================
   USERS VIEW
   ========================================= */

/* Large Search Bar */
.gcp-search-bar-large {
  position: relative;
  margin-bottom: 2rem;
}

.gcp-search-bar-large i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 1.25rem;
}

.gcp-search-bar-large input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 1rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
}

.gcp-search-bar-large input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

/* User Grid */
.gcp-users-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gcp-user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  transition: all 0.2s;
}

.gcp-user-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.gcp-user-card-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Avatar Circle */
.gcp-avatar-circle-large {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  color: white;
}

.gcp-avatar-circle-large.gray {
  background-color: #4b5563;
}

.gcp-avatar-circle-large.orange {
  background-color: #f97316;
}

.gcp-user-card-info {
  display: flex;
  flex-direction: column;
}

.gcp-user-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gcp-user-card-name {
  font-weight: 600;
  color: #111827;
  font-size: 1rem;
  margin: 0;
}

.gcp-user-card-email {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0;
}

/* Badges */
.gcp-badge-pill {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.gcp-badge-gray {
  background-color: #f3f4f6;
  color: #374151;
}

.gcp-badge-orange {
  background-color: #ffedd5;
  color: #9a3412;
}

.gcp-badge-emerald {
  background-color: #d1fae5;
  color: #065f46;
}



.gcp-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  /* Push to right if in flex container */
}

.gcp-user-card-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gcp-user-card-actions form {
  display: inline-flex;
  margin: 0;
}

.gcp-btn-success {
  padding: 0.5rem 1rem;
  /* Smaller padding */
  background-color: #10b981;
  color: white;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.875rem;
  /* Smaller font */
  border-radius: 0.5rem;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
}

.gcp-btn-secondary-small {
  padding: 0.5rem 1rem;
  background-color: #f3f4f6;
  color: #374151;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #e5e7eb;
}

.gcp-btn-secondary-small:hover {
  background-color: #e5e7eb;
  color: #111827;
}

.gcp-btn-success:hover {
  background-color: #059669;
}


/* Redesigned Edit/Delete Buttons */
.gcp-btn-edit-small {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  color: #374151;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.gcp-btn-edit-small:hover {
  background-color: #f9fafb;
  border-color: #d1d5db;
  color: #111827;
}

.gcp-btn-delete-small {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  border-radius: 0.375rem;
  color: #dc2626;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.gcp-btn-delete-small:hover {
  background-color: #fee2e2;
  border-color: #fecaca;
  color: #b91c1c;
}

.gcp-btn-delete-small i,
.gcp-btn-edit-small i {
  font-size: 1rem;
}


/* Create User Form */
.gcp-create-user-container {
  max-width: 800px;
  margin: 0 auto;
}

/* Type Toggles */
.gcp-type-toggles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.gcp-type-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  color: #6b7280;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.gcp-type-toggle.active {
  background-color: #ecfdf5;
  border-color: #10b981;
  color: #047857;
  box-shadow: 0 0 0 1px #10b981;
}

.gcp-type-toggle:hover:not(.active) {
  background-color: #f9fafb;
  border-color: #d1d5db;
}

/* Form Card (Reused but refined) */
.gcp-form-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.gcp-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.gcp-form-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.gcp-form-group-modern {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gcp-form-group-modern label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.gcp-form-group-modern input,
.gcp-form-group-modern select {
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  width: 100%;
  transition: border-color 0.2s;
}

.gcp-form-group-modern input:focus,
.gcp-form-group-modern select:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.gcp-select-wrapper {
  position: relative;
}

.gcp-select-wrapper select {
  appearance: none;
  background: white;
  cursor: pointer;
}

.gcp-select-wrapper i {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #9ca3af;
}

.gcp-hint {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.gcp-input-icon-wrapper {
  position: relative;
}

.gcp-eye-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.gcp-eye-btn:hover {
  color: #4b5563;
}

.gcp-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
}

.gcp-btn-ghost {
  padding: 0.5rem 1rem;
  color: #6b7280;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.gcp-btn-ghost:hover {
  background-color: #f3f4f6;
  color: #111827;
}

.gcp-btn-gradient {
  padding: 0.625rem 1.5rem;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  font-weight: 500;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.gcp-btn-gradient:hover {
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

.gcp-btn-submit-green {
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  font-weight: 500;
  font-size: 0.875rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.gcp-btn-submit-green:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .gcp-form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gcp-type-toggles {
    grid-template-columns: 1fr;
  }

  .gcp-user-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .gcp-user-card-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* =========================================
   PJAX Loader
   ========================================= */
#gcp-pjax-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
  backdrop-filter: blur(2px);
}

.gcp-loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(16, 185, 129, 0.3);
  border-radius: 50%;
  border-top-color: #10b981;
  animation: gcp-spin 0.8s ease-in-out infinite;
}

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

/* Ensure relative positioning for overlay parent */
#gcp-pjax-container {
  position: relative;
  min-height: 200px;
}

/* =========================================================
   GLOBAL UPLOAD DOCK (Drive-like)
========================================================= */
#gdgcp-upload-dock {
  position: fixed;
  bottom: 0;
  right: 20px;
  width: 410px;
  /* [FIX 1] Reduced width */
  max-width: 95vw;
  max-width: 95vw;
  background: #fff;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--gcp-font);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 0;
}

#gdgcp-upload-dock.collapsed {
  transform: translateY(calc(100% - 48px));
}

#gdgcp-upload-dock.gcp-dock-hidden {
  display: none !important;
}

.gcp-dock-header {
  height: 48px;
  background: #1d1d1f;
  color: #fff;
  border-radius: 10px 10px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  cursor: pointer;
  user-select: none;
}

.gcp-dock-title {
  font-weight: 600;
  font-size: 14px;
}

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

.gcp-dock-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.gcp-dock-btn:hover {
  color: #fff;
}

.gcp-dock-body {
  max-height: 300px;
  overflow-y: auto;
  background: #fff;
}

.gcp-dock-empty {
  padding: 30px;
  text-align: center;
  color: #86868b;
  font-size: 13px;
}

.gcp-dock-item {
  padding: 16px 20px;
  /* [UI 1] More padding */
  border-bottom: 1px solid #f0f0f0;
  display: grid;
  /* [UI 2] Grid layout */
  grid-template-columns: 40px 1fr 44px;
  gap: 12px;
  align-items: center;
}

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

.gcp-dock-icon {
  width: 32px;
  height: 32px;
  background: #f5f5f7;
  border-radius: 8px;
  /* Slightly softer */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #86868b;
  font-size: 16px;
}

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

.gcp-dock-name {
  font-weight: 500;
  font-size: 13px;
  color: #1d1d1f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.gcp-dock-meta {
  font-size: 11px;
  color: #86868b;
  font-size: 11px;
  color: #86868b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  /* Space from title */
}

.gcp-dock-rightmeta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gcp-dock-pct {
  font-weight: 600;
  color: var(--gcp-primary);
  min-width: 32px;
  text-align: right;
}

.gcp-dock-folder {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gcp-dock-progress-bg {
  height: 4px;
  background: #eee;
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}

.gcp-dock-progress-fill {
  height: 100%;
  background: var(--gcp-primary);
  width: 0%;
  transition: width 0.2s linear;
}

/* [UI 4] Circular Actions Column */
.gcp-dock-actions-col {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.gcp-dock-status-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Status colors */
.gcp-dock-item.status-done .gcp-dock-progress-fill {
  background: #10b981;
}

.gcp-dock-item.status-error .gcp-dock-progress-fill {
  background: #ef4444;
}

/* Buttons refined */
.gcp-dock-retry-btn,
.gcp-dock-cancel-btn {
  background: transparent;
  border: none;
  color: #888;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  /* Optional, not strictly needed for transparency but keeps hit area round */
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.gcp-dock-actions-col {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 44px;
  /* Ensure fixed width container */
}

.gcp-dock-cancel-btn:hover {
  background: transparent;
  color: #E53935;
  /* Red on hover */
  opacity: 1;
}

.gcp-dock-cancel-btn:active {
  transform: none;
  /* No movement to avoid reflow/flicker */
  opacity: 0.7;
}

.gcp-dock-cancel-btn i {
  display: block;
  line-height: 1;
}

.gcp-dock-retry-btn:hover,
.gcp-dock-cancel-btn:hover {
  background: #e5e7eb;
  color: #111;
}

/* Mobile responsive */
@media (max-width: 480px) {
  #gdgcp-upload-dock {
    width: auto;
    left: 10px;
    right: 10px;
  }
}

/* ===== File Type Icon Colors ===== */
.gcp-icon-pdf {
  color: #ef4444;
}

/* red-500 */
.gcp-icon-xls {
  color: #16a34a;
}

/* green-600 */
.gcp-icon-doc {
  color: #2563eb;
}

/* blue-600 */
.gcp-icon-zip {
  color: #f59e0b;
}

/* amber-500 */
.gcp-icon-img {
  color: #9333ea;
}

/* purple-600 */
.gcp-icon-vid {
  color: #db2777;
}

/* pink-600 */
.gcp-icon-ppt {
  color: #f97316;
}

/* orange-500 */
.gcp-icon-def {
  color: #9ca3af;
}

/* gray-400 */

/* ===== Folder Icon (Header) ===== */
.gdgcp-folder-icon,
.gdgcp-folder-icon svg {
  color: #F59E0B !important;
  fill: currentColor;
  stroke: currentColor;
}

/* ===== Action Button Colors ===== */
.gdgcp-action-download,
.gdgcp-action-download svg,
.gdgcp-action-download i {
  color: #16A34A !important;
  fill: currentColor;
  stroke: currentColor;
}

.gdgcp-action-delete,
.gdgcp-action-delete svg,
.gdgcp-action-delete i {
  color: #DC2626 !important;
  fill: currentColor;
  stroke: currentColor;
}

.gdgcp-action-download:hover {
  filter: brightness(0.95);
}

.gdgcp-action-delete:hover {
  filter: brightness(0.95);
}

/* ===== Spinner Animation ===== */
.gcp-spin {
  display: inline-block;
  animation: gcpSpinRotate 1s linear infinite;
}

@keyframes gcpSpinRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}