/* ==========================================================================
   UNITI App Stylesheet - REVIEWED FOR SYNTAX
   ========================================================================== */

/* --- CSS Variables (Theme Colors, Fonts, Sizes) --- */
:root {
  /* Colors */
  --uniti-teal: #4EADA9;
  --uniti-navy: #0E2A47;
  --uniti-light-teal-bg: #e6f6f5;
  --uniti-light-teal-border: #cbeef3;
  --uniti-dark-teal-text: #004d40;
  --uniti-icon-teal: #00796b;
  --uniti-light-grey-bg: #f7f9fa;
  --uniti-border-grey: #e8ebee; /* Softer borders */
  --uniti-icon-grey: #8899a6;
  --uniti-inactive-grey: #a0a0b0;
  --uniti-text-dark: #333;
  --uniti-text-medium: #555;
  --uniti-text-light: #777;
  --uniti-white: #fff;
  --uniti-page-bg: #f0f0f0;
  --uniti-error-bg: #f8d7da;
  --uniti-error-text: #721c24;
  --uniti-error-border: #f5c6cb;
  --uniti-success-bg: #d4edda;
  --uniti-success-text: #155724;
  --uniti-success-border: #c3e6cb;
  --uniti-logout-red: #e74c3c;
  --uniti-logout-red-hover: #c0392b;

  /* Fonts */
  --font-primary: 'Monteserrat', sans-serif;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;

  /* Sizes & Spacing */
  --top-bar-height: 56px;
  --bottom-nav-height: 68px;
  --content-max-width: 1100px;
  --bubble-border-radius: 22px;
  --button-border-radius: 25px;
  --input-border-radius: 25px;
  --card-border-radius: 15px;
} /* Closing brace for :root */

/* --- Base Reset & Body Setup --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
} /* Closing brace for * */

html {
  font-size: 16px;
  scroll-behavior: smooth;
} /* Closing brace for html */

body {
  min-height: 100vh;
  background-color: var(--uniti-page-bg);
  font-family: var(--font-primary);
  color: var(--uniti-text-dark);
  line-height: 1.6;
  padding-bottom: var(--bottom-nav-height); /* Space for fixed nav */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
} /* Closing brace for body */

/* Basic link styling */
a {
  color: var(--uniti-teal);
  text-decoration: none;
  transition: color 0.2s ease;
} /* Closing brace for a */
a:hover {
  color: var(--uniti-navy);
  /* text-decoration: underline; */
} /* Closing brace for a:hover */

/* --- Layout Containers --- */
.main-content-wrapper {
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 20px;
} /* Closing brace for .main-content-wrapper */

.page-content {
  background-color: var(--uniti-white);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
} /* Closing brace for .page-content */

/* --- Top Bar --- */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 18px;
  background-color: var(--uniti-white);
  border-bottom: 1px solid var(--uniti-border-grey);
  width: 100%;
  height: var(--top-bar-height);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 1010;
} /* Closing brace for .top-bar */
.top-bar .logo a {
  display: block;
  line-height: 0;
} /* Closing brace for .top-bar .logo a */
.top-bar .logo video,
.top-bar .logo img {
  display: block;
  height: 35px;
  width: auto;
  max-width: 120px;
} /* Closing brace for .top-bar .logo video/img */
.top-bar .profile-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--uniti-teal);
  display: flex;
  justify-content: center;
  align-items: center;
} /* Closing brace for .top-bar .profile-icon */
.top-bar .profile-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
} /* Closing brace for .top-bar .profile-icon img */
.top-bar .profile-icon a {
  display: block;
  line-height: 0;
} /* Closing brace for .top-bar .profile-icon a */
.profile-icon-placeholder {
  width: 40px;
  height: 40px;
} /* Closing brace for .profile-icon-placeholder */


/* --- Main Content Area (Inside Wrapper) --- */
.main-content-area {
  min-height: calc(100vh - var(--top-bar-height) - var(--bottom-nav-height) - 40px); /* Approximate fill height, 40px is approx wrapper padding */
} /* Closing brace for .main-content-area */

/* --- Bottom Navigation Bar --- */
.bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  height: var(--bottom-nav-height);
  background-color: var(--uniti-white);
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 -4px 12px rgba(14, 42, 71, 0.08);
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
} /* Closing brace for .bottom-nav */
/* Nav Items */
.bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--uniti-inactive-grey);
  flex: 1;
  height: 100%;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: rgba(0,0,0,0.05);
} /* Closing brace for .bottom-nav .nav-item */
.bottom-nav .nav-item.active {
  color: var(--uniti-teal);
} /* Closing brace for .bottom-nav .nav-item.active */
.bottom-nav .nav-item:not(.active):hover {
  color: var(--uniti-navy);
} /* Closing brace for .bottom-nav .nav-item:not(.active):hover */
/* Icon Styling */
.bottom-nav .nav-icon-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.2) opacity(0.6); /* Default: Greyed out */
  transition: filter 0.2s ease, opacity 0.2s ease;
} /* Closing brace for .bottom-nav .nav-icon-img */
.bottom-nav .nav-item:hover .nav-icon-img { /* Hover: Darker (navy-ish) */
   filter: grayscale(1) brightness(0.5) opacity(0.9);
} /* Closing brace for .bottom-nav .nav-item:hover .nav-icon-img */
.bottom-nav .nav-item.active .nav-icon-img { /* Active: Teal */
   filter: none; /* Assumes original icon is teal OR use a specific filter */
   opacity: 1;
} /* Closing brace for .bottom-nav .nav-item.active .nav-icon-img */


/* --- Authentication Pages (Login/Signup) --- */
.auth-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  min-height: calc(100vh - var(--top-bar-height) - 40px); /* Fill space, assuming no footer on these pages */
  text-align: center;
} /* Closing brace for .auth-container */
.auth-logo-container {
  margin-bottom: 30px;
} /* Closing brace for .auth-logo-container */
.auth-logo-container video,
.auth-logo-container img {
  width: 130px;
  height: auto;
} /* Closing brace for .auth-logo-container video/img */
.auth-container .profile-placeholder {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: var(--uniti-navy);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
} /* Closing brace for .auth-container .profile-placeholder */
.auth-container .profile-placeholder img {
  width: 50%;
  height: 50%;
  filter: brightness(0) invert(1);
} /* Closing brace for .auth-container .profile-placeholder img */
.form-wrapper {
  width: 100%;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
} /* Closing brace for .form-wrapper */

/* Login Specific Inputs */
.login-input-group {
  position: relative;
  width: 100%;
  background: var(--uniti-navy);
  border-radius: var(--input-border-radius);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  padding: 0px 20px;
  height: 50px;
} /* Closing brace for .login-input-group */
.login-input-group input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--uniti-white);
  font-size: 1rem;
  padding-right: 35px;
  font-family: var(--font-primary);
  height: 100%;
} /* Closing brace for .login-input-group input */
.login-input-group input::placeholder {
  color: #ccc;
  opacity: 0.8;
} /* Closing brace for .login-input-group input::placeholder */
.login-input-group .icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--uniti-white);
  width: 20px;
  height: 20px;
  pointer-events: none;
} /* Closing brace for .login-input-group .icon */
.login-input-group .icon img {
  width: 100%;
  height: 100%;
  filter: brightness(0) invert(1);
} /* Closing brace for .login-input-group .icon img */

/* Signup Specific Inputs & Form Elements */
.registration-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--uniti-navy);
  margin-bottom: 25px;
} /* Closing brace for .registration-title */
.radio-group {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
  color: var(--uniti-navy);
} /* Closing brace for .radio-group */
.radio-group label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 1rem;
} /* Closing brace for .radio-group label */
.radio-group input[type="radio"] {
  margin-right: 8px;
  accent-color: var(--uniti-navy);
  transform: scale(1.1);
} /* Closing brace for .radio-group input */
.signup-input-group {
   position: relative;
   background: transparent;
   border: 2px solid var(--uniti-navy);
   border-radius: 10px;
   padding: 0 15px;
   height: 55px;
   margin-bottom: 25px;
   width: 100%;
} /* Closing brace for .signup-input-group */
.signup-input-group input,
.signup-input-group select {
   border: none;
   outline: none;
   background: transparent;
   color: var(--uniti-navy);
   font-size: 0.95rem;
   font-family: var(--font-primary);
   height: 100%;
   width: 100%;
   padding-top: 12px; /* Make space for label */
} /* Closing brace for .signup-input-group input/select */
.signup-input-group input::placeholder {
  color: #aaa;
} /* Closing brace for .signup-input-group input::placeholder */
.signup-input-group label {
    font-size: 0.75rem;
    color: var(--uniti-navy);
    position: absolute;
    top: 6px;
    left: 15px;
    background: var(--uniti-white); /* Should match auth container bg or page bg */
    padding: 0 5px;
    font-weight: var(--font-weight-medium);
    transition: all 0.2s ease;
    pointer-events: none;
} /* Closing brace for .signup-input-group label */

/* Auth Buttons */
.login-button {
  background: var(--uniti-teal);
  color: var(--uniti-white);
  border: none;
  border-radius: var(--button-border-radius);
  padding: 12px 50px;
  font-size: 1rem;
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 10px;
} /* Closing brace for .login-button */
.login-button:hover {
  background: #3a8c88;
} /* Closing brace for .login-button:hover */
.signup-button {
  width: 100%;
  background: var(--uniti-navy);
  color: var(--uniti-white);
  border: none;
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 20px;
} /* Closing brace for .signup-button */
.signup-button:hover {
  background: #1c4a7a;
} /* Closing brace for .signup-button:hover */
.auth-link {
  margin-top: 25px;
  font-size: 0.9rem;
  color: var(--uniti-text-medium);
} /* Closing brace for .auth-link */
.auth-link a {
  color: var(--uniti-teal);
  font-weight: var(--font-weight-medium);
} /* Closing brace for .auth-link a */
.auth-link a:hover {
  text-decoration: underline;
} /* Closing brace for .auth-link a:hover */


/* --- Home Feed --- */
.feed-container {
  padding-top: 0;
} /* Closing brace for .feed-container */
.union-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--uniti-navy);
  margin-bottom: 25px;
  text-align: center;
} /* Closing brace for .union-title */
.post-bubble {
    background-color: var(--uniti-light-grey-bg);
    border-radius: var(--bubble-border-radius);
    padding: 16px 20px;
    margin-bottom: 20px;
    border: 1px solid var(--uniti-border-grey);
    box-shadow: 0 3px 6px rgba(14, 42, 71, 0.06);
    color: var(--uniti-text-dark);
    font-size: 0.9375rem;
    line-height: 1.55;
} /* Closing brace for .post-bubble */
.post-bubble.contract-info {
    background-color: var(--uniti-light-teal-bg);
    border-color: var(--uniti-light-teal-border);
    color: var(--uniti-dark-teal-text);
    font-weight: var(--font-weight-medium);
    display: flex;
    align-items: center;
    padding: 14px 20px;
} /* Closing brace for .post-bubble.contract-info */
.post-bubble.contract-info .contract-icon {
    display: inline-block;
    margin-right: 12px;
    font-size: 1.3em;
    color: var(--uniti-icon-teal);
    line-height: 1;
} /* Closing brace for .post-bubble.contract-info .contract-icon */
.post-content p {
  margin: 0;
  word-wrap: break-word;
} /* Closing brace for .post-content p */
.post-actions {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem;
    color: var(--uniti-icon-grey);
    border-top: 1px solid var(--uniti-border-grey);
    padding-top: 10px;
    margin-left: -5px;
    margin-right: -5px;
} /* Closing brace for .post-actions */
.post-meta, .post-reactions {
  display: flex;
  align-items: center;
  gap: 16px;
} /* Closing brace for .post-meta / .post-reactions */
.action-item, .reaction-item {
  cursor: pointer;
  transition: color 0.2s ease-in-out, transform 0.1s ease;
  user-select: none;
  padding: 2px 4px;
} /* Closing brace for .action-item / .reaction-item */
.action-item:hover, .reaction-item:hover {
  color: var(--uniti-teal);
} /* Closing brace for hover state */
.action-item:active, .reaction-item:active {
  transform: scale(0.95);
} /* Closing brace for active state */


/* --- Search Page --- */
.search-bar-container {
    padding: 15px 0 20px 0;
    margin-bottom: 20px;
    position: sticky; /* Sticky relative to scrollable parent (.page-content or .main-content-area) */
    top: -25px; /* Adjust based on .page-content padding */
    background-color: var(--uniti-white); /* Match background */
    z-index: 99;
    margin-left: -25px; /* Counteract parent padding */
    margin-right: -25px; /* Counteract parent padding */
    padding-left: 25px;
    padding-right: 25px;
} /* Closing brace for .search-bar-container */
.search-bar {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
} /* Closing brace for .search-bar */
.search-bar input[type="search"] {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border-radius: var(--button-border-radius);
    border: 1px solid var(--uniti-border-grey);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: var(--font-primary);
} /* Closing brace for .search-bar input */
.search-bar input[type="search"]:focus {
    border-color: var(--uniti-teal);
    box-shadow: 0 0 0 3px rgba(78, 173, 169, 0.2);
} /* Closing brace for .search-bar input:focus */
.search-bar button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    color: var(--uniti-icon-grey);
} /* Closing brace for .search-bar button */
.search-bar .search-icon {
  width: 22px;
  height: 22px;
  fill: currentColor; /* Use button's color */
} /* Closing brace for .search-bar .search-icon */
.search-bar button:hover {
  color: var(--uniti-teal);
} /* Closing brace for .search-bar button:hover */

.search-results-container {
  padding: 0 5px; /* Minimal padding for grid */
} /* Closing brace for .search-results-container */
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 18px;
} /* Closing brace for .search-results-grid */
@media (min-width: 768px) {
    .search-results-grid {
      grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    } /* Closing brace for @media */
} /* Closing brace for @media */

/* Search Result Card Base */
.result-card {
    background-color: var(--uniti-white);
    border-radius: var(--card-border-radius);
    overflow: hidden;
    border: 1px solid var(--uniti-border-grey);
    box-shadow: 0 4px 8px rgba(14, 42, 71, 0.07);
    text-align: center;
    padding: 0;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
} /* Closing brace for .result-card */
.result-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(14, 42, 71, 0.1);
} /* Closing brace for .result-card:hover */
.result-card::before {
    content: '';
    position: absolute;
    top: 45%;
    left: -15%;
    width: 130%;
    height: 85%;
    background-color: var(--uniti-teal);
    transform: rotate(-10deg);
    z-index: 0;
    border-radius: 10px;
} /* Closing brace for .result-card::before */
.result-card > * {
  position: relative;
  z-index: 1;
} /* Closing brace for .result-card > * */

/* Company Card Specifics */
.company-card .card-content {
  padding: 15px 10px;
} /* Closing brace for .company-card .card-content */
.company-card .company-logo img {
    width: 75%;
    max-width: 120px;
    height: auto;
    margin: 0 auto 15px auto;
    background-color: var(--uniti-white);
    padding: 8px;
    border-radius: 8px;
    display: block;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
} /* Closing brace for .company-card .company-logo img */
.company-card .company-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--uniti-white);
    margin-bottom: 18px;
    background: rgba(0, 0, 0, 0.3);
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
} /* Closing brace for .company-card .company-name */

/* User Card Specifics */
.user-card .card-content {
  padding: 15px 10px;
} /* Closing brace for .user-card .card-content */
.user-card::before {
  height: 65%;
  top: 30%;
} /* Closing brace for .user-card::before */
.user-card .user-photo img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--uniti-white);
    margin: 0 auto 10px auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: block;
} /* Closing brace for .user-card .user-photo img */
.user-card .user-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--uniti-white);
  margin-bottom: 3px;
} /* Closing brace for .user-card .user-name */
.user-card .user-affiliation {
  font-size: 0.75rem;
  color: #e0f2f1;
  margin-bottom: 3px;
} /* Closing brace for .user-card .user-affiliation */
.user-card .user-title {
  font-size: 0.7rem;
  color: #e0f2f1;
  margin-bottom: 15px;
  font-style: italic;
} /* Closing brace for .user-card .user-title */

/* Follow Button (Shared) */
.follow-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 15px;
    padding: 7px 14px;
    color: var(--uniti-navy);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-transform: uppercase;
    line-height: 1;
    gap: 5px;
} /* Closing brace for .follow-button */
.follow-button:hover {
  background-color: rgba(255, 255, 255, 1);
} /* Closing brace for .follow-button:hover */
.follow-button img,
.follow-button .icon-placeholder {
    width: 14px;
    height: 14px;
} /* Closing brace for .follow-button img */


/* --- Profile Page --- */
.profile-content {
  padding: 30px 15px;
  text-align: center;
} /* Closing brace for .profile-content */
.profile-content .profile-picture-large {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 25px auto;
    border: 5px solid var(--uniti-teal);
    display: block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
} /* Closing brace for .profile-content .profile-picture-large */
.profile-content h1 {
  font-size: 1.8rem;
  color: var(--uniti-navy);
  margin-bottom: 8px;
  font-weight: 600;
} /* Closing brace for .profile-content h1 */
.profile-content .profile-email {
  color: var(--uniti-text-medium);
  margin-bottom: 15px;
  font-size: 1rem;
} /* Closing brace for .profile-content .profile-email */
.profile-content .profile-details p {
  color: var(--uniti-text-dark);
  margin-bottom: 8px;
} /* Closing brace for .profile-content .profile-details p */
.profile-content .profile-details p strong {
  color: var(--uniti-navy);
  margin-right: 5px;
} /* Closing brace for .profile-content .profile-details p strong */
.profile-content .edit-profile-link {
  display: inline-block;
  margin: 15px 0 25px 0;
  font-size: 0.9rem;
} /* Closing brace for .profile-content .edit-profile-link */
.logout-button {
  display: inline-block;
  background: var(--uniti-logout-red);
  color: var(--uniti-white);
  padding: 10px 30px;
  border-radius: var(--button-border-radius);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: 0.95rem;
} /* Closing brace for .logout-button */
.logout-button:hover {
  background: var(--uniti-logout-red-hover);
} /* Closing brace for .logout-button:hover */

/* --- Utility Classes --- */
.no-results {
  text-align: center;
  padding: 40px 20px;
  color: var(--uniti-text-medium);
  font-style: italic;
  font-size: 1rem;
} /* Closing brace for .no-results */
.message {
    padding: 12px 18px;
    border-radius: 8px;
    margin: 0 auto 20px auto;
    font-size: 0.95rem;
    width: 100%;
    max-width: 600px;
    text-align: center;
    box-sizing: border-box;
    border: 1px solid transparent;
} /* Closing brace for .message */
.message.error {
  background-color: var(--uniti-error-bg);
  color: var(--uniti-error-text);
  border-color: var(--uniti-error-border);
} /* Closing brace for .message.error */
.message.success {
  background-color: var(--uniti-success-bg);
  color: var(--uniti-success-text);
  border-color: var(--uniti-success-border);
} /* Closing brace for .message.success */
.hidden {
  display: none;
} /* Closing brace for .hidden */

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .page-content {
      padding: 20px 15px; /* Reduce padding slightly */
    } /* Closing brace for .page-content @media */
    .union-title {
      font-size: 1.4rem;
    } /* Closing brace for .union-title @media */
    .profile-content h1 {
      font-size: 1.5rem;
    } /* Closing brace for .profile-content h1 @media */
    .search-results-grid {
      grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
      gap: 12px;
    } /* Closing brace for .search-results-grid @media */
    /* Adjust sticky search bar top offset if needed */
    .search-bar-container {
        top: -20px; /* Align with reduced padding */
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
    } /* Closing brace for .search-bar-container @media */
} /* Closing brace for @media (max-width: 768px) */
/* ======================================== */
/* === Authentication Pages Specifics === */
/* ======================================== */

/* --- Base Auth Container Styling --- */
/* Wrapper used in signup, container used in login */
.auth-container-wrapper {
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    justify-content: flex-start; /* Align container to top */
    align-items: center;
    padding: 30px 15px;
    min-height: 100vh; /* Ensure it takes full height */
    box-sizing: border-box; /* Include padding in height calc */
}

.auth-content-container { /* The main box for login/signup */
    width: 100%;
    max-width: 420px; /* Slightly increased max-width */
    padding: 35px 30px; /* More padding */
    background-color: var(--uniti-white, #fff);
    border-radius: 12px; /* Slightly softer radius */
    box-shadow: 0 6px 20px rgba(14, 42, 71, 0.1); /* Enhanced shadow */
    text-align: center;
    margin-top: 20px; /* Space from top if wrapper aligns start */
    margin-bottom: 20px;
    border: 1px solid var(--uniti-border-grey); /* Subtle border */
}

/* --- Logo --- */
.auth-content-container .auth-logo-container {
  margin-bottom: 25px; /* Adjust space below logo */
}
.auth-content-container .auth-logo-container video {
  width: 120px; /* Slightly smaller */
  height: auto;
  display: block; /* Prevent extra space */
  margin: 0 auto; /* Ensure centered */
}

/* --- Login Profile Placeholder --- */
.auth-content-container .profile-placeholder {
    width: 80px; height: 80px; /* Slightly smaller */
    border-radius: 50%;
    background-color: var(--uniti-navy);
    display: flex; justify-content: center; align-items: center;
    margin: 0 auto 25px auto; /* Centered, space below */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.auth-content-container .profile-placeholder img {
  width: 45%; height: 45%; /* Adjust icon size */
  filter: brightness(0) invert(1);
}

/* --- Forms --- */
.form-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px; /* Space above first input */
}

/* --- Input Groups General --- */
.input-group {
    width: 100%; /* Take full width of form-wrapper */
    margin-bottom: 18px; /* Consistent spacing */
    position: relative;
}
.input-group:last-of-type {
    margin-bottom: 25px; /* More space before button */
}
/* --- Login Inputs --- */
.login-input-group {
  background: var(--uniti-navy);
  border-radius: var(--input-border-radius);
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 50px;
  transition: box-shadow 0.2s ease;
}
.login-input-group:focus-within { /* Add focus highlight */
  box-shadow: 0 0 0 3px rgba(78, 173, 169, 0.3); /* Teal glow */
}
.login-input-group input {
  flex: 1; border: none; outline: none; background: transparent;
  color: var(--uniti-white); font-size: 1rem; padding-right: 40px; /* Space for icon */
  font-family: var(--font-primary); height: 100%;
}
.login-input-group input::placeholder { color: #a0a0b0; opacity: 1; } /* Slightly darker placeholder */
.login-input-group .icon {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  color: var(--uniti-white); width: 18px; height: 18px; /* Slightly smaller icon */
  pointer-events: none; opacity: 0.8;
}
.login-input-group .icon img { width: 100%; height: 100%; filter: brightness(0) invert(1); }


/* --- Signup Inputs --- */
.registration-title {
    font-size: 1.6rem; /* Larger title */
    font-weight: 600; color: var(--uniti-navy); margin-bottom: 20px;
}
.radio-group {
    display: flex; justify-content: center; gap: 35px; margin-bottom: 25px; color: var(--uniti-navy);
}
.radio-group label {
  display: flex; align-items: center; cursor: pointer; font-size: 1rem;
  color: var(--uniti-text-medium); transition: color 0.2s ease;
}
.radio-group input[type="radio"] {
  margin-right: 8px; accent-color: var(--uniti-teal); /* Use teal for radio */
  transform: scale(1.1); cursor: pointer;
}
.radio-group input[type="radio"]:checked + span { /* Style label text when checked */
    color: var(--uniti-navy);
    font-weight: var(--font-weight-medium);
}
/* Add span around label text in HTML: <label> <input ...> <span>Personal</span> </label> */

.signup-input-group {
   position: relative; background: transparent;
   border: 1px solid #ccc; /* Lighter default border */
   border-radius: 8px; /* Less rounded */
   padding: 0 15px; height: 55px; margin-bottom: 20px; width: 100%;
   transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.signup-input-group:focus-within {
   border-color: var(--uniti-teal);
   box-shadow: 0 0 0 3px rgba(78, 173, 169, 0.2); /* Teal glow */
}
.signup-input-group input, .signup-input-group select {
   border: none; outline: none; background: transparent; color: var(--uniti-text-dark);
   font-size: 0.95rem; font-family: var(--font-primary); height: 100%; width: 100%;
   padding-top: 14px; /* Space for label */
}
.signup-input-group input::placeholder { color: transparent; } /* Hide default placeholder, rely on label */
.signup-input-group label {
    font-size: 0.9rem; /* Base label size */
    color: var(--uniti-text-light);
    position: absolute;
    top: 50%; /* Center vertically */
    left: 16px;
    transform: translateY(-50%); /* Center vertically */
    background: var(--uniti-white);
    padding: 0 5px;
    font-weight: var(--font-weight-regular);
    transition: all 0.2s ease;
    pointer-events: none;
}
/* Floating label effect */
.signup-input-group input:not(:placeholder-shown) + label,
.signup-input-group input:focus + label {
    top: 0px; /* Move label up */
    transform: translateY(-50%); /* Adjust vertical centering for smaller size */
    font-size: 0.7rem; /* Smaller font size */
    color: var(--uniti-teal); /* Teal color when active */
    font-weight: var(--font-weight-medium);
}
.required-mark { color: var(--uniti-logout-red); margin-left: 2px; font-weight: bold;}


/* --- Auth Buttons & Links --- */
.login-button, .signup-button {
  border: none; padding: 12px 20px; font-size: 1rem;
  font-weight: var(--font-weight-medium); cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.2s ease, transform 0.1s ease;
  width: 100%; /* Make buttons full width */
  max-width: 250px; /* But limit max width */
  margin-top: 15px;
}
.login-button {
  background: var(--uniti-teal); color: var(--uniti-white);
  border-radius: var(--button-border-radius);
}
.login-button:hover { background: #3a8c88; box-shadow: 0 2px 5px rgba(0,0,0,0.15); }
.login-button:active { transform: translateY(1px); }

.signup-button {
  background: var(--uniti-navy); color: var(--uniti-white);
  border-radius: 8px; /* Match signup inputs */
}
.signup-button:hover { background: #1c4a7a; box-shadow: 0 2px 5px rgba(0,0,0,0.15); }
.signup-button:active { transform: translateY(1px); }

.auth-link {
  margin-top: 30px; /* More space above link */
  font-size: 0.9rem;
  color: var(--uniti-text-medium);
}
.auth-link a {
  color: var(--uniti-teal);
  font-weight: var(--font-weight-medium);
}
.auth-link a:hover {
  text-decoration: underline;
  color: var(--uniti-navy);
}

/* --- Flash Messages --- */
/* Ensure message styles are robust */
.message {
    padding: 12px 18px; border-radius: 8px; margin: 0 auto 20px auto;
    font-size: 0.95rem; width: 100%; max-width: 100%; /* Full width inside container */
    text-align: center; box-sizing: border-box; border: 1px solid transparent;
    font-weight: var(--font-weight-medium);
}
.message.error { background-color: var(--uniti-error-bg); color: var(--uniti-error-text); border-color: var(--uniti-error-border); }
.message.success { background-color: var(--uniti-success-bg); color: var(--uniti-success-text); border-color: var(--uniti-success-border); }

/* Add to style.css */
.post-embedded-image {
    max-width: 100%; /* Prevent images overflowing container */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px; /* Optional rounded corners */
    margin-top: 12px; /* Space above image */
    display: block; /* Ensure it takes block space */
    border: 1px solid var(--uniti-border-grey); /* Optional subtle border */
}
/* Add to style.css */

/* Wrapper for Avatar + Post Bubble */
.post-entry {
    display: flex; /* Use flexbox for side-by-side layout */
    align-items: flex-start; /* Align items to the top */
    gap: 12px; /* Space between avatar and bubble */
    margin-bottom: 20px; /* Existing space below bubble */
}

.post-author-avatar {
    flex-shrink: 0; /* Prevent avatar from shrinking */
    width: 45px; /* Size of the avatar */
    height: 45px;
}

.post-author-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%; /* Circular avatar */
    object-fit: cover;
    border: 1px solid var(--uniti-border-grey); /* Subtle border */
}

/* Adjust post bubble margin since spacing is now handled by .post-entry gap */
.post-bubble {
    margin-bottom: 0; /* Remove bottom margin */
    flex-grow: 1; /* Allow bubble to take remaining width */
    /* Add a subtle left border as the "green lining" - using teal */
    border-left: 4px solid var(--uniti-teal);
}

.post-header {
    margin-bottom: 8px;
    line-height: 1.3;
}

.post-author-name {
    font-weight: var(--font-weight-semibold);
    color: var(--uniti-navy);
    text-decoration: none;
    margin-right: 5px;
}
.post-author-name:hover {
    text-decoration: underline;
}

.post-timestamp {
    font-size: 0.8rem;
    color: var(--uniti-text-light);
}

.post-title { /* Style for optional post title */
    font-size: 1.05em; /* Slightly larger than content */
    margin-top: 5px; /* Space below author line if title exists */
    margin-bottom: 8px;
    color: var(--uniti-navy);
    font-weight: var(--font-weight-medium);
    line-height: 1.3;
}

/* Embedded image styling */
.post-embedded-image {
    max-width: 100%; height: auto; border-radius: 8px;
    margin-top: 12px; display: block; border: 1px solid var(--uniti-border-grey);
}

/* Add or Modify in style.css */

/* --- New Post Form --- */
.new-post-form-container {
    background-color: #f0f8ff; /* Alice blue - distinct background */
    border: 1px solid #cce5ff;
    padding: 20px 25px;
    border-radius: var(--bubble-border-radius); /* Match post bubble radius */
    margin-bottom: 30px;
}
.new-post-form-container h2 {
    text-align: center;
    color: var(--uniti-navy);
}
.new-post-form-container .form-group label { /* Basic label styling */
    font-weight: var(--font-weight-medium);
    display: block;
    margin-bottom: 5px;
    color: var(--uniti-text-medium);
    text-align: left;
}
.new-post-form-container .form-control { /* Basic input/textarea styling */
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.new-post-form-container .form-control:focus {
    outline: none;
    border-color: var(--uniti-teal);
    box-shadow: 0 0 0 3px rgba(78, 173, 169, 0.2);
}
.new-post-form-container textarea.form-control {
    min-height: 100px;
    resize: vertical; /* Allow vertical resize */
}
.new-post-form-container button[type="submit"] {
    /* Reuse existing button styles or define specific ones */
    /* Example using primary button style */
    /* background-color: var(--uniti-teal); ... */
    display: block; /* Make button block */
    margin: 10px auto 0 auto; /* Center button */
}


/* --- Post Entry Layout (Avatar + Bubble) --- */
.post-entry {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 25px; /* Space between full entries */
}
.post-author-avatar {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    margin-top: 3px; /* Align slightly better with text */
}
.post-author-avatar img {
    width: 100%; height: 100%; border-radius: 50%;
    object-fit: cover; border: 1px solid var(--uniti-border-grey);
}
.post-bubble {
    margin-bottom: 0; /* Remove margin handled by .post-entry */
    flex-grow: 1;
    border-left: 4px solid var(--uniti-teal); /* Accent line */
}

/* --- Post Header --- */
.post-header {
    margin-bottom: 10px; /* Space below header */
    line-height: 1.4;
}
.post-author-name {
    font-weight: var(--font-weight-semibold);
    color: var(--uniti-navy);
    text-decoration: none;
    margin-right: 6px;
}
.post-author-name:hover { text-decoration: underline; }
.post-author-username {
    color: var(--uniti-text-light);
    font-size: 0.9em;
    margin-right: 6px;
}
.post-timestamp {
    font-size: 0.85em;
    color: var(--uniti-text-light);
}
.post-title {
    font-size: 1.1em;
    margin-top: 6px;
    margin-bottom: 8px;
    color: var(--uniti-navy);
    font-weight: var(--font-weight-medium);
    line-height: 1.3;
}

/* --- Post Actions Refinements --- */
.post-actions button { /* Style action items as buttons */
    background: none;
    border: none;
    padding: 5px;
    margin: 0;
    color: inherit; /* Inherit color from .post-actions */
    cursor: pointer;
    border-radius: 50%; /* Make circle on hover */
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.post-actions button:hover {
    background-color: #eef; /* Light background on hover */
    color: var(--uniti-teal);
}
.post-actions .vote-icon, .post-actions .comment-icon {
    /* Style specific icons if needed */
}
.post-actions .add-reaction {
    font-weight: bold;
    font-size: 1.3em;
}

/* Embedded image styling */
.post-embedded-image {
    max-width: 100%; height: auto; border-radius: 8px;
    margin-top: 12px; display: block; border: 1px solid var(--uniti-border-grey);
}