.upload-card {
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* da vidjimo i ove a ce proradi */

.upload-card:hover {
  /* transform: translateY(-5px); */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-header {
  background-color: transparent;
  border-bottom: none;
  padding: 1.5rem 1rem;
  font-size: 1.25rem;
}

.drop-zone {
  border: 2px dashed #dee2e6;
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: #4caf50;
  background-color: rgba(76, 175, 80, 0.05);
}

.btn-browse {
  padding: 0.5rem 2rem;
  border-radius: 50px;
}

.selected-file {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 10px;
  margin-top: 1rem;
}

.form-floating > label {
  color: #6c757d;
}

.form-control,
.form-select {
  border-radius: 8px;
  border: 2px solid #dee2e6;
  padding: 1rem 0.75rem;
}

.form-control:focus,
.form-select:focus {
  border-color: #4caf50;
  box-shadow: 0 0 0 0.25rem rgba(76, 175, 80, 0.25);
}

#uploadButton {
  border-radius: 8px;
  background-color: #4caf50;
  border: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

#uploadButton:hover:not(:disabled) {
  background-color: #43a047;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

#uploadButton:disabled {
  background-color: #9e9e9e;
  opacity: 0.7;
}

.loading-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.selected-file {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 10px;
  margin-top: 1rem;
}

.image-preview {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  flex-shrink: 0;
}

.file-name {
  display: block;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#removeFile {
  opacity: 0.7;
  transition: opacity 0.2s;
}

#removeFile:hover {
  opacity: 1;
}

.btn-browse {
  position: relative;
  z-index: 2;
  cursor: pointer;
  padding: 12px 24px;
  font-weight: 500;
  margin: 10px 0;
  min-height: 44px; /* Minimum touch target size */
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .btn-browse {
    width: 80%; /* Wider on mobile */
    padding: 15px 24px;
    margin: 15px auto;
    font-size: 16px; /* Larger text on mobile */
  }

  /* Remove hover effects on mobile */
  .btn-browse:hover {
    transform: none !important;
    box-shadow: none !important;
  }
}

/* Prevent text selection */
.btn-browse {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  min-height: 44px;
}

.upload-another-btn {
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 10px;
  background: linear-gradient(145deg, #4caf50, #45a049);
  border: none;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
  transition: all 0.3s ease;
}

.upload-another-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
  background: linear-gradient(145deg, #45a049, #4caf50);
}

.upload-another-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(76, 175, 80, 0.2);
}

.upload-another-btn i {
  transition: transform 0.3s ease;
}

.upload-another-btn:hover i {
  transform: rotate(180deg);
}

@media (max-width: 576px) {
  .upload-another-btn {
    padding: 0.8rem;
    font-size: 1rem;
  }
}
