* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Layout Styles */
.row {
  padding: 1%;
  text-align: center;
}

.top-row,
.bottom-row {
  background-color: #f4f4f4;
  height: 1%;
  font-size: x-small;
  text-align: center;
  padding: 1%;
}

.middle {
  padding: 1%;
  display: flex;
  flex: 1;
}

.leftColumn,
.centralColumn,
.rightColumn {
  flex: 1;
  padding: 1%;
  text-align: center;
  background-color: #e0e0e0;
  border: 1px solid #ccc;
}

.centralColumn {
  width: 50%;
}

.rightColumn {
  width: 25%;
}

.column:not(:last-child) {
  margin-right: 10px;
}

/* Table Styles */
.TableColumn {
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 15px;
  flex: 1;
  padding: 1%;
  width: 100%;
  text-align: center;
  background-color: #e0e0e0;
  border: 1px solid #ccc;
  min-width: 800px;
}

table {
  white-space: nowrap;
  font-size: small;
  border-collapse: collapse;
  background-color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  table-layout: auto;
  width: auto;
  min-width: 100%;
  height: 100%;
}

th,
td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #4caf50;
  color: white;
  cursor: default; /* Default cursor for non-sortable headers */
}

th.sortable {
  cursor: pointer; /* Pointer cursor for sortable headers */
}

th.sortable.asc::after {
  content: " ▲"; /* Up arrow for ascending sort */
  font-size: 0.8em;
}

th.sortable.desc::after {
  content: " ▼"; /* Down arrow for descending sort */
  font-size: 0.8em;
}

tr:hover {
  background-color: #f1f1f1;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Button Styles */
.export-button,
.publish-button {
  margin: 10px;
  padding: 10px 20px;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: small;
}

.export-button {
  background-color: #4caf50;
}

.export-button:hover {
  background-color: #45a049;
}

.publish-button {
  background-color: #0073e6;
}

.publish-button:hover {
  background-color: #005bb5;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background-color: #ffffff;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #ccc;
  width: 40%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  font-family: Arial, sans-serif;
}

.modal-content h3 {
  font-size: 1.5em;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

.modal-content label {
  display: block;
  font-size: 1em;
  color: #555;
  margin-bottom: 5px;
}

.modal-content input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
}

.modal-content button[type="submit"] {
  width: 100%;
  padding: 10px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
}

.modal-content button[type="submit"]:hover {
  background-color: #45a049;
}

.close {
  color: #aaa;
  float: right;
  font-size: 1.5em;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
}

/* RSS Feed Styles */
.rss-feed-container {
  width: 100%;
  max-width: 100%;
  margin: auto;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  height: 400px;
  overflow-y: auto;
}

.rss-feed-container h2 {
  font-size: medium;
  color: #333;
  text-align: left;
  margin: 15px 0;
  font-weight: bold;
}

.rss-feed-container ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rss-feed-container ul li {
  padding: 15px;
  border-bottom: 1px solid #ddd;
  transition: background 0.3s;
}

.rss-feed-container ul li:hover {
  background: #f1f1f1;
}

.rss-feed-container ul li a {
  text-decoration: none;
  font-size: small;
  font-weight: bold;
  color: #0073e6;
  transition: color 0.3s;
}

.rss-feed-container ul li a:hover {
  color: #ff6600;
}

.rss-feed-container .rss-date {
  font-size: small;
  color: #777;
  display: block;
  margin-top: 5px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .middle {
    flex-direction: column;
  }

  .leftColumn,
  .centralColumn,
  .rightColumn {
    width: 100%;
    margin-bottom: 10px;
  }

  .rightColumn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .TableColumn {
    min-width: 100%;
    padding: 2%;
  }

  table {
    font-size: smaller;
  }

  th,
  td {
    padding: 8px;
  }
}

@media (max-width: 600px) {
  .rss-feed-container {
    padding: 10px;
  }

  .rss-feed-container h2 {
    font-size: small;
  }

  .rss-feed-container ul li a {
    font-size: smaller;
  }

  .top-row,
  .bottom-row {
    font-size: x-small;
  }
}
