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

:root {
  --primary-color: #125dff;
  --primary-hover: #1d4ed8;
  --success-color: #16a34a;
  --error-color: #dc2626;
  --warning-color: #f59e0b;
  --text-color: black;
  --text-light: grey;
  --border-color: #e5e7eb;
  --bg-light: #f9fafb;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 1px 4px -1px rgba(0, 0, 0, 0.06);
}

body {
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: url("assets/pattern.png");
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

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

.card {
  background: white;
  padding: 1rem;
  border: 1px solid black;
}

/* ============================================
   HEADER
   ============================================ */

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  gap: 1rem;
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.student-info {
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.project-slug {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  font-size: 1rem;
  transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: var(--primary-color);
}

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

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  width: 100%;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-secondary:hover {
  border-color: var(--text-color);
  color: var(--text-color);
}

.btn-upload {
  margin-top: 1.5rem;
}

/* ============================================
   UPLOAD ZONE
   ============================================ */

.upload-zone {
  border: 1px dashed var(--border-color);
  border-radius: 11px;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: var(--bg-light);
  margin-bottom: 1rem;
}

.upload-zone:hover {
  border-color: var(--primary-color);
  background: #eff6ff;
}

.upload-zone.dragover {
  border-color: var(--primary-color);
  background: #eff6ff;
  transform: scale(1.02);
}

.upload-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.upload-text {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.upload-subtext {
  color: var(--text-light);
  font-size: 0.875rem;
}

.upload-limit {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ============================================
   FILE INFO
   ============================================ */

.file-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--bg-light);
  margin-bottom: 1rem;
}

#fileName {
  font-weight: 500;
  color: var(--text-color);
}

#fileSize {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* ============================================
   PROGRESS BAR
   ============================================ */

.progress {
  margin-top: 1.5rem;
  background: var(--bg-light);
  overflow: hidden;
  height: 3rem;
  position: relative;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), #3b82f6);
  transition: width 0.3s ease;
  width: 0%;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 600;
  color: var(--text-color);
  z-index: 1;
}

/* ============================================
   MESSAGES
   ============================================ */

.error-message,
.success-message {
  padding: 1rem;
  margin-top: 1rem;
  font-weight: 500;
}

.error-message {
  background: #fee2e2;
  color: var(--error-color);
  border: 1px solid #fca5a5;
}

.success-message {
  background: #d1fae5;
  color: var(--success-color);
  border: 1px solid #6ee7b7;
}

/* ============================================
   INFO SECTION
   ============================================ */

.info-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.info-section ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.info-section li {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

code {
  background: var(--bg-light);
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  font-family: monospace;
  color: var(--text-color);
}

.warning {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  padding: 1rem;
  color: #92400e;
  font-size: 0.875rem;
}

/* ============================================
   FILE TREE
   ============================================ */

.file-tree {
  background: var(--bg-light);
  padding: 1rem;
  max-height: 400px;
  overflow-y: auto;
  font-family: "Courier New", monospace;
  font-size: 0.875rem;
}

.tree-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tree-item {
  display: inline-block;
  padding: 0.125rem 0;
}

.btn-delete {
  background: #dc2626;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 1rem;
}

.btn-delete:hover {
  background: #991b1b;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 640px) {
  body {
    padding: 1rem;
  }

  .card {
    padding: 1.5rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.125rem;
  }

  .header {
    flex-direction: column;
  }

  .upload-zone {
    padding: 2rem 1rem;
  }

  .upload-icon {
    font-size: 2rem;
  }

  .file-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
