@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-container {
  position: relative;
  flex-grow: 1;
  max-width: 500px;
}

.search-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}

#search-input {
  padding: 12px 40px 12px 15px;
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius);
  font-size: 0.95rem;
  transition: var(--transition);
}

#search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}



/* 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));
  }
}
.summarize-container {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: #f9f9f9;
}

#summary-result {
  margin-top: 10px;
}
.summarize-container {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
  text-align: center;
}

#pdf-file {
  display: block;
  margin: 10px auto;
}

#summarize-btn {
  background: #2ecc71;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

#summarize-btn:hover {
  background: #1b4332;
}

.summary-box {
  background: #ffffff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  text-align: left;
  margin-top: 15px;
  line-height: 1.6;
  font-size: 16px;
}

.summary-box strong {
  color: #007bff;
}

.summary-box br {
  content: "";
  display: block;
  margin-bottom: 8px;
}
body {
  font-family: Arial, sans-serif;
  background-color: #e8f5e9; /* Light green */
  color: #2e7d32;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

h1, h2, h3 {
  color: #1b5e20;
}

/* Buttons */
button {
  background-color: #2e7d32;
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 5px;
}

button:hover {
  background-color: #1b5e20;
}

.download-btn {
  background-color: #4caf50;
}

.preview-btn {
  background-color: #66bb6a;
}

/* Library Items */
.library-item {
  background-color: white;
  padding: 15px;
  margin: 10px 0;
  border-left: 5px solid #2e7d32;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

/* Summary Box */
.summary-container {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  margin-top: 20px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.summary-text {
  font-size: 16px;
  color: white;
  line-height: 1.6;
}

.error-text {
  color: red;
}

/* PDF Preview */
.preview-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.preview-frame {
  width: 80%;
  height: 80%;
  border: none;
}

.close-preview {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 20px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}
/* PDF File Upload Styling */
.file-upload-container {
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
}

.file-label {
  background-color: #2e7d32;
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.file-label:hover {
  background-color: #1b5e20;
}

#pdf-file {
  display: none;
}

.file-name {
  font-size: 14px;
  color: #2e7d32;
  font-weight: bold;
}
#summary-result {
    background-color: #f1f8e9; /* Light green background */
    color: black; /* Change text color to black */
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.6;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}

