/* ══════════════════════════════════════════════════════════════
   GOOGLE DRIVE IN-APP SEARCH MODULE — Styles
   Remove drive.css + drive.js to disable this feature entirely.
   ══════════════════════════════════════════════════════════════ */

/* Modal sizing */
.drive-modal {
  max-width: 620px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 1.25rem;
  gap: 0;
}

/* Header */
.drive-modal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.75rem;
}

/* Scrollable results body */
#drive-modal-body {
  flex: 1;
  overflow-y: auto;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Footer */
.drive-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  margin-top: 0.75rem;
}

/* ── Individual result row ── */
.drive-result-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.15s, background 0.15s;
  min-width: 0;
}

.drive-result-row:hover {
  border-color: var(--accent);
  background: rgba(0, 180, 200, 0.04);
}

.drive-result-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  line-height: 1;
}

.drive-result-meta {
  flex: 1;
  min-width: 0;
}

.drive-result-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drive-result-info {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Loading spinner ── */
.drive-spinner {
  width: 26px;
  height: 26px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: drive-spin 0.7s linear infinite;
  display: inline-block;
}

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