* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0a0a0a;
  color: #e5e5e5;
  min-height: 100vh;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.subtitle {
  color: #888;
  margin-top: 0.25rem;
  margin-bottom: 2rem;
}

.upload-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.name-input {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #e5e5e5;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s;
}

.name-input:focus {
  border-color: #555;
}

.drop-zone {
  border: 2px dashed #2a2a2a;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  color: #666;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drop-zone:hover,
.drop-zone.dragging {
  border-color: #555;
  background: #141414;
}

.file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.file-tag {
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  color: #ccc;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.remove-file {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 0.75rem;
  padding: 0;
  line-height: 1;
}

.remove-file:hover {
  color: #e55;
}

.upload-btn {
  background: #fff;
  color: #0a0a0a;
  border: none;
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.upload-btn:hover:not(:disabled) {
  opacity: 0.9;
}

.upload-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.sites-section {
  margin-top: 3rem;
}

.sites-section h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}

.sites-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-card {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.site-name {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.site-name:hover {
  text-decoration: underline;
}

.site-meta {
  font-size: 0.8rem;
  color: #666;
}

.site-url {
  font-size: 0.75rem;
  color: #555;
  background: #1a1a1a;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  width: fit-content;
}

.delete-btn {
  background: none;
  border: 1px solid #333;
  border-radius: 6px;
  color: #888;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.delete-btn:hover {
  color: #e55;
  border-color: #e55;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sign-out-btn {
  background: none;
  border: 1px solid #333;
  border-radius: 6px;
  color: #888;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.sign-out-btn:hover {
  color: #fff;
  border-color: #555;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-error {
  color: #e55;
  font-size: 0.85rem;
}

.auth-toggle {
  margin-top: 1.5rem;
  color: #888;
  font-size: 0.85rem;
  text-align: center;
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  background: #fff;
  color: #0a0a0a;
  border: none;
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.google-btn:hover {
  opacity: 0.9;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #555;
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid #2a2a2a;
}

.auth-toggle button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.85rem;
}

.site-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.shares-btn {
  background: none;
  border: 1px solid #333;
  border-radius: 6px;
  color: #888;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.shares-btn:hover {
  color: #fff;
  border-color: #555;
}

.shares-panel {
  background: #111;
  border: 1px solid #2a2a2a;
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 0.75rem 1rem;
  margin-top: -0.5rem;
}

.shares-empty {
  color: #555;
  font-size: 0.8rem;
}

.share-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #1a1a1a;
}

.share-row:last-child {
  border-bottom: none;
}

.share-email {
  flex: 1;
  font-size: 0.85rem;
  color: #ccc;
}

.share-date {
  font-size: 0.75rem;
  color: #555;
}

.revoke-btn {
  background: none;
  border: 1px solid #333;
  border-radius: 4px;
  color: #888;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.revoke-btn:hover {
  color: #e55;
  border-color: #e55;
}
