/* ===== General ===== */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f5f5f5;
}

h2 {
  margin-top: 0;
}

/* ===== Login Section ===== */
#loginSection {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

/* ===== App Section ===== */
#appSection {
  position: relative;
  padding: 20px;
}

.header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

/* ===== Buttons ===== */
#createBtn, #uploadBtn, #logoutBtn {
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.2s;
}

#createBtn, #uploadBtn {
  background-color: #007bff;
  color: white;
}

#createBtn:hover, #uploadBtn:hover {
  background-color: #0056b3;
}

#logoutBtn {
  background-color: #dc3545;
  color: white;
}

#logoutBtn:hover {
  background-color: #c82333;
}

/* ===== Modal ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  position: relative;
}

.close-btn {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-btn:hover {
  color: #000;
}

/* ===== Drop Zone ===== */
.drop-zone {
  border: 2px dashed #ccc;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  border-radius: 10px;
  margin-bottom: 10px;
  background: #fafafa;
  transition: border-color 0.2s, background-color 0.2s;
}

.drop-zone.dragover {
  border-color: #007bff;
  background-color: #e7f0ff;
}

/* ===== Progress Bar ===== */
.progress-container {
  margin-top: 15px;
  width: 100%;
}

.progress-background {
  width: 100%;
  height: 20px;
  background: #eee;
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: #28a745;
  border-radius: 10px;
  transition: width 0.2s;
}

.progress-text {
  display: inline-block;
  margin-top: 5px;
}

/* ===== Output and Dashboard ===== */
#output {
  margin-top: 10px;
  color: #333;
}

#dashboard {
  margin-top: 20px;
}

#fileList {
  list-style: none;
  padding: 0;
}

#fileList li {
  margin: 5px 0;
}


#creditsDisplay {
  position: absolute;
  top: 20px;
  right: 20px;
  font-weight: bold;
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
