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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 600px;
  margin: 0 auto;
}

header {
  text-align: center;
  color: white;
  margin-bottom: 40px;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.tagline {
  opacity: 0.9;
  font-size: 1.1rem;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.card h2 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.file-input-wrapper {
  margin-bottom: 20px;
}

input[type="file"] {
  display: none;
}

.file-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  border: 2px dashed #667eea;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8f9ff;
}

.file-label:hover {
  background: #eef0ff;
  border-color: #764ba2;
}

.file-label.drag-over {
  background: #e7ebff;
  border-color: #4f5fd5;
  transform: scale(1.01);
}

.file-label .icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

#fileName {
  color: #666;
  text-align: center;
}

.code-input-wrapper {
  margin-bottom: 20px;
}

#accessCodeInput {
  width: 100%;
  padding: 15px;
  font-size: 1.5rem;
  text-align: center;
  letter-spacing: 8px;
  border: 2px solid #ddd;
  border-radius: 8px;
  text-transform: uppercase;
  font-weight: bold;
  transition: border-color 0.3s ease;
}

#accessCodeInput:focus {
  outline: none;
  border-color: #667eea;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: #f0f0f0;
  color: #333;
}

.btn-secondary:hover {
  background: #e0e0e0;
}

.btn-success {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  color: white;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(17, 153, 142, 0.4);
}

.result-box {
  background: #f8f9ff;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
}

.result-box h3 {
  color: #11998e;
  margin-bottom: 15px;
}

.access-code {
  background: white;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 15px;
}

.code-label {
  display: block;
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.code {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: #667eea;
  letter-spacing: 4px;
}

.file-info {
  color: #666;
  text-align: center;
  margin-bottom: 15px;
}

.instructions {
  color: #888;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 15px;
}

.error-box {
  background: #fff0f0;
  border: 1px solid #ffcccc;
  border-radius: 8px;
  padding: 15px;
  margin-top: 20px;
}

.error-box p {
  color: #cc0000;
  text-align: center;
}

.error-card {
  text-align: center;
}

.error-card h2 {
  color: #cc0000;
}

.error-message {
  color: #666;
  margin-bottom: 20px;
}

footer {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 30px;
  font-size: 0.9rem;
}

.hidden {
  display: none !important;
}

.icon {
  font-style: normal;
}
