html,
body {
  height: 100%;
}

.form-signin {
  max-width: 530px;
  padding: 1rem;
}

.form-signin .form-floating:focus-within {
  z-index: 2;
}

.form-signin input[type="email"] {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.form-signin input[type="file"] {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

/* Beautiful Download Template Button */
.btn-download-template {
  position: relative;
  background: transparent;
  border: 1px solid #6c757d;
  color: #6c757d;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
}

.btn-download-template:hover {
  background: #6c757d;
  color: white;
  border-color: #6c757d;
  transform: none;
  box-shadow: none;
  text-decoration: none;
}

.btn-download-template:active {
  transform: none;
  box-shadow: none;
}

.btn-download-template .btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.btn-download-template .btn-text {
  font-size: 1rem;
  margin: 0 8px;
}

.btn-download-template .download-arrow {
  transition: none;
}

.btn-download-template:hover .download-arrow {
  transform: none;
}

.btn-download-template .btn-glow {
  display: none;
}

.btn-download-template:hover .btn-glow {
  display: none;
}

/* Task History Download Buttons */
.btn-download-task {
  position: relative;
  background: transparent;
  border: 1px solid #6c757d;
  color: #6c757d;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 400;
  font-size: 0.8rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-download-task:hover {
  background: #6c757d;
  color: white;
  border-color: #6c757d;
  transform: none;
  box-shadow: none;
  text-decoration: none;
}

.btn-download-task:active {
  transform: none;
  box-shadow: none;
}

.btn-download-task .btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.btn-download-task::before {
  display: none;
}

.btn-download-task:hover::before {
  display: none;
}

/* Dark theme adjustments for task download buttons */
[data-bs-theme="dark"] .btn-download-task {
  border-color: #adb5bd;
  color: #adb5bd;
}

[data-bs-theme="dark"] .btn-download-task:hover {
  background: #adb5bd;
  color: #212529;
  border-color: #adb5bd;
}

/* Dark theme adjustments */
[data-bs-theme="dark"] .btn-download-template {
  border-color: #adb5bd;
  color: #adb5bd;
}

[data-bs-theme="dark"] .btn-download-template:hover {
  background: #adb5bd;
  color: #212529;
  border-color: #adb5bd;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .btn-download-template {
    min-width: 180px;
    padding: 10px 20px;
  }
  
  .btn-download-template .btn-text {
    font-size: 0.9rem;
  }
  
  .btn-download-task {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}
