@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");
/* Global Styles */
body {
  font-family: 'Arial', sans-serif;
  background-color: #f5fdf6;
  margin: 0;
  padding: 0;
  height: 100vh;
}

/* Library Container */
.library-container {
  display: flex;
  width: 100%;
  height: 100%;
}

/* Sidebar */
.library-sidebar {
  width: 25%;
  background: #2ecc71;
  color: white;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.library-sidebar h2 {
  margin-bottom: 10px;
}

.library-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.library-sidebar li {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.library-sidebar li:hover, .library-sidebar li.active {
  background: #27ae60;
}

/* Main Library Section */
.library-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: white;
}
.mobile-nav {
  display: none;
}

/* Library Header */
.library-header {
  display: flex;
  flex-direction: column;
  padding-bottom: 10px;
  border-bottom: 2px solid #2ecc71;
}

.header-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.hamburger, .close-sidebar {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  display: none;
}

#search-input {
  padding: 8px;
  width: 250px;
  border: 1px solid #2ecc71;
  border-radius: 5px;
}

/* Library Items */
.library-items {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.library-item {
  padding: 15px;
  background: #ecf0f1;
  border-radius: 5px;
  text-align: center;
}

.library-item button {
  margin-top: 5px;
  padding: 5px;
  background: #2ecc71;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

.library-item button:hover {
  background: #27ae60;
}

/* Upload Section */
.upload-container {
  display: none; /* Initially hidden */
  background: #f4f4f4;
  padding: 15px;
  border-radius: 8px;
  margin-top: 10px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

#toggle-upload-btn {
  background: #2ecc71;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

#toggle-upload-btn:hover {
  background: darkgreen;
}

#upload-section {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin: 20px auto;
  max-width: 500px;
  text-align: center;
}

#upload-section h3 {
  color: #2ecc71;
  margin-bottom: 10px;
}

#upload-section input,
#upload-section select,
#upload-section button {
  width: 100%;
  padding: 10px;
  margin: 5px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}

#upload-section select {
  background-color: white;
  cursor: pointer;
}

#upload-section button {
  background-color: #2cb967;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

#upload-section button:hover {
  background-color: #1b4332;
}
.hamburger, .close-sidebar {
  display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .library-container {
    flex-direction: column;
  }

  .library-sidebar {
    width: 100%;
    height: auto;
    position: fixed;
    top: 0;
    left: 0;
    background: #2ecc71;
    padding: 10px;
    display: none; /* Initially hidden */
  }

  .library-sidebar.active {
    display: block;
  }

  .hamburger, .close-sidebar {
    display: block;
  }

  .close-sidebar {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
  }

  .library-items {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

@media (max-width: 600px) {
  .header-controls {
    flex-direction: column;
    align-items: stretch;
  }

  #search-input, #toggle-upload-btn {
    width: 100%;
    margin-top: 5px;
  }
}

@media (max-width: 480px) {
  .library-items {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}