/* Reset some default browser styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body styles */
body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
}

/* Headers */
h1 {
  text-align: center;
  margin-bottom: 30px;
  color: #34495e;
}

/* Forms */
.form-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
}

.form-inline input[type="text"],
.form-inline input[type="file"] {
  flex: 1;
  padding: 10px;
  font-size: 16px;
  margin-right: 10px;
  border: 1px solid #ccc;
}

.form-inline button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #5dade2;
  color: #fff;
  border: none;
  cursor: pointer;
}

.form-inline button:hover {
  background-color: #3498db;
}

/* Content */
.content ul {
  list-style-type: none;
  padding: 0;
}

.content li {
  padding: 12px 10px;
  background-color: #fff;
  margin-bottom: 8px;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
}

.content li:nth-child(even) {
  background-color: #f2f2f2;
}

.content li:hover {
  background-color: #e9f7fe;
}

.content a {
  color: #2980b9;
  text-decoration: none;
}

.content a:hover {
  text-decoration: underline;
}

/* Buttons */
.button {
  padding: 8px 12px;
  font-size: 14px;
  background-color: #e74c3c;
  color: #fff;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

.button:hover {
  background-color: #c0392b;
}

/* Alerts */
.alert {
  padding: 15px;
  background-color: #ffeb3b;
  color: #333;
  margin-bottom: 20px;
  border-radius: 4px;
}

/* Current Directory Path */
.current-path {
  font-size: 18px;
  margin-bottom: 15px;
  color: #2c3e50;
}

/* Back Button */
.back-button {
  margin-bottom: 20px;
}

.back-button button {
  padding: 10px 15px;
  font-size: 16px;
  background-color: #95a5a6;
  color: #fff;
  border: none;
  cursor: pointer;
}

.back-button button:hover {
  background-color: #7f8c8d;
}

/* Upload Queue */
.upload-queue {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  max-height: 80vh;
  overflow-y: auto;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px;
  z-index: 1000;
}

.upload-queue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.upload-queue-title {
  font-weight: bold;
  font-size: 16px;
  color: #333;
}

.upload-item {
  background-color: #f8f9fa;
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 10px;
  margin-bottom: 10px;
}

.file-name {
  font-size: 14px;
  margin-bottom: 8px;
  word-break: break-all;
}

/* Progress Bar */
.progress-bar {
  width: 100%;
  background-color: #f3f3f3;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 5px;
}

.progress-bar-fill {
  height: 15px;
  width: 0%;
  transition: width 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

/* Progress Bar Colors */
.progress-bar-fill.uploading {
  background-color: #f1c40f; /* Yellow */
}

.progress-bar-fill.completed {
  background-color: #4caf50; /* Green */
}

.progress-bar-fill.canceled {
  background-color: #f39c12; /* Orange */
}

.progress-bar-fill.error {
  background-color: #e74c3c; /* Red */
}

/* Upload Status */
.upload-status {
  margin-top: 5px;
  font-size: 14px;
}

/* Cancel Button */
.cancel-button {
  padding: 5px 10px;
  font-size: 12px;
  background-color: #e74c3c;
  color: #fff;
  border: none;
  cursor: pointer;
  margin-left: 10px;
}

.cancel-button:hover {
  background-color: #c0392b;
}


/* Clear Queue Button */
.clear-queue-button {
    padding: 10px 20px;
    font-size: 14px;
    background-color: #e67e22; /* Orange shade */
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  
  .clear-queue-button.hidden {
    opacity: 0;
    visibility: hidden;
    height: 0;
    padding: 0;
    margin: 0;
    border: none;
    cursor: default;
  }
  
  .clear-queue-button.visible {
    opacity: 1;
    visibility: visible;
  }
/* ... [Existing styles] ... */

/* Clear Queue Button */
.clear-queue-button {
  position: fixed;
  top: 20px;
  right: 330px;
  z-index: 1000;
}


/* Scrollbar Styles for Upload Queue */
.upload-queue::-webkit-scrollbar {
  width: 6px;
}

.upload-queue::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.upload-queue::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.upload-queue::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Adjust main content to not overlap with upload queue */
.content {
  margin-right: 320px;
}

/* Make it responsive */
@media (max-width: 768px) {
  .upload-queue {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    top: auto;
    width: 100%;
    max-height: 40vh;
    border-radius: 8px 8px 0 0;
  }

  .clear-queue-button {
    position: fixed;
    bottom: calc(40vh + 10px);
    right: 20px;
    top: auto;
  }

  .content {
    margin-right: 0;
    margin-bottom: 45vh;
  }
}

/* Icon Styles */
.icon {
  margin-right: 8px;
  font-size: 16px;
  vertical-align: middle;
}
.icon.folder {
    color: #f39c12; /* Orange for folders */
  }
  
  .icon.file {
    color: #3498db; /* Blue for files */
  }

  .s3-item {
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }
  
  .s3-item:hover {
    background-color: #f0f0f0;
  }

  /* File List Styles */
.file-list {
  list-style: none;
  padding: 0;
}

.file-list li {
  padding: 8px;
  margin: 4px 0;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.file-list li:hover {
  background-color: #f5f5f5;
}

.file-list a {
  text-decoration: none;
  color: inherit;
}

/* Icon Styles */
.fa-folder {
  color: #f8d775;
}

.fa-folder-open {
  color: #f8d775;
}

.fa-file {
  color: #8c939d;
}

.fa-file-pdf {
  color: #ff4444;
}

.fa-file-word {
  color: #2b579a;
}

.fa-file-excel {
  color: #217346;
}

.fa-file-powerpoint {
  color: #d24726;
}

.fa-file-code {
  color: #007acc;
}

.fa-file-archive {
  color: #f9a825;
}

.fa-file-alt {
  color: #607d8b;
}

.fa-file-video {
  color: #ff6d00;
}

.fa-file-audio {
  color: #7c4dff;
}

.fa-image {
  color: #26a69a;
}

/* Icon spacing */
.file-list i {
  margin-right: 8px;
  width: 20px;
  text-align: center;
}

/* Navigation styles */
.back-button button {
  margin: 10px 0;
  padding: 8px 16px;
  background-color: #f0f0f0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.back-button button:hover {
  background-color: #e0e0e0;
}

.back-button i {
  margin-right: 8px;
}

.current-path {
  color: #666;
  margin-bottom: 10px;
}

.current-path i {
  margin-right: 8px;
  color: #f8d775;
}