/* CSS Variables */
:root {
  --font-family-main: "Manrope", serif;
  --font-color-light: #fff;
  --font-color-dark: #010101;
  --accent-color: #ff302e;
  --accent-color-hover: #d62822;
  --background-color-dark: #010101;
  --border-radius: 30px;
  --button-padding: 6px 30px;
  --main-padding: 30px;
}

/* Global Styles */
html, body {
  height: 100%;
  margin: 0;
}
body {
  display: flex;
  flex-direction: column;
  font-family: var(--font-family-main);
  margin: 0;
  padding: 0;
  font-size: 14px; /* Default font size */
  color: var(--font-color-dark);
}

@media (min-device-width: 260px) {
  body {
    max-width: 400px;
    margin: auto;
    font-size: 13px; /* Adjust font size for smaller devices */
  }
}

/* Header Styles */
.header {
  background-color: var(--background-color-dark);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  padding: 10px 5px;
}

.welcome-user-text {
  color: var(--font-color-light);
}

.welcome-user-text span {
  font-weight: 700;
}

.logo-wrapper {
  display: flex;
  justify-content: flex-end;
}

.logo-wrapper img {
  max-width: 50px;
}

/* Section Styles */
.section {
  padding: var(--main-padding) 0;
}

.heading2 {
  font-size: 20px;
}
.heading3 {
  font-size: 18px;
}

.cta-section h4 {
  font-size: 18px;
  text-align: center;
}

.ai-gallery-cta h2 {
  font-size: 20px;
  font-weight: 700;
}

/* Button Styles */
.btn-site {
  background-color: var(--accent-color);
  color: var(--font-color-light);
  border-radius: var(--border-radius);
  padding: var(--button-padding);
  display: inline-block;
  text-align: center;
  transition: background-color 0.3s ease;
}

.btn-site:hover {
  background-color: var(--accent-color-hover);
}

.btn-back {
  background-color: #ff302e;
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 6px 15px;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease;
  width: 40px;
  height: 40px;
  justify-content: center;
}

.btn-back:hover {
  background-color: #e02624;
}

.btn-back i {
  font-size: 16px;
}


/* Event Details Styles */
.event-details {
  border: 1px solid #eee;
  border-radius: var(--border-radius);
  padding: 20px;
}

.event-details h2 {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

.event-details .col-6 {
  text-align: center;
}

/* Navigation Styles */
.nav-box a {
  text-decoration: none;
  color: var(--accent-color);
  display: block;
  text-align: center;
  transition: color 0.2s ease-in;
}

.nav-box a:hover {
  color: var(--accent-color-hover);
}

.nav-box a img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.nav-box a span {
  margin-top: 5px;
  font-weight: 700;
  font-size: 14px;
  display: block;
}

/* Main Section */
main {
  flex: 1;
  padding-bottom: 30px;
}

/* Footer Styles */
.footer {
  background-color: var(--background-color-dark);
  padding: 15px 10px;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  width: 100%;
  position: relative; /* This keeps it in the normal flow */
  margin-top: auto; /* Push it to the bottom if there's less content */
}

.footer-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.footer-menu ul li a {
  color: var(--font-color-light);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: all 0.2s ease-in;
}

.footer-menu ul li a i {
  font-size: 16px;
}

.footer-menu ul li a:hover {
  color: var(--accent-color);
}

.footer-menu ul li a span {
  display: block;
  font-size: 12px;
}

/***************************************
# Agenda Page
***************************************/
.agenda-item{
  padding-top: 20px;
  border-bottom: 1px solid #eee;
}
.agenda-item h4{
  font-size: 18px;
}


/********************************************
# Infromation page
*******************************************/
.information-page .nav-tabs .nav-link {
  color: #333;
  border: 1px solid transparent;
  border-radius: 0;
}

.information-page .nav-tabs .nav-link.active {
  color: #fff;
  background-color: #ff302e;
  border-color: #ff302e;
}

.information-page .tab-pane {
  padding: 20px 0;
}

.information-page .card-title {
  font-size: 20px;
  font-weight: bold;
}

.information-page .accordion-button {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.information-page .accordion-button:not(.collapsed) {
  background-color: #f8f9fa;
  color: #ff302e;
  border-color: #ff302e;
}

.information-page .accordion-body {
  font-size: 14px;
  color: #555;
}

.information-page .accordion-item {
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 10px;
}

/************************************
# Helpline Page
************************************/
.helpline-page .card {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.helpline-page .card-img-top {
  height: 200px;
  object-fit: cover;
}

.helpline-page .card-title {
  font-size: 18px;
  font-weight: bold;
}

.helpline-page .card-text {
  font-size: 14px;
  color: #555;
}

.helpline-page .btn {
  font-size: 14px;
  padding: 8px 15px;
  border-radius: 20px;
}


/**********************************
# Networking Page
*********************************/
.network-page .user-list {
  max-height: 300px;
  overflow-y: auto;
}

.network-page .user-item {
  transition: all 0.3s ease-in-out;
}

.network-page .user-item:hover {
  background-color: #f8f9fa;
}

.network-page .chat-box {
  max-height: 400px;
  overflow-y: auto;
}

.network-page .chat-body {
  max-height: 250px;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  padding: 10px;
  border-radius: 5px;
  background: #f9f9f9;
}

.network-page .sent-message {
  text-align: right;
  background-color: #d1e7dd;
  padding: 5px 10px;
  border-radius: 15px;
  display: inline-block;
  max-width: 80%;
}

.network-page .received-message {
  text-align: left;
  background-color: #f8d7da;
  padding: 5px 10px;
  border-radius: 15px;
  display: inline-block;
  max-width: 80%;
}
.chat-body {
  max-width: 600px;
  margin: auto;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.message {
  display: flex;
  margin-bottom: 15px;
}

.message-body {
  display: flex;
  align-items: center;
  gap: 10px;
}

.left-message {
  justify-content: flex-start;
}

.right-message {
  justify-content: flex-end;
}

.message-body .avatar-initials {
  background-color: #007bff;
  color: white;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-weight: bold;
}

.message-text {
  padding: 10px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 0px;
}

.left-message .message-text {
  background-color: #e9ecef;
  color: #333;
}

.right-message .message-text {
  background-color: #007bff;
  color: white;
}

.message-date {
    font-size: 12px;
    color: gray;
    margin-top: 5px;
    margin-bottom: 0px;
}
.left-message .message-date{
  text-align: left;
}

.right-message .message-date{
  text-align: right;
}



/*******************************
# Timeline page
******************************/
.timeline-page {
  padding: 20px;
}

.timeline-page .section-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

.timeline-page .timeline-posts {
  display: flex;
  flex-direction: column;
}

.timeline-page .post-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 15px;
}

.timeline-page .card-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.timeline-page .post-user-name {
  font-weight: bold;
}

.timeline-page .post-date {
  font-size: 12px;
  color: #777;
  margin: 0;
}

.timeline-page .card-body {
  margin-bottom: 10px;
}

.timeline-page .card-body .post-hashtags {
  font-size: 14px;
  color: #007bff;
}

.timeline-page .card-footer {
  display: flex;
  justify-content: space-between;
}

.timeline-page .btn-action {
  font-size: 14px;
  padding: 8px 15px;
}

.timeline-page .btn-share {
  background-color: #28a745;
  color: white;
}

.timeline-page .btn-like {
  background-color: #ff302e;
  color: white;
}

.timeline-page .btn-comment {
  background-color: #007bff;
  color: white;
}

.timeline-page .btn-floating {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #ff302e;
  border-radius: 50%;
  padding: 15px;
  color: white;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: none;
}

.timeline-page .btn-floating:hover {
  background-color: #e62928;
}

/* Modal Styles */
.modal-dialog-centered {
  max-width: 500px;
  margin: 30px auto;
}

.modal-body textarea {
  resize: none;
}

.modal-footer {
  padding: 15px;
}

/* Adjustments for Mobile */
@media (max-width: 576px) {
  .timeline-page .post-card {
      padding: 10px;
  }

  .timeline-page .btn-action {
      font-size: 12px;
      padding: 6px 10px;
  }
}

#loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5); /* semi-transparent background */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999; /* Ensure it's above other content */
}

.spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#loader p {
  color: #fff;
  font-size: 18px;
  margin-top: 10px;
}




/*********************************
# Notification page
*********************************/
.notifications-page {
  padding: 20px;
  background-color: #f9f9f9;
}

.notifications-page .section-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
}

.notifications-page .notification-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.notifications-page .notification-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 15px;
  border-left: 5px solid #007bff;
}

.notifications-page .notification-title {
  font-size: 16px;
  font-weight: bold;
  color: #007bff;
}

.notifications-page .notification-time {
  font-size: 12px;
  color: #777;
}

.notifications-page .notification-description {
  font-size: 14px;
  color: #555;
  margin: 10px 0;
}

.notifications-page .btn-sm {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 5px;
  text-transform: uppercase;
}

/****************************************
# Profile page
****************************************/
.profile-page {
  padding: 20px;
}
.profile-page .section-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
}
.profile-header {
  margin-top: 20px;
}

.profile-header .profile-image img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 3px solid #007bff;
  padding: 5px;
}

.profile-header .profile-name {
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

.profile-header .profile-email,
.profile-header .profile-mobile {
  font-size: 14px;
  color: #777;
}

.action-buttons .btn {
  width: 90%;
  margin: auto;
  display: block;
}

.modal-content {
  border-radius: 10px;
}

.modal-body .form-label {
  font-weight: bold;
  color: #555;
}



@media (min-device-width: 260px) and (max-device-width: 1920px) and (orientation: landscape) {
  /* You can add specific styles for landscape mode here */
}
