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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  background: #f5f7fa;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
}

.container {
  width: 100%;
  max-width: 640px;
}

h1 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: #1a73e8;
}

.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

/* Auth section */
.auth-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.95rem;
}

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

.btn-row {
  display: flex;
  gap: 0.5rem;
}

button {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

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

.btn-primary:hover:not(:disabled) {
  background: #1558b0;
}

.btn-secondary {
  background: #e8eaed;
  color: #333;
  flex: 1;
}

.btn-secondary:hover:not(:disabled) {
  background: #d2d5d9;
}

.btn-danger {
  background: #ea4335;
  color: #fff;
}

.btn-danger:hover:not(:disabled) {
  background: #c5221f;
}

.btn-small {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
}

/* Upload area */
.upload-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.upload-group input[type="file"] {
  flex: 1;
  font-size: 0.9rem;
}

/* Header bar */
.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.header-bar .user-email {
  font-size: 0.85rem;
  color: #666;
}

/* File table */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th {
  text-align: left;
  padding: 0.5rem;
  border-bottom: 2px solid #e8eaed;
  font-weight: 600;
  color: #555;
}

td {
  padding: 0.5rem;
  border-bottom: 1px solid #f0f0f0;
}

tr:hover td {
  background: #fafbfc;
}

.empty-state {
  text-align: center;
  padding: 2rem;
  color: #999;
}

/* Messages */
.message {
  padding: 0.6rem 0.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  display: none;
}

.message.error {
  background: #fce8e6;
  color: #c5221f;
}

.message.success {
  background: #e6f4ea;
  color: #137333;
}

.hidden {
  display: none !important;
}
