* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0f1115;
  color: #e6e6e6;
}

/* --- Auth --- */
.auth-wrap { display: flex; align-items: center; justify-content: center; height: 100vh; }
.auth-card { background: #1a1d24; padding: 32px; border-radius: 12px; width: 320px; }
.auth-card h1 { font-size: 20px; margin: 0 0 20px; text-align: center; }
.tabs { display: flex; margin-bottom: 16px; border-radius: 8px; overflow: hidden; background: #10121a; }
.tab { flex: 1; padding: 10px; background: transparent; border: none; color: #999; cursor: pointer; }
.tab.active { background: #2b6cee; color: white; }
#authForm { display: flex; flex-direction: column; gap: 10px; }
#authForm input {
  padding: 10px 12px; border-radius: 8px; border: 1px solid #2a2e38; background: #10121a; color: #eee;
}
#authForm button {
  padding: 10px; border-radius: 8px; border: none; background: #2b6cee; color: white; font-weight: 600; cursor: pointer;
}
.msg { color: #ff6b6b; font-size: 13px; text-align: center; min-height: 18px; }

/* --- Drive --- */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px; background: #1a1d24; border-bottom: 1px solid #262a33;
}
.topbar h1 { font-size: 16px; margin: 0; }
.topbar-right { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #999; }
#logoutBtn { background: none; border: 1px solid #333; color: #ccc; padding: 6px 12px; border-radius: 6px; cursor: pointer; }

.drive-wrap { max-width: 900px; margin: 24px auto; padding: 0 16px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.breadcrumb { font-size: 13px; color: #999; }
.breadcrumb span { cursor: pointer; color: #6ea8ff; }
.actions { display: flex; gap: 8px; }
.actions button, .upload-btn {
  padding: 8px 14px; border-radius: 8px; border: none; background: #262a33; color: #eee; cursor: pointer; font-size: 13px;
}
.upload-btn { background: #2b6cee; }

.upload-progress { margin-bottom: 14px; font-size: 12px; color: #999; }
.bar { height: 6px; background: #262a33; border-radius: 4px; overflow: hidden; margin-bottom: 4px; }
.bar-fill { height: 100%; width: 0%; background: #2b6cee; transition: width .2s; }

.drive-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.drive-table th { text-align: left; padding: 8px 10px; color: #888; font-weight: 500; border-bottom: 1px solid #262a33; font-size: 12px; }
.drive-table td { padding: 10px; border-bottom: 1px solid #1c1f27; }
.drive-table tr:hover { background: #171a21; }
.name-cell { cursor: pointer; display: flex; align-items: center; gap: 8px; }
.row-actions button { background: none; border: none; color: #888; cursor: pointer; font-size: 13px; }
.row-actions button:hover { color: #ff6b6b; }
.empty { text-align: center; color: #666; padding: 40px 0; }
