/* General Styles */

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f7fa;
  margin: 0;
  color: #333;
}

.container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Navbar */

.navbar {
  background: #3f51b5;
  color: white;
  padding: 0 30px;
  box-shadow: 0 2px 6px rgb(63 81 181 / 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 55px;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.6rem;
  color: white;
  text-decoration: none;
  letter-spacing: 1.1px;
  user-select: none;
}

.nav-links a {
  color: white;
  margin-left: 22px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background-color 0.25s ease;
}

.nav-links a:hover {
  background-color: rgba(255, 255, 255, 0.18);
}

/* Buttons */

.btn-primary {
  background-color: #3f51b5;
  border: none;
  color: white;
  padding: 12px 26px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.25s ease;
}

.btn-primary:hover {
  background-color: #2c387e;
}


/* Messages */

.upload-message {
  background-color: #d9eaff;
  border-left: 5px solid #3f51b5;
  color: #3f51b5;
  padding: 14px 20px;
  margin-bottom: 20px;
  border-radius: 6px;
  font-weight: 600;
}

.upload-message.error {
  background-color: #ffd6d6;
  border-left-color: #d32f2f;
  color: #d32f2f;
}

/* Upload Form */

.upload-form {
  background: white;
  padding: 32px 36px;
  border-radius: 12px;
  box-shadow: 0 3px 18px #cfd2f811;
  max-width: 500px;
  margin: 30px auto;
  text-align: center;
  font-weight: 600;
  color: #4048c9;
  user-select: none;
  cursor: pointer;
  transition: box-shadow 0.25s ease;
}

.upload-form:hover {
  box-shadow: 0 5px 24px #a4a8efcc;
}

.upload-form input[type="file"] {
  display: none;
}

/* Drag and Drop */

#drop-area {
  border: 2px dashed #3f51b5;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  color: #3f51b5;
  font-weight: 600;
  transition: background-color 0.3s ease;
  margin-bottom: 24px;
}

#drop-area.dragover {
  background-color: #e3e7fc;
  border-color: #2c387e;
}

/* Preview list */

#preview {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 20px;
}

.preview-item {
  border: 1px solid #b2b8ff;
  border-radius: 10px;
  padding: 12px;
  max-width: 130px;
  text-align: center;
  font-weight: 600;
  color: #4048c9;
  box-shadow: 0 1px 6px #b2b8ff99;
}

.preview-item img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 6px;
}

/* Downloads List */

.download-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 720px;
}

.download-list li {
  background: white;
  border-radius: 10px;
  margin-bottom: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px #cfd2f844;
  font-weight: 600;
  font-size: 1rem;
  color: #3f51b5;
  transition: background-color 0.25s ease;
  user-select: none;
}

.download-list li:hover {
  background-color: #f0f3ff;
}

.download-list li a {
  flex-grow: 1;
  color: #3f51b5;
  text-decoration: none;
  overflow-wrap: break-word;
}

.download-list li a:hover {
  text-decoration: underline;
}

.download-list li .file-size {
  margin-left: 12px;
  font-weight: 400;
  font-size: 0.875rem;
  color: #8086c8;
}


/* Login form */

.login-form {
  max-width: 360px;
  margin: 20px auto;
  background: white;
  padding: 28px 32px;
  border-radius: 12px;
  box-shadow: 0 3px 14px #cfd2f811;
  font-weight: 600;
  color: #4048c9;
}
.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  margin-top: 6px;
  margin-bottom: 18px;
  border-radius: 8px;
  border: 2px solid #4048c9;
  font-size: 16px;
  font-weight: 600;
  transition: border-color 0.25s ease;
}
.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
  outline: none;
  border-color: #5a6acb;
  box-shadow: 0 0 8px #7179f4cc;
}

/* Ensure body and html take full height */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Center the container horizontally (already done) and vertically */
.container {
  max-width: 900px;
  margin: 40px auto; /* horizontal centering */
  padding: 0 20px;

  /* For vertical centering, use flexbox on body */
  /* remove margin if vertically centered */
}

/* If you want vertical centering too, do this: */

body {
  display: flex;
  justify-content: center; /* horizontal centering */
  align-items: center;     /* vertical centering */
  min-height: 100vh;       /* full viewport height */
  padding: 20px;           /* optional padding around */
  box-sizing: border-box;
  flex-direction: column;  /* stack children vertically */
}

.container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}

.btn-delete {
  background-color: #990000 !important; 
  border: none;
  color: white;
  padding: 12px 26px;
  margin-left: 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.25s ease;
}

.btn-delete:hover {
  background-color: #800000;
}
