* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea, #764ba2);
  padding: 30px;
  color: #333;
}


/* Cards layout */
.cards-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 40px;
}

.card {
  position: relative;
  background: linear-gradient(135deg, #2c81f0, #6a5af9);
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  color: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* soft shadow */
  transition: all 0.4s ease; /* smooth hover effects */
  overflow: hidden;
  cursor: pointer;
}

.card:hover {transform: translateY(-10px) scale(1.03); /* subtle lift and scale */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); /* deeper shadow on hover */
  background: linear-gradient(135deg, #4facfe, #00f2fe); /* animated gradient on hover */}
  .card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
  transition: all 0.5s ease;
  transform: rotate(45deg);
}

.card:hover::before {
  transform: rotate(0deg);
}


.logo {
  width: 200px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 15px;
}

.card h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.card h3 {
  color: #555;
  margin-bottom: 10px;
}

.card p {
  font-size: 1rem;
  line-height: 1.5;
  color: #e0e0e0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background: #0077ff;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #005fd1;
}

.cancel {
  background: #999;
}

.cancel:hover {
  background: #777;
}

/* Floating add button */
.add-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #0077ff;
  color: #fff;
  font-size: 30px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.view-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #0077ff;
  color: #fff;
  font-size: 30px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Popup */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
}

.popup-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  width: 90%;
  max-width: 400px;
  padding: 25px;
  border-radius: 15px;
  display: none;
}

.popup-box h2 {
  margin-bottom: 15px;
}

.popup-box input,
.popup-box textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  outline: none;
}

.popup-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

/* Active popup */
.popup-overlay.active,
.popup-box.active {
  display: block;
}
/* COMMENTS SIDEBAR */
.comments-sidebar {
  position: fixed;
  right: -350px; /* hidden by default */
  top: 0;
  width: 350px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 8px rgba(0,0,0,0.2);
  transition: right 0.3s ease;
  padding: 20px;
  z-index: 1000;
}

.comments-sidebar.active {
  right: 0; /* slide in */
}

.comments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comments-list {
  margin-top: 20px;
  max-height: calc(100% - 60px);
  overflow-y: auto;
}

.comment-item {
  background: #f5f5f5;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 6px;
}
