html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background-color: #f4f6fb;
}

.bg-drive {
  background: linear-gradient(90deg, #1a237e 0%, #3949ab 100%);
}

.navbar-dark .navbar-brand,
.navbar-dark .nav-link {
  color: rgba(255, 255, 255, 0.92) !important;
}

.navbar-dark .btn-link.nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
}

.hero-landing .hero-card {
  border-radius: 1rem;
}

.drive-shell {
  max-width: 1100px;
  margin: 0 auto;
}

.drive-table thead th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6c757d;
}

.drive-name {
  font-weight: 500;
  color: #1a237e;
}

.drive-icon {
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  vertical-align: -0.15rem;
  border-radius: 2px;
}

.drive-icon.folder {
  background: linear-gradient(135deg, #fbc02d 0%, #f9a825 100%);
}

.drive-icon.file {
  background: linear-gradient(135deg, #90caf9 0%, #42a5f5 100%);
}

.empty-drive {
  background: #fff;
  border-radius: 0.75rem;
  border: 1px dashed #cfd8ea;
}

.footer {
  background: #fff;
}

.drive-preview-card .card-body {
  min-height: 12rem;
}

.drive-preview-iframe {
  width: 100%;
  min-height: 70vh;
  border: 1px solid #e0e4ef !important;
}

.drive-text-preview {
  max-height: 70vh;
  overflow: auto;
  font-size: 0.8rem;
  background: #0d1117;
  color: #e6edf3;
  padding: 1rem;
  border-radius: 0.5rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.drive-preview-image-wrap {
  background: #fff;
}

.drive-meta dt {
  color: #6c757d;
}

.drive-drop-zone {
  border: 2px dashed #90a4d4;
  border-radius: 0.75rem;
  padding: 2rem 1rem;
  text-align: center;
  background: #fafbff;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.drive-drop-zone-active {
  border-color: #3949ab;
  background: #e8eaf6;
}

.drive-grid-card .drive-grid-thumb {
  min-height: 6.5rem;
  border-bottom: 1px solid #eef1f8;
}

.drive-grid-icon {
  width: 2.5rem !important;
  height: 2.5rem !important;
}

.drive-grid-img {
  max-height: 6rem;
  max-width: 100%;
  object-fit: contain;
}