@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #0c0c0c;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container {
  text-align: center;
}

h1 {
  color: #f7dba7;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: #cda06a;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.input-box {
  position: relative;
  display: inline-block;
}

textarea {
  width: 420px;
  height: 100px;
  background-color: #2b2b2b;
  color: #ddd;
  border: none;
  border-radius: 10px;
  padding: 15px 60px 15px 15px;
  font-size: 1rem;
  resize: none;
  outline: none;
}

textarea::placeholder {
  color: #999;
}

.icons {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  display: flex;
  gap: 8px;
}

.icon-btn {
  background: none;
  border: none;
  color: #d8a55d;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.icon-btn:hover {
  color: #ffca7a;
  transform: scale(1.2);
}

/* Attachments section */
#attachments {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.file-box {
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f1c27d;
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
}

.file-icon {
  font-size: 1.5rem;
}

.file-info {
  text-align: left;
}

.file-name {
  font-weight: 600;
  color: #fff;
}

.file-size {
  font-size: 0.8rem;
  color: #b9b9b9;
}

.remove-file {
  background: none;
  border: none;
  color: #ff7777;
  font-size: 1rem;
  cursor: pointer;
  margin-left: 10px;
  transition: 0.2s;
}

.remove-file:hover {
  transform: scale(1.2);
}

.summarize-btn {
  display: block;
  margin: 30px auto 0;
  background-color: #e5b075;
  border: none;
  color: #fff;
  padding: 12px 40px;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.summarize-btn:hover {
  background-color: #f5c890;
  transform: translateY(-3px);
}


/* Popup modal styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-in-out;
}

.popup-box {
  background-color: #1a1a1a;
  color: #fff;
  padding: 25px;
  border-radius: 15px;
  width: 70%;
  max-width: 500px;
  box-shadow: 0 0 20px rgba(255, 215, 150, 0.3);
  text-align: center;
  animation: scaleUp 0.25s ease-in-out;
}

.popup-box h2 {
  color: #f5c890;
  margin-bottom: 15px;
}

.popup-text {
  font-size: 1rem;
  line-height: 1.5;
  color: #ddd;
  margin-bottom: 20px;
}

.close-popup {
  background-color: #e5b075;
  border: none;
  padding: 10px 25px;
  border-radius: 8px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.close-popup:hover {
  background-color: #f5c890;
  transform: translateY(-2px);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from { transform: scale(0.8); }
  to { transform: scale(1); }
}
