.drive-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.drive-container h1 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #202124;
}

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

.header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.drive-actions {
  margin-bottom: 30px;
}

.action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: #1a73e8;
  color: white;
}

.btn-primary:hover {
  background: #1765cc;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: #f1f3f4;
  color: #5f6368;
}

.btn-secondary:hover {
  background: #e8eaed;
}

.btn-danger {
  background: #d93025;
  color: white;
}

.btn-danger:hover {
  background: #c5221f;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 16px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.icon {
  font-size: 18px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #5f6368;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.files-header,
.files-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #dadce0;
  margin-bottom: 20px;
}

.files-footer {
  border-bottom: none;
  border-top: 1px solid #dadce0;
  margin-top: 20px;
  margin-bottom: 0;
  justify-content: center;
}

.file-count {
  color: #5f6368;
  font-size: 14px;
}

.folder-item {
  margin-bottom: 16px;
}

.folder-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.folder-header:hover {
  background: #e8eaed;
}

.folder-icon {
  font-size: 20px;
}

.folder-name {
  flex: 1;
  font-weight: 500;
  color: #202124;
  font-size: 14px;
}

.expand-icon {
  color: #5f6368;
  transition: transform 0.2s;
  font-size: 12px;
}

.folder-item.expanded .expand-icon {
  transform: rotate(90deg);
}

.folder-contents {
  padding-left: 32px;
  padding-top: 12px;
}

.subfolder {
  padding-left: 16px;
}

.loading {
  color: #5f6368;
  padding: 12px;
  font-size: 14px;
}

.empty-folder {
  color: #5f6368;
  padding: 12px;
  font-size: 14px;
  font-style: italic;
}

.section-header {
  font-weight: 500;
  color: #202124;
  padding: 12px 0;
  margin-top: 20px;
  border-bottom: 1px solid #dadce0;
  margin-bottom: 16px;
}

.files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.file-card {
  border: 1px solid #dadce0;
  border-radius: 8px;
  padding: 16px;
  background: white;
  transition: all 0.2s;
  position: relative;
}

.file-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-color: #1a73e8;
}

.file-checkbox {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
}

.file-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.file-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.file-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.file-info {
  flex: 1;
  min-width: 0;
  padding-right: 30px;
}

.file-name {
  font-size: 14px;
  color: #202124;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #5f6368;
}

.file-card:has(input[type="checkbox"]:checked) {
  background: #e8f0fe;
  border-color: #1a73e8;
}

.surface-card {
  background: white;
  border: 1px solid #dadce0;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 16px;
}

.responsive-table {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #e8eaed;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.data-table th {
  color: #5f6368;
  font-weight: 600;
  white-space: nowrap;
}

.data-table tr:hover td {
  background: #f8f9fa;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.status-queued {
  background: #e8f0fe;
  color: #1a73e8;
}

.status-processing {
  background: #fff4e5;
  color: #d56e00;
}

.status-completed {
  background: #e6f4ea;
  color: #188038;
}

.status-failed {
  background: #fce8e6;
  color: #c5221f;
}

.inline-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dadce0;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.input-sm {
  width: auto;
  padding: 8px 10px;
  min-width: 80px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-weight: 600;
  color: #3c4043;
  font-size: 14px;
}

.checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.form-actions {
  margin-top: 8px;
}

.auth-card {
  max-width: 420px;
  margin: 40px auto;
  padding: 28px;
  background: white;
  border: 1px solid #dadce0;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.auth-subtitle {
  color: #5f6368;
  margin-bottom: 16px;
}

.alert,
.notice {
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.alert {
  background: #fce8e6;
  color: #c5221f;
  border: 1px solid #f28b82;
}

.notice {
  background: #e6f4ea;
  color: #188038;
  border: 1px solid #81c995;
}

.text-muted {
  color: #5f6368;
}

.text-strong {
  font-weight: 600;
  color: #202124;
}

.text-mono {
  font-family: ui-monospace, SFMono-Regular, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.breakable {
  word-break: break-all;
}

.link {
  color: #1a73e8;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  background: #f1f3f4;
  border-radius: 999px;
  color: #3c4043;
  font-size: 12px;
}

.table-actions {
  min-width: 260px;
}

@media (max-width: 640px) {
  .drive-container {
    padding: 16px;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .table-actions {
    min-width: 200px;
  }
}
