/* General */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");
/* Global safety */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
body {
    font-family: "Poppins", sans-serif;
}
img,
video,
iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

input,
select,
textarea,
button {
  max-width: 100%;
  font: inherit;
}

.card,
.update-card,
.file-card,
.post-card,
.long-card,
.comment-section,
.chat-container,
.chat-sidebar,
.chat-main,
.sidebar,
.main-content {
  max-width: 100%;
  min-width: 0;
}

.card *,
.update-card *,
.file-card *,
.post-card *,
.long-card *,
.comment-section *,
.chat-container *,
.chat-sidebar *,
.chat-main *,
.sidebar *,
.main-content * {
  min-width: 0;
}

.card h1,
.card h2,
.card h3,
.card h4,
.card h5,
.card h6,
.card p,
.update-card h1,
.update-card h2,
.update-card h3,
.update-card h4,
.update-card h5,
.update-card h6,
.update-card p,
.file-card h1,
.file-card h2,
.file-card h3,
.file-card h4,
.file-card h5,
.file-card h6,
.file-card p,
.post-card h1,
.post-card h2,
.post-card h3,
.post-card h4,
.post-card h5,
.post-card h6,
.post-card p,
.long-card h1,
.long-card h2,
.long-card h3,
.long-card h4,
.long-card h5,
.long-card h6,
.long-card p,
.sidebar a,
.message p {
  overflow-wrap: break-word;
  word-break: break-word;
}
html {
    scroll-behavior: smooth;
}

p {
  color: black;
  line-height: 1.8;
  font-size: 1.05rem;
  text-decoration: none;
  display: block;
  padding: 8px 0;
  word-spacing: 0.04em;
}

a,
.btn {
    transition: all 300ms ease;
}

/* DESKTOP NAV */

nav,
.nav-links {
  display: flex;
  align-items: center;
}

nav {
  justify-content: space-between;
  align-items: center;
  height: auto;
  padding: 1rem 1.5rem;   
  gap: 1rem;
  max-width: 1400px;      
  margin: 0 auto;         
  width: 100%;
}

.nav-links {
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links li {
  list-style: none;
  padding: 0;
  margin: 0;
}

.logo {
    font-size: 2rem;
}

a {
  color: black;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

/* Hover effect */
a:hover {
  color: #99cfcd;
}

/* Animated underline */
a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -4px;
  background-color: #99cfcd;
  transition: width 0.3s ease;
}

a:hover::after {
  width: 100%;
}

.logo:hover {
    cursor: default;
}

section {
  padding-top: 1vh;
  height: auto;
  margin: 0 2rem 1rem;
  box-sizing: border-box;
  min-height: fit-content;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 0 20px 1px rgba(0, 0, 0, 0.1);
}

.section_text p2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  margin-top: 30px;
}

.title {
  font-size: 1.5rem;
  text-align: center;
  margin-top: 15px;
}

.dashboard-header {
  background-color: white;
  color: #000000;
  padding: 10px;
}

.dashboard-container {
  display: flex;
  padding: 10px;
}
.account-type-badge {
  display: inline-block;
  margin-top: 8px;
  margin-bottom: 18px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
}

.provider-badge {
  background: #dff4f2;
  color: #5fa9a6;
  border: 1px solid #99cfcd;
}

.user-badge {
  background: #f3f4f6;
  color: #555;
  border: 1px solid #d8d8d8;
}

.sidebar {
  width: 20%;
  background-color: #f1f1f1;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin-right: 20px;
  height: fit-content;
  align-self: flex-start;
}

.sidebar a {
  text-decoration: none;
  font-size: 1rem;
  display: block;
  padding: 15px;
  border-radius: 5px;
  color: #000000;
  transition: background-color 0.3s ease;
}

.sidebar a:hover {
  background-color: #e3f2fd;
}

.sidebar a.active {
  background-color: #99cfcd;
  color: white;
}

.main-content {
  width: 80%;
  padding: 20px;
}

.post-content img {
  max-width: 400px;  
  width: 100%;
  height: auto;
  display: block; 
  border-radius: 10px;
}

.filters-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.filter-group {
  margin-bottom: 15px;
}

.filter-group label {
  font-weight: 600;
}

.filter-group input,
.filter-group select {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.filter-button {
  margin-top: 15px;
}

#applied-filters {
  font-size: 0.9rem;
  font-weight: 600;
}

.applied-filter {
  display: inline-block;
  background-color: #f1f1f1;
  padding: 5px 10px;
  border-radius: 15px;
  margin-right: 5px;
  margin-bottom: 5px;
}

.applied-filter span {
  margin-left: 10px;
  cursor: pointer;
  color: rgb(0, 0, 0);
}

.card-container,
.file-container,
.updates-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: stretch;
}

.card,
.update-card,
.file-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: calc(33.333% - 14px);
  min-width: 0;
  max-width: 100%;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.card img {
  border-radius: 50%;
  width: 80px;
  height: 80px;
  max-width: 100%;
  object-fit: cover;
  margin: 0 auto;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.card p {
  font-size: 1rem;
  color: #666;
}

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

.post-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.post-header img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 10px;
}

.post-content {
  margin-bottom: 10px;
}

.post-content img,
.post-content video {
  width: 100%;
  border-radius: 10px;
  margin-top: 10px;
}

.long-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.long-card img {
  border-radius: 10px;
  width: 100px;
  height: 100px;
  object-fit: cover;
  flex-shrink: 0;
}

.long-card h3 {
  margin: 0;
  font-size: 18px;
}

.long-card p {
  margin-top: 10px;
  color: #666;
}

.comment-section {
  margin-top: 20px;
  background-color: #f8f9fa;
  padding: 10px;
  border-radius: 10px;
}

.comment {
  display: flex;
  margin-bottom: 10px;
}

.comment img, .chat-sidebar .user img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.comment-input {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border-radius: 10px;
  border: 1px solid #ced4da;
}          
          
/* Legal Updates Section */
.updates-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.update-card {
  width: 30%;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.update-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.update-card p {
  font-size: 0.9rem;
  color: #666;
}

.update-card .date {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 10px;
}

.update-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}
 
/* Files and Documents Section */
.file-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.file-card img {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

.file-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.file-card p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 10px;
}            

/* Chat Section */                  
.chat-container {
  display: flex;
  flex-direction: row;
  height: 80vh;
  max-width: 100%;
  min-width: 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.chat-sidebar {
  width: 25%;
  min-width: 0;
  background-color: #f8f9fa;
  border-right: 1px solid #ddd;
  overflow-y: auto;
}

.chat-main {
  width: 75%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.chat-sidebar .user {
  padding: 15px;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
  transition: background-color 0.3s;
}

.chat-sidebar .user:hover {
  background-color: #e3f2fd;
}

.chat-messages {
  padding: 20px;
  flex-grow: 1;
  overflow-y: auto;
}

.message {
  margin-bottom: 20px;
}

.message.sent {
  text-align: right;
}

.message p {
  display: inline-block;
  padding: 10px 15px;
  border-radius: 20px;
  max-width: 75%;
  font-size: 1rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.message.sent p {
  background-color: rgb(74, 192, 255);
  color: white;
}

.message.received p {
  background-color: #e3f2fd;
  color: black;
}

/* Input Section */
.chat-input {
  padding: 10px;
  border-top: 1px solid #ddd;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-input input[type="text"] {
  width: 100%;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid #ccc;
}

.chat-input button {
  background-color: rgb(74, 192, 255);
  color: white;
  border: none;
  border-radius: 50%;
  padding: 10px 15px;
  cursor: pointer;
}

/* Responsive Styling */
@media (max-width: 768px) {
  .dashboard-container {
    flex-direction: column;
  }

  .action-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .action-wrap .btn {
    width: 100% !important;
    min-width: 0 !important;
  }

  .post-actions,
  .profile-actions,
  .action-buttons {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .post-actions .btn,
  .profile-actions .btn,
  .action-buttons .btn {
    width: 100%;
    min-width: 0;
    margin-top: 0;
  }

#desktop-nav {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  height: auto !important;
  padding: 1rem !important;
  gap: 0.9rem !important;
}

#desktop-nav > button,
#desktop-nav > .logo,
#desktop-nav > div {
  width: 100%;
}

.logo {
  font-size: 1.8rem !important;
  text-align: center !important;
}

.logo a {
  display: inline-block;
}

.nav-links {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 0.75rem !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.nav-links li {
  list-style: none !important;
  margin: 0 !important;
}

.nav-links .btn {
  width: auto !important;
  min-width: 130px !important;
}
  .btn {
    min-width: 100px;
    max-width: 100%;
    padding: 0.7rem 1rem !important;
    margin-top: 0 !important;
    font-size: 0.95rem !important;
  }

  .btn-container {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-container .btn {
    width: 100% !important;
  }

  .sidebar {
    width: 100%;
    margin-bottom: 20px;
    margin-right: 0;
    padding: 15px;
  }

  .main-content,
  .chat-main,
  .chat-sidebar,
  .long-card {
    width: 100%;
    max-width: 100%;
  }

  .card,
  .update-card,
  .file-card {
    width: 100%;
    max-width: 100%;
    padding: 14px;
  }

  .card-container,
  .file-container,
  .updates-container {
    gap: 12px;
  }

  section {
    margin: 0 0.75rem 1rem;
    height: auto;
    padding-top: 0.5rem;
  }

  .title {
    font-size: 1.6rem;
    line-height: 1.15;
  }

  p {
    font-size: 1rem;
    line-height: 1.7;
    padding: 6px 0;
  }

  .card p,
  .update-card p,
  .file-card p,
  .long-card p,
  .post-card p,
  .message p {
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .chat-container {
    flex-direction: column;
    height: auto;
  }

  .chat-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #ddd;
    max-height: 260px;
  }

  .chat-main {
    width: 100%;
  }

  .chat-messages {
    padding: 14px;
  }

  .message p {
    max-width: 90%;
  }

  .chat-input {
    flex-wrap: wrap;
  }

  .chat-input input[type="text"] {
    width: 100%;
  }

  .long-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px;
  }

  .long-card img {
    width: 84px;
    height: 84px;
  }

  .card img {
    width: 70px;
    height: 70px;
  }

  .post-header {
    align-items: flex-start;
  }

  .post-header img {
    flex-shrink: 0;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-section {
    margin: 10px 0;
    width: 100%;
  }
  
}
        
/* BUTTON */
.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem;
  min-width: 8rem;
  width: auto;
  max-width: 100%;
  border-radius: 2rem;
  margin-top: 30px;
  text-decoration: none !important;
}

.btn-color-2 {
    border: #99cfcd 0.1rem solid;
    background: none;
    color: #99cfcd;
}

.btn-color-2:hover {
  cursor:pointer;
  background: #99cfcd;
  color: white;
  border: #99cfcd 0.1rem solid;  
}


.btn::after,
.btn:hover::after {
  display: none !important;
}

.back-btn {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  margin-right: 20px;
  color: black;
}

.back-btn:hover {
  color: #99cfcd;
}

.action-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.action-wrap .btn {
  margin-top: 0;
  min-width: 110px;
}

/* Footer Styles */
.footer {
    background-color: #99cfcd ;
    color: #ffffff;
    padding: 20px 0;
    font-family: 'Poppins', sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    text-align: left;
}

.footer-section {
    flex: 1;
    margin: 0 20px;
    display: flex;    
    flex-direction: column;  
    align-items: center;      
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.footer-section p {
    font-size: 0.9rem;
    margin: 5px 0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin: 5px 0;
}

.footer-section ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.social-icons a img {
    width: 24px;
    height: 24px;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #ffffff;
}

@media screen and (max-width: 1200px) {
  #desktop-nav {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    height: auto !important;
    padding: 1rem 1.25rem !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
  }
  .nav-links {
    display: flex !important;
    gap: 0.75rem !important;
    font-size: 1rem !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
    padding: 0 !important;
    justify-content: flex-end !important;
  }

  .logo {
    font-size: 1.8rem !important;
    white-space: nowrap !important;
  }
}