/* General Styles */
body {
  font-family: Arial, sans-serif;
}

.container {
  display: flex;
  gap: 20px;
  width: 100%;
}

/* Form Styles */
#notification-form {
  border: 1px solid #ccc;
  padding: 20px;
  width: 300px;
  flex: 1;
  border-radius: 10px;
}

#notification-form h2 {
  margin-top: 0;
}

#notification-message {
  width: 100%;
  height: 100px;
  margin-bottom: 10px;
  resize: none;
  border-radius: 5px;
}

#notification-type {
  width: 100%;
  margin-bottom: 10px;
  border-radius: 5px;
}

#send-notification-btn {
  width: 100%;
  padding: 10px;
  background-color: #4caf50;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

#send-notification-btn:hover {
  background-color: #45a049;
}

/* Feed Styles */
#notification-feed {
  border: 2px solid thistle;
  height: 400px;
  overflow-y: auto;
  width: 300px;
  padding: 10px;
  flex: 1;
  border-radius: 10px;
}

.notification-card {
  margin-bottom: 10px;
  height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-left: 5px;
}

.notification-message {
  font-size: 14px;
}

.notification-timestamp {
  font-size: 12px;
  color: #555;
}

/* Background colors based on type */
.alert {
  background-color: #ffcccb;
}

.info {
  background-color: #add8e6;
}

.success {
  background-color: #90ee90;
}

/* Responsive Layout */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  #notification-form,
  #notification-feed {
    width: 90%;
    flex: none;
  }
}
