:root {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #111826;
  background: #f3f5f9;
}

* {
  box-sizing: border-box;
}

body,
html {
  margin: 0;
  min-height: 100vh;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.container {
  width: min(480px, 100%);
}

.panel {
  background: #fff;
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 24px 60px rgba(15, 34, 58, 0.12);
}

h1 {
  margin-top: 0;
  font-size: 1.75rem;
}

.muted {
  color: #5f6b7c;
  margin-bottom: 1.5rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label {
  font-weight: 600;
  font-size: 0.95rem;
}

select,
button {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid #cfd8e3;
  font-size: 1rem;
}

select:focus {
  outline: 2px solid #2563eb33;
}

button {
  border: none;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

button:disabled {
  background: #93a5c6;
  cursor: not-allowed;
}

button:not(:disabled):hover {
  background: #1f4fd7;
}

.dropzone {
  border: 2px dashed #cfd8e3;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  color: #5f6b7c;
  cursor: pointer;
  transition: border 0.2s ease, background 0.2s ease;
}

.dropzone.dragover {
  border-color: #2563eb;
  background: #eff4ff;
}

#status {
  margin-top: 1.5rem;
  min-height: 1.5rem;
  font-size: 0.95rem;
}

.status-success {
  color: #0f9d58;
}

.status-error {
  color: #d93025;
}

/* Tab Navigation */
.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.25rem;
  background: #f1f5f9;
  border-radius: 10px;
}

.tab {
  flex: 1;
  padding: 0.6rem 1rem;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.tab:hover {
  color: #334155;
  background: rgba(255, 255, 255, 0.5);
}

.tab.active {
  color: #1e40af;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tab:focus {
  outline: 2px solid #2563eb33;
  outline-offset: 1px;
}

/* Tab Content */
.tab-content[hidden] {
  display: none;
}

/* File List */
.file-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
  max-height: 200px;
  overflow-y: auto;
}

.file-list:empty {
  display: none;
}

.file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.file-list li:last-child {
  margin-bottom: 0;
}

.file-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 0.5rem;
}

.file-size {
  color: #5f6b7c;
  font-size: 0.8rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.file-remove {
  background: none;
  border: none;
  color: #d93025;
  cursor: pointer;
  padding: 0.25rem;
  font-size: 1.1rem;
  line-height: 1;
  border-radius: 4px;
  transition: background 0.2s ease;
  flex-shrink: 0;
  width: auto;
}

.file-remove:hover {
  background: #fee2e2;
}

/* Password input styling */
input[type="password"] {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid #cfd8e3;
  font-size: 1rem;
}

input[type="password"]:focus {
  outline: 2px solid #2563eb33;
  border-color: #2563eb;
}
