body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f5f7fb;
  font-weight: 500;
}

.container {
  max-width: 720px;
  margin: auto;
  padding: 16px;
}

h2 {
  text-align: center;
}

.card {
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

.file-input {
  width: 100%;
  margin-bottom: 10px;
}

.btn-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* button {
  flex: 1;
} */

.btn {
  flex: 1;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  border: 0.6px solid #161515;
  transition: all 0.3s ease-in-out;
  min-height: 30px;
  padding: 6px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #000;
  font-weight: 600;
}

.btn:hover {
  background: #0d98d8;
  color: #fff;
  font-size: 15px;
  /* text-decoration: underline; */
}

.upload {
  /* background: none; */
  /* color: white; */
}

.pause {
  /* background: #ff9800;
  color: white; */
}

.resume {
  /* background: #2196f3;
  color: white; */
}

.cancel {
  /* background: #f44336;
  color: white; */
}

.progress {
  margin-top: 15px;
  height: 10px;
  background: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: #0d98d8;
  transition: width 0.6s;
  border-radius: 10px;
  animation: all 0.6s ease-in-out;
}

#status {
  margin-top: 10px;
  font-size: 14px;
  text-align: center;
}

.file-list ul {
  list-style: none;
  padding: 0;
}

.file-list li {
  background: #fafafa;
  margin-bottom: 8px;
  padding: 10px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.file-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.file-actions a,
.file-actions button {
  /* padding: 6px 10px; */
  /* font-size: 12px; */
  /* border-radius: 6px; */
  /* border: none; */
  /* cursor: pointer; */
}

/* .file-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  cursor: pointer;
} */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
/* 
.view {
  background: #2196f3;
  color: white;
}

.download {
  background: #4caf50;
  color: white;
}

.delete {
  background: #f44336;
  color: white;
}

.rename {
  background: #9c27b0;
  color: white;
} */

.drop-zone {
  border: 2px dashed #161515;
  padding: 30px;
  text-align: center;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s;
  background: #fafafa;
}

.drop-zone.dragover {
  border-color: #0d98d8;
  background: #e8f5e9;
}

.drop-zone p {
  margin: 5px 0;
  font-size: 14px;
}

/* 📱 Mobile tweaks */
@media (max-width: 480px) {
  button {
    font-size: 13px;
    padding: 10px;
  }

  h2 {
    font-size: 18px;
  }
}

/* Loader Styles */
.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0d98d8;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Three Dot Menu Styles */
.file-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-container {
  position: relative;
}

.three-dot-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 0 10px;
  color: #333;
}

.three-dot-btn:hover {
  color: #0d98d8;
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-radius: 6px;
  z-index: 10;
  overflow: hidden;
  flex-direction: column;
  min-width: 120px;
}

.dropdown-menu.show {
  display: flex;
}

.dropdown-item {
  background: none;
  border: none;
  padding: 10px 15px;
  text-align: left;
  cursor: pointer;
  width: 100%;
  font-size: 14px;
}

.dropdown-item:hover {
  background: #f0f0f0;
}

.dropdown-item.delete {
  color: #f44336;
}

/* Custom Modal/Toast */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  text-align: center;
  transform: translateY(-20px);
  transition: 0.3s;
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-title {
  margin-top: 0;
  font-size: 18px;
  color: #333;
}

.modal-input {
  width: calc(100% - 20px);
  padding: 10px;
  margin: 15px 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.modal-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
}

.modal-btn.cancel {
  background: #eee;
  color: #333;
}

.modal-btn.cancel:hover { background: #e0e0e0; }

.modal-btn.confirm {
  background: #0d98d8;
  color: #fff;
}

.modal-btn.confirm:hover { background: #0b80b6; }

.modal-btn.danger {
  background: #f44336;
  color: #fff;
}

.modal-btn.danger:hover { background: #d32f2f; }

/* Toast */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.toast {
  background: #333;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  font-size: 14px;
  animation: slideIn 0.3s ease-out;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.success { background: #4caf50; }
.toast.error { background: #f44336; }
.toast.info { background: #2196f3; }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes fadeOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(100%); }
}
