/* ==========================================================================
   view-fleet.css - Fleet Matrix & Google Pro Accounts Grid
   Dooze Clip Generator / Clean Workspace (Gemini Borderless Style)
   ========================================================================== */

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.fleet-card {
  background: var(--surface);
  border: 0 !important;
  border-radius: var(--radius-card, 22px);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 16px -8px rgba(0, 0, 0, 0.4);
  transition: all 160ms cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.fleet-card:hover {
  background: var(--surface-raised, #282a2c);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.5);
}

.fleet-card.is-active-account {
  background: linear-gradient(180deg, rgba(168, 199, 250, 0.06) 0%, var(--surface) 100%);
}

.fleet-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fleet-avatar-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fleet-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(168, 199, 250, 0.12);
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  flex-shrink: 0;
}

.fleet-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fleet-acc-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.fleet-acc-email {
  font-size: 11.5px;
  color: var(--text-tertiary);
  font-family: monospace;
}

.fleet-status-pill {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0 !important;
}

.fleet-status-pill.online {
  background: rgba(129, 201, 149, 0.14);
  color: #81c995;
}

.fleet-status-pill.offline {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-tertiary);
}

/* Quota Mini Bar in Card */
.fleet-quota-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 14px;
  border: 0 !important;
}

.fleet-quota-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
}

.fleet-quota-val {
  font-weight: 500;
  color: var(--text-primary);
  font-family: monospace;
}

.fleet-quota-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.fleet-quota-fill {
  height: 100%;
  background: #81c995;
  border-radius: 999px;
  transition: width 300ms ease;
}

/* Card Action Buttons */
.fleet-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.fleet-btn {
  flex: 1;
  height: 32px;
  padding: 0 14px;
  font-size: 11.5px;
  font-weight: 500;
  border-radius: var(--radius-pill, 999px);
  border: 0 !important;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 140ms ease;
  user-select: none;
}

.fleet-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.fleet-btn.btn-active-acc {
  background: rgba(168, 199, 250, 0.18);
  color: var(--accent);
  font-weight: 600;
}
