/* ===== GENERAL PAGE STYLING ===== */
body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(to bottom, #e0e7ff, #f5f5f5);
  margin: 0;
  padding: 0;
  color: #1e293b;
}

.container {
  max-width: 750px;
  background: #ffffff;
  margin: 50px auto;
  padding: 35px 40px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}

.container:hover {
  transform: translateY(-2px);
}

h1, h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #1e3a8a;
  font-weight: 700;
}

h3 {
  color: #334155;
  margin-bottom: 15px;
}

/* ===== FORM STYLING ===== */

.input-section {
  background: linear-gradient(145deg, #ffffff, #f3f6ff);
  padding: 30px 25px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.3s ease;
}

.input-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

.input-section h3 {
  font-size: 20px;
  color: #1e3a8a;
  margin-bottom: 15px;
  font-weight: 700;
  text-align: center;
}

label {
  font-size: 14px;
  color: #475569;
  font-weight: 500;
}


input, textarea, select {
  width: 90%;
  padding: 14px 18px;
  border-radius: 14px;          /* Rounded corners */
  border: 1px solid #cbd5e1;    /* Light gray border */
  background: #f8fafc;           /* Soft background */
  font-size: 15px;
  color: #1e293b;
  transition: all 0.25s ease;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.03);
}

input:hover, textarea:hover, select:hover {
  border-color: #93c5fd; /* Light blue */
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.05);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #2a7bff;
  box-shadow: 0 0 10px rgba(42,123,255,0.2);
  background: #ffffff;
}

::placeholder {
  color: #94a3b8;
  font-style: italic;
}

textarea {
  min-height: 50px;
  resize: vertical;
}

button#addBtn {
  padding: 14px 24px;
  background: linear-gradient(135deg, #2a7bff, #3b82f6);
  color: #ffffff;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: center;
  margin-top: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

button#addBtn:hover {
  background: linear-gradient(135deg, #1b57c9, #2563eb);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

@media (max-width: 600px) {
  .input-section {
    padding: 25px 20px;
    gap: 15px;
  }

  button#addBtn {
    width: 100%;
  }
}

/* ===== ACTIVITY LIST ===== */

#activityList {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.activity-item {
  background: linear-gradient(135deg, #ffffff, #f1f5ff);
  border: 1px solid #e2e8f0;
  border-left: 6px solid #2a7bff;
  border-radius: 18px;
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.activity-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.activity-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.activity-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.activity-header i {
  font-size: 22px;
  color: #2852ff;
}

.activity-title {
  font-size: 18px;
  font-weight: 700;
  color: #1e3a8a;
}

.activity-meta {
  font-size: 14px;
  color: #475569;
  line-height: 1.4;
}

.item-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #869fc3;
}

.item-buttons button {
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

.item-buttons button:hover {
  transform: scale(1.08);
}



/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .input-section {
    padding: 20px;
  }

  .activity-item {
    padding: 15px 18px;
  }

  .item-buttons {
    flex-direction: column;
  }
}

/* ===== MODAL ===== */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
}

.modal-content {
  background-color: #fff;
  margin: 80px auto;
  padding: 25px 30px;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-content h3 {
  margin-top: 0;
  color: #1e3a8a;
}

.modal-content input,
.modal-content select,
.modal-content textarea {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 15px;
}

.modal-content button {
  margin-top: 10px;
  background: #2a7bff;
  color: #fff;
  padding: 12px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-content button:hover {
  background: #1b57c9;
}

.modal .close {
  color: #475569;
  font-size: 22px;
  font-weight: bold;
  position: absolute;
  right: 20px;
  top: 15px;
  cursor: pointer;
}

.modal .close:hover {
  color: #000;
}


