/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  font-family: 'Arial', sans-serif;
  background-color: #f5f5f5;
  color: #333;
  padding: 40px; /* Increased padding around the body */
  background-image: url('assets/background.jpg'); /* Background image */
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.logo {
  mask-image: radial-gradient(ellipse, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 70%);
}

/* Main Container Styling */
.container {
  max-width: 1200px; /* Increased width to accommodate both sections */
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.9); /* Slight opacity to blend with background */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 30px; /* Space between left and right sections */
}

/* File Manager (left side) */
.file-manager {
  width: 35%; /* Left section takes 35% of the container */
  padding: 20px;
  background-color: #fafafa;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

header {
  text-align: center;
  margin-bottom: 30px;
}

header h1 {
  font-size: 2.5em;
  color: #5f6368;
  margin-top: 1rem;
}

header p {
  font-size: 1.2em;
  color: #777;
}

/* Upload Section */
.upload-section {
  padding: 15px 20px;
  margin-top: 20px;
  background-color: #f7f7f7;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.upload-section h2 {
  margin-bottom: 10px;
}

.upload-section input[type="file"] {
  display: inline-block;
  margin-bottom: 15px;
  padding: 15px;
  background-color: #f2f2f2;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.upload-section button {
  padding: 12px 25px;
  background-color: #6c757d;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.upload-section button:hover {
  background-color: #565e64;
}

/* File Explorer (right side) */
.file-explorer {
  width: 60%; /* Right section */
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

/* Popup message styles */
.popup-info {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px;
  background-color: #333;
  color: white;
  border-radius: 5px;
  display: none;
  z-index: 1000;
}

.popup-success {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px;
  background-color: #4caf50;
  color: white;
  border-radius: 5px;
  display: none;
  z-index: 1000;
}

.popup-error {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px;
  background-color: #f44336;
  color: white;
  border-radius: 5px;
  display: none;
  z-index: 1000;
}

/* Progress bar container styles */
#progress-bar-container {
  left: 50%;
  -ms-transform: translateX(-50%) translateY(-50%);
  -webkit-transform: translate(-50%,-50%);
  transform: translate(-50%,-50%);
  width: 95%;
  background-color: rgba(243, 243, 243, 0.5);
  height: 16px; /* Make sure the container is tall enough */
  border-radius: 8px;
  display: none;  /* Initially hidden */
}

#progress-bar {
  height: 7px; /* Ensure the progress bar fills the container */
  background-color: #4caf50;
  margin-left: 8px;
  margin-right: 8px;
  margin-bottom: 3px;
  border-radius: 4px;
  width: 0%;
  transition: width 0.3s ease-in-out;
  display:inline-block;
}

ul {
  list-style-type: none;
  padding-left: 0;
}

li {
  cursor: pointer;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 5px;
  margin: 5px 0;
  display: flex;
  justify-content: space-between;
}

li:hover {
  background-color: #e9ecef;
}

li a {
  text-decoration: none;
}

.folder {
  font-weight: bold;
}

footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9em;
  color: #888;
}

/* Gradient Overlay for the background */
body::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.5));
  z-index: 0;
}