.page-content {
    padding: 40px 40px 0 40px; /* top, right, bottom, left */
  }

body {
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background-color: #f7f7ff;
    color: #333;
    margin: 20;
    padding: 20;
}

header, footer {
    background-color: #ffd166;
    padding: 20px;
    text-align: center;
    font-size: 1.5em;
}

a, button {
    background-color: #066950;
    color: white;
    border: none;
    padding: 1px 15px;
    margin: 3px;
    border-radius: 9px;
    text-decoration: none;
    font-size: 1em;
}

a:hover, button:hover {
    background-color: #118ab2;
    cursor: pointer;
}

input[type="text"], textarea {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-top: 5px;
}

form {
    margin-top: 10px;
}

.post-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.unread {
    font-weight: bold;
    background-color: #f8f9fa;
}

.notification-badge {
    background-color: #ef476f;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    margin-left: 5px;
}

img.subcale-banner {
    display: block;
    margin: 20px auto;       /* centers the image */
    width: 80%;              /* scales the image width */
    max-width: 300px;        /* optional: max width cap */
    height: auto;            /* keeps aspect ratio */
    border-radius: 16px;     /* optional: rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* optional: subtle shadow */
}

.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}


.user-card {
    text-align: center;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
}

.user-card h3 {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.calengineer-banner {
    width: 250px;
    height: 400px;
    object-fit: cover;
    display: block;
    margin: 0 auto 10px auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.send-btn {
    background-color: #06d6a0;
    padding: 5px 12px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    display: inline-block;
    margin-top: 5px;
}


#chat-box {
    max-width: 500px;
    margin: 20px auto;
    border: 2px solid #ccc;
    border-radius: 10px;
    padding: 10px;
    background-color: #fff;
    font-family: 'Quicksand', sans-serif;
}

#messages {
    height: 300px;
    overflow-y: auto;
    border: 1px solid #eee;
    padding: 10px;
    background-color: #f9f9f9;
    margin-bottom: 10px;
    border-radius: 5px;
}

#messages div {
    margin-bottom: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    max-width: 80%;
    word-wrap: break-word;
}

/* Remove nth-child styling for messages to avoid alignment by DOM position */

.sender-message {
    text-align: right;
    background-color: #a3d5f7; /* light blue for sender */
    margin: 5px 0;
    padding: 8px;
    border-radius: 10px;
    display: block;
    max-width: 70%;
    align-self: flex-end;
    color: black;
}

.receiver-message {
    text-align: left;
    background-color: #f4a261; /* orange for receiver */
    margin: 5px 0;
    padding: 8px;
    border-radius: 10px;
    display: block;
    max-width: 70%;
    align-self: flex-start;
    color: black;
}

#msg-input {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    resize: none;
    margin-bottom: 5px;
    font-size: 1em;
}

#chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

#user-select {
    flex-grow: 1;
    padding: 6px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1em;
}

button {
    padding: 8px 16px;
    background-color: #066950;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.selected-user {
    background-color: #d0f0ff;
    font-weight: bold;
    border-radius: 4px;
  }

button:hover {
    background-color: #05523e;
}
.chat-user {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
  }
  
  .status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
  }
  
  .status-online {
    background-color: green !important;
  }
  
  .status-recently-online {
    background-color: orange !important;
  }
  
  .status-offline {
    background-color: red !important;
  }
  
  .username {
    font-weight: 500;
  }

  .subcale-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr; /* 3-column layout */
  gap: 30px;
  align-items: start;
  justify-items: center;
  margin-bottom: 30px;
  }

.subcale-grid img {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 8px;
  padding: 20 20px;
}

.subcale-text {
  white-space: pre-wrap;
  font-size: 1.2em;
  line-height: 1.5;
  max-width: 350px;
  text-align: left;
}

.subcale-text2 {
  white-space: pre-wrap;
  font-size: 1.2em;
  line-height: 1.5;
  max-width: 500px;
  text-align: left;
}

ul li {
  margin-bottom: 5px; /* adjust this value as needed */
}

.tidy-blocks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
}

.translated {
  font-style: italic;
  color: gray;
  margin-top: 4px;
}