/*---------------------------------- Fonts (static) ----------------------------------*/
/* Register local fonts without applying them globally */
@font-face {
  font-family: 'VAGRoundedBT';
  src: url('../Fonts/VAGRoundedBT.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TradeGothic';
  src: url('../Fonts/TradeGothicBold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DistantGalaxy';
  src: url('../Fonts/DistantGalaxy.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Sans12pt';
  src: url('../Fonts/sans_12pt_st.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Convenient variables (use with font-family: var(--font-...)) */
:root {
  --font-vag-rounded: 'VAGRoundedBT', Arial, sans-serif;
  --font-tradegothic: 'TradeGothic', Arial, sans-serif;
  --font-distant-galaxy: 'DistantGalaxy', Arial, sans-serif;
  --font-sans12pt: 'Sans12pt', Arial, sans-serif;
}

/* Optional utility classes (opt-in usage only) */
.font-vag { font-family: var(--font-vag-rounded) !important; }
.font-tradegothic { font-family: var(--font-tradegothic) !important; }
.font-galaxy { font-family: var(--font-distant-galaxy) !important; }
.font-sans12 { font-family: var(--font-sans12pt) !important; }

/*---------------------------------- General CSS Start --------------------------------*/

:root {
  --blue-1: rgba(95,185,225);
  --blue-2: rgba(191,230,255);
  --blue-3: rgba(185,225,255);
  --blue-font: rgba(38,87,136);
  --orange-1: rgb(255, 104, 0);
}

/*------------------------------------- General CSS End -------------------------------------*/

/*------------------------------------- Navbar CSS Start ------------------------------------*/

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
    padding: 0 1rem;
    color: white;
    position: sticky;
    top: 0;
    z-index: 40;
    background-color: rgb(95, 185, 225);
}

.header__online-user-count {
    width: 200px;
    height: 5rem;
    flex-shrink: 0;
    position: relative;
}

.header__brand-section {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    max-width: 48rem;
    height: 5rem;
    z-index: 1;
}

.header__nav-section {
    display: flex;
    justify-content: flex-end;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0 0.5rem 0 0;
}

.header__brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    justify-content: center;
}

.header__title {
  font-size: 2.5rem;
  font-family: 'VAG Rounded BT', Arial, sans-serif;
  color: rgb(255, 104, 0);
  font-weight: bold;
  line-height: 1;
  white-space: nowrap;
  height: 3rem;
}

/* Responsive logo switching */
.header__title--small {
  display: none;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  object-fit: contain;
}

.header__title--small:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header__title--small:active {
  transform: scale(0.95);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.1s ease;
}

@media (max-width: 1200px) {
  .header__title {
    height: 2.5rem;
  }
}
@media (max-width: 1100px) {
  .header__title {
    height: 2rem;
  }
}
@media (max-width: 1000px) {
  .header__title {
    height: 1.5rem;
  }
}
@media (max-width: 900px) {
  .header__title {
    display: none;
  }
  
  .header__title--small {
    display: block;
    height: 2.675rem;
    width: auto;
    max-width: 8rem;
  }
}

/* Home nav item for smaller screens */
.header__home-nav {
    display: none;
}

.header__home-nav .header__nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 3rem;
    padding: 0 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.25rem;
}

.header__home-nav .header__nav-link:hover {
    background-color: rgba(31, 41, 55, 0.3);
}

.header__nav-item {
    position: relative;
}

.header__nav-link {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    height: 3rem;
    padding: 0 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.25rem;
}

.header__online-user-count .header-online-user-count {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background-color: var(--orange-1);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 400;
}

.header__nav-link:hover {
    background-color: rgba(31, 41, 55, 0.3);
}

.header__avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    object-fit: cover;
}

.header__arrow {
    width: 1rem;
    transition: transform 0.3s;
}

.header__arrow--rotated {
    transform: rotate(180deg);
}

.dropdown {
    position: relative;
}

.dropdown__content {
    position: absolute;
    right: 0;
    background-color: white;
    color: black;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    width: 10rem;
    padding: 0.5rem;
    z-index: 20;
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.dropdown__content--hidden {
    opacity: 0;
    transform: translateY(-5px) scale(0.9);
    pointer-events: none;
}

.dropdown__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown__item {
    border-radius: 0.375rem;
    transition: background-color 0.15s;
}

.dropdown__item:hover {
    background-color: #f3f4f6;
}

.dropdown__link {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0.5rem;
    text-decoration: none;
    color: var(--blue-font);
    text-align: right;
}

.dropdown__content .hoverlist > * > a,
.dropdown__content a {
    justify-content: flex-end;
    text-align: right;
}

/*---------------------------------- Navbar CSS End ----------------------------------*/



/*------------------------------------ Chat Page CSS Start ------------------------------------*/

.loading-messages {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(224,242,245);
    color: rgb(38,87,136);
    font-size: 1.2rem;
    font-weight: 400;
    padding: 1rem;
    border-radius: 0.5em 0.5em 0 0;
    animation: fadeInLoading 0.3s;
  }
  @keyframes fadeInLoading {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
  }

.container {
    height: calc(100vh - 5rem); /* Adjust 5rem to your header height */
    min-height: unset;
    padding: 0;
}
.page-wrapper {
    height: calc(100vh - 5rem); /* Adjust 5rem to your header height */
    min-height: unset;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Welcome page wrapper - no height constraints, natural flow */
.page-wrapper-welcome {
    min-height: calc(100vh - 5rem);
    padding: 0;
    display: block; /* Natural document flow instead of flex centering */
}

/* Chat interface */
.chat-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    width: 100%;
    max-width: 48rem;
    margin: 5rem auto;
    padding: 0.5rem;
    align-items: center;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0.25rem;
    width: 100%;

}

.chat-edit-btn {
    padding: 0.5rem;
    background-color: var(--orange-1);
    border-radius: 0.5rem;
    transition: background-color 0.2s;
    text-decoration: none;
    color: white;
    margin-bottom: 0.25rem;
}

.chat-edit-btn:hover {
    background-color: var(--blue-font);
    color: var(--orange-1)
}

.chat-window {
    height: 100%;
    width: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    padding: 1rem;
    background: rgba(240, 250, 250, 0.8);
    border-radius: 1rem;
    box-shadow:
    inset 0 0 0 4px #fff,
    inset 0 0 0 10px rgb(95,185,225);
}

.chat-info {
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgb(38,87,136);
    font-size: 1.25rem;
    font-weight: 400;
    padding: 0.5rem;
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 0.5rem;
    background: rgba(224, 242, 245, 1);
    border-radius: 0.5rem;
    box-shadow: inset 0 0 0 4px rgb(175,220,230);
    margin-bottom: 0.1rem;
}

.chat-minimize {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    z-index: 20;
    background-color: #374151;
    color: white;
    border-radius: 0.5rem;
    padding: 0.125rem 0.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    display: none;
}

.chat-minimize:hover {
    background-color: #4b5563;
}

.chat-messages {
    overflow-y: auto;
    flex-grow: 1;
    padding: 0.5rem;
    color: var(--blue-font);
    scrollbar-width: none;        /* Firefox */
    -ms-overflow-style: none;     /* IE and Edge */
    font-family: var(--font-tradegothic);
}

.chat-messages::-webkit-scrollbar {
    display: none;                /* Chrome, Safari, Opera */
}

#chat_message_form {
    padding: 4px;
    background: rgba(224, 242, 245, 1);
    border-radius: 0.25rem;
    box-shadow: inset 0 0 0 3px rgb(175,220,230);
}

/* -------------------------------------- Chat Page CSS End --------------------------------------*/



/* Auth pages CSS Start */

/* Auth pages CSS End */



/* Welcome page CSS Start */

/* Welcome page CSS End */

*, ::before, ::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}

::before, ::after {
    --tw-content: '';
}

textarea:focus, select:focus, input:focus {
    outline: none;
    padding: 1rem;
    background: rgba(95, 185, 225, 0.5);
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
    font-family: 'VAG Rounded BT', ui-sans-serif, Arial, sans-serif;
    font-feature-settings: normal;
    font-variation-settings: normal;
    -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

b, strong {
    font-weight: bolder;
}

code, kbd, pre, samp {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-feature-settings: normal;
    font-variation-settings: normal;
    font-size: 1em;
}

small {
    font-size: 80%;
}

sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
}

button, input, optgroup, select, textarea {
    font-family: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    font-size: 100%;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}

button, select {
    text-transform: none;
}

button, input:where([type='button']), input:where([type='reset']), input:where([type='submit']) {
    -webkit-appearance: button;
    background-color: transparent;
    background-image: none;
}

:-moz-focusring {
    outline: auto;
}

:-moz-ui-invalid {
    box-shadow: none;
}

progress {
    vertical-align: baseline;
}

::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
}

[type='search'] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

::-webkit-search-decoration {
    -webkit-appearance: none;
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}

summary {
    display: list-item;
}

blockquote, dd, dl, figure, h1, h2, h3, h4, h5, h6, hr, p, pre {
    margin: 0;
}

fieldset {
    margin: 0;
    padding: 0;
}

legend {
    padding: 0;
}

menu, ol, ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

dialog {
    padding: 0;
}

textarea {
    resize: vertical;
}

input::placeholder, textarea::placeholder {
    opacity: 1;
    color: #9ca3af;
}

[role='button'], button {
    cursor: pointer;
}

:disabled {
    cursor: default;
}

audio, canvas, embed, iframe, img, object, svg, video {
    display: block;
    vertical-align: middle;
}

img, video {
    max-width: 100%;
    height: auto;
}

[hidden]:where(:not([hidden='until-found'])) {
    display: none;
}

body {
    background-image: url('../images/Background/Background.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    margin: 0;
    line-height: inherit;
}

/* Typography - Override reset for styled elements */
h1 {
    margin-bottom: 1rem;
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--orange-1);
}

h2 {
    margin-bottom: 0.25rem;
    font-size: 1.5rem;
    line-height: 1.75rem;
    font-weight: 700;
    color: var(--blue-font);
}

h3 {
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
}

/* Buttons - Match original Tailwind exactly */
.button, button, [type='submit'], [type='button'] {
    cursor: pointer;
    border-radius: 0.5rem;
    background-color: var(--orange-1);
    font-weight: 700;
    color: rgb(255 255 255);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    display: inline-block;
    padding: 1rem 1.5rem;
    border: none;
    text-decoration: none;
}

.button:hover, button:hover, [type='submit']:hover, [type='button']:hover {
    background-color: var(--blue-font);
    color: var(--orange-1);
}

.button:active, button:active, [type='submit']:active, [type='button']:active {
    transform: scale(0.95);
}

.button.alert, button.alert {
    background-color: rgb(185 28 28);
}

.button.alert:hover, button.alert:hover {
    background-color: rgb(220 38 38);
}

.button-red {
    background-color: rgb(239 68 68) !important;
}

.button-red:hover {
    background-color: rgb(220 38 38) !important;
}

.button-gray {
    background-color: rgb(209 213 219) !important;
}

.button-gray:hover {
    background-color: rgb(195 201 208) !important;
}

/* New semantic button classes */
.btn {
    cursor: pointer;
    border-radius: 0.5rem;
    background-color: rgb(255, 105, 0);
    font-weight: 500;
    color: rgb(255 255 255);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    display: inline-block;
    padding: 1rem 1.5rem;
    border: none;
    text-decoration: none;
    text-align: center;
}

.btn-settings {
    cursor: pointer;
    border-radius: 0.5rem;
    background-color: rgb(255, 105, 0);
    font-weight: 500;
    color: rgb(255 255 255);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    display: inline-block;
    padding: 1rem 1.5rem;
    border: none;
    text-decoration: none;
}

.btn:hover {
    background-color: var(--blue-font);
    color: var(--orange-1);
}

.btn:active {
    transform: scale(0.9);
}
.btn-leave {
    max-width: 50%;
    background-color: rgb(239 68 68);
    padding: 0rem 1rem;
    margin: 0.25rem 0.25rem 0rem 0.25rem;
    font-size: 1rem;
    white-space: nowrap;
    align-self: flex-start;
}
.btn-leave:hover {
    background-color: rgb(158, 3, 3);
    color: white;
}

.btn-delete-room {
    background-color: rgb(239 68 68);
}
.btn-delete-room:hover {
    background-color: rgb(158, 3, 3);
    color: white;
}

.btn-header-count {
    padding: 0.5rem 0.75rem;
    cursor: auto;
    margin-left: 0.5rem;
}

.no-users-online {
    background-color: #6b7280;
    color: var(--blue-font);
}

.btn--red {
    background-color: rgb(239 68 68);
}

.btn--red:hover {
    background-color: rgb(220 38 38);
    color: white;
}

.btn--gray {
    background-color: rgb(209 213 219);
    color: rgb(55 65 81);
}

.btn--gray:hover {
    background-color: rgb(195 201 208);
}

.btn--small {
    padding: 0.5rem 0.5rem;
    font-size: 1rem;
    white-space: nowrap;
}



/* Layout containers */
.container {
    width: 100%;
    max-width: 48rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    padding: 1rem;
}

.center-me {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.content-box {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 1rem;
    margin: 3rem auto;
    width: fit-content;
    max-height: 100%;
    color: var(--blue-font);
}

.content-box-delete-chat, .content-box-logout {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-link {
    text-decoration: underline;
}

html {
  /* ...existing styles... */
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE and Edge */
}
html::-webkit-scrollbar {
  display: none;                /* Chrome, Safari, Opera */
}

.chat-messages__list {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.chat-input-area {
    position: sticky;
    bottom: 0;
    z-index: 10;
    padding: 0.5rem;
    background: rgba(224, 242, 245, 1);
    border-radius: 0.5rem;
    box-shadow: inset 0 0 0 4px rgb(175,220,230);

}

.chat-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
}

.chat-file-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 0.25rem;
}

.chat-header-display-name {
    text-decoration: none !important;
}

/* Message link styling */
.message-link {
    color: #2563eb !important;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    padding: 2px 4px;
    position: relative;
    overflow: hidden;
}

.message-link:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    text-decoration: none;
    border-radius: 6px;
}

/* Chat messages */
.message {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    gap: 0.25rem;
}

.message--own {
    align-items: flex-end;
}

.message--other {
    align-items: flex-start;
}

.message__content-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    max-width: 75%;
}

.message--own .message__content-wrapper {
    justify-content: flex-end;
}

.message--other .message__content-wrapper {
    justify-content: flex-start;
}

.message__author-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-right: 0rem;
}

.message__content-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.message__bubble {
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    width: auto;
    max-width: 100%;
    min-width: 0;
    position: relative;
    display: inline-block;
    align-items: center;
    word-wrap: break-word;        /* Break long words if needed */
    overflow-wrap: break-word;    /* Modern syntax */
    word-break: break-word;       /* Alternative approach */
    line-height: 1.4;            /* Consistent line spacing */
}

.message__bubble img {
    width: 20rem;
    margin-left: 0;
    display: block;
}

.message__bubble--own {
    background-color: rgba(190, 228, 252);
    border-top-right-radius: 0.5rem;
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
    text-align: left;

}

.message__bubble--other {
    background-color: white;
    border-top-right-radius: 0.5rem;
    border-top-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    justify-content: flex-start;

}

.message__author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.message__avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
}

.message__avatar-container {
    position: relative;
}

.message__author-details {
    font-size: 0.875rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.message__author-name {
    color: rgb(38,87,136);
}

.message__username {
    color: #9ca3af;
}

.message__timestamp {
    font-size: 0.75rem;
    color: #9ca3af;
    opacity: 0.8;
    padding: 0 0.25rem;
}

.message__timestamp--own {
    text-align: right;
    align-self: flex-end;
    margin-top: 0.125rem;
}

.message__timestamp--other {
    text-align: center;
    align-self: center;
    margin-top: 0.25rem;
}

/* Profile page */
.profile {
    max-width: 32rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 1rem;
    text-align: center;
    background-color: rgba(95, 185, 225, 0.3);
    border-radius: 1rem;
    position: relative;
}

.profile__avatar {
    width: 9rem;
    height: 9rem;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.profile__name {
    margin-bottom: 1rem;
}

.profile__username {
    color: #9ca3af;
    margin-bottom: 0.5rem;
    margin-top: -0.75rem;
}

.profile .profile__username {
    color: var(--orange-1);
}

.profile__info {
    margin-top: 2rem;
    hyphens: auto;
    color: var(--orange-1);
}

/*---------------------------------- Avatar Selector --------------------------------*/

.avatar-selector {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.avatar-container {
    position: relative;
    display: inline-block;
}

.avatar-control {
    position: absolute;
    width: 4.5rem;
    height: 4.5rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    z-index: 10;
}

.avatar-control:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.avatar-control:active {
    transform: scale(0.95);
}

.avatar-control--gender {
    top: 1rem;
    left: 1rem;
    background-image: url('/static/images/defaultAvatars/symbol_male.png');
    background-size: 75%;
    background-position: center;
    background-repeat: no-repeat;
}

.avatar-control--cycle {
    top: 1rem;
    right: 1rem;
    background-image: url('/static/images/defaultAvatars/cycle.png');
    background-size: 75%;
    background-position: center;
    background-repeat: no-repeat;
}

.avatar-control img {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
    background-color: rgba(55, 65, 81, 0.1);
    border-radius: 50%;
    padding: 0.2rem;
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%);
}

.avatar-info {
    text-align: center;
    margin-top: 0.25rem;
}

#avatar-status {
    font-size: 0.875rem;
    color: var(--orange-1);
    font-weight: 500;
}

/*---------------------------------- End Avatar Selector --------------------------------*/

/* Welcome page */
.welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 56rem;
    margin: 0 auto;
    padding: 2rem 2rem 4rem 2rem;
    text-align: center;
}

.welcome__title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: var(--orange-1);
}

.welcome__story {
    margin-bottom: 1rem;
}

.welcome__intro {
    font-size: 1.25rem;
    color: var(--blue-font);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 50rem;
    margin-left: auto;
    margin-right: auto;
}

.welcome__video {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 3rem auto;
    padding-bottom: 50.625%; /* 16:9 aspect ratio for max-width */
    height: 0;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.welcome__video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
}

.welcome__inspiration,
.welcome__current {
    margin: 2.5rem auto;
    padding: 2rem;
    background: rgba(239, 250, 255, 0.5);
    border-radius: 1rem;
    border: 2px solid rgba(95, 185, 225, 0.2);
    max-width: 50rem;
}

.welcome__subtitle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--orange-1);
    margin-bottom: 1rem;
}

.welcome__description {
    font-size: 1.125rem;
    color: var(--blue-font);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-align: left;
}

.welcome__description:last-child {
    margin-bottom: 0;
}

.welcome__actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 0 0 2rem 0;
}

.welcome__footer {
    margin-top: 0rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(95, 185, 225, 0.3);
    max-width: 50rem;
    margin-left: auto;
    margin-right: auto;
}

.welcome__footer small {
    color: #6b7280;
    font-size: 0.875rem;
}

.welcome__footer a {
    color: var(--orange-1);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.welcome__footer a:hover {
    color: var(--blue-font);
}

/* Responsive welcome page */
@media (max-width: 768px) {
    .welcome {
        padding: 1rem 1rem 3rem 1rem;
    }
    
    .welcome__title {
        font-size: 2rem;
    }
    
    .welcome__intro {
        font-size: 1.125rem;
    }
    
    .welcome__video {
        max-width: 100%;
        margin: 2rem auto;
        padding-bottom: 56.25%; /* Standard 16:9 on mobile */
    }
    
    .welcome__subtitle {
        font-size: 1.25rem;
    }
    
    .welcome__description {
        font-size: 1rem;
        text-align: center;
    }
    
    .welcome__inspiration,
    .welcome__current {
        padding: 1.5rem;
        margin: 1.5rem auto;
    }
    
    .welcome__actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .welcome__actions .btn {
        min-width: 200px;
    }
}

@media (max-width: 500px) {
    .welcome {
        padding: 0.5rem 0.5rem 2rem 0.5rem;
    }
    
    .welcome__video {
        margin: 1.5rem auto;
    }
    
    .welcome__inspiration,
    .welcome__current {
        padding: 1rem;
        margin: 1rem auto;
    }
}

/* Forms */
.form {
    width: 100%;

}

.form__field {
    margin-bottom: 1rem;
}

.form__input {
    width: 100%;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    background: rgba(95, 185, 225, 0.3);
    border: none;
    font-size: 1rem;
    color: var(--blue-font)
}

.form__input--file {
    background-color: transparent;
    color: #9ca3af;
    padding-left: 0;
}

.form__input--black {
    color: black;
}

.form__textarea {
    resize: vertical;
    min-height: 4.5rem;
}

.form__error {
    padding: 0.25rem 1rem;
    border-left: 4px solid #ef4444;
    margin-bottom: 0.5rem;
    color: #ef4444;
    list-style: none;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal--open {
    opacity: 1;
    visibility: visible;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal__container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 1.5rem;
    max-width: 90%;
    max-height: 90%;
}

.modal__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.modal__actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

/* No more messages indicator */
.no-more-messages {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(224,242,245);
    color: rgb(38,87,136);
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem;
    border-radius: 0.5em 0.5em 0 0;
    animation: fadeInLoading 0.3s;
  }
  @keyframes fadeInLoading {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.no-more-messages--show {
    opacity: 1;
    transform: translateY(0);
}

.form__actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
}

/* Status indicators */
.status-dot {
    border-radius: 50%;
    padding: 0.375rem;
    position: absolute;
    bottom: 0;
    right: 0;
}

.status-dot--online {
    background-color: #10b981;
}

.status-dot--offline {
    background-color: #6b7280;
}

.status-dot--light {
    background-color: #d1d5db;
}

.status-dot--border {
    border: 1px solid #1f2937;
}

/* Member list */
.member-list {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.member-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 5rem;
    gap: 0.5rem;
    text-align: center;
}

.member-link {
    color: #9ca3af;
    text-decoration: none;
}

.member-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
}

/* Settings table */
.settings-table {
    width: 100%;
    table-layout: fixed;
    font-size: 0.875rem;
    text-align: left;
    color: var(--blue-font);
    border-collapse: collapse;
}

.settings-table th {
    padding: 1rem 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--blue-font);
}

.settings-table td {
    padding: 1rem 0 1rem 1rem;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 0;
}

.settings-table tr {
    border-bottom: 1px solid #e5e7eb;
}

.settings-right-column {
    text-align: right;
    padding-right: 1rem !important;
}

.settings-link {
    font-weight: 500;
    text-decoration: none;
    width: 100px;
    text-align: center;
    margin-left: auto;
    display: inline-block;
}


.settings-link--danger {
    background-color: #dc2626;
}

.status-verified {
    color: #10b981;
}

.status-unverified {
    color: var(--orange-1);
}

/* Edit member list */
.edit-member-list {
    margin: 1rem 0;
}

.edit-member-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.edit-member-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.edit-member-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    object-fit: cover;
}

.edit-member-name {
    font-weight: bold;
}

.edit-member-username {
    font-size: 0.875rem;
    font-weight: 300;
    color: #4b5563;
}

.remove-checkbox {
    position: relative;
    padding: 1.25rem;
    cursor: pointer;
    appearance: none;
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
    background-color: white;
}

.remove-checkbox:checked {
    background-color: #ef4444;
}

.remove-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-image: url('https://img.icons8.com/ffffff/32/multiply.png');
    background-position: center;
    background-repeat: no-repeat;
}

.remove-checkbox:hover {
    box-shadow: 0 0 0 3px rgba(209, 213, 219, 0.5);
}

.remove-checkbox:focus {
    outline: none;
}

/* Animations */
@keyframes fadeInAndUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0px);
    }
}

.fade-in-up {
    animation: fadeInAndUp 0.6s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(3);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in-scale {
    animation: fadeInScale 0.6s ease;
}

/* Missing core styles from original */
label {
    display: none;
}

label[for="id_remember"] {
    display: inline-block;
    width: auto;
    margin-right: 0.5rem;
}

input[name="remember"] {
    width: auto;
}

input[type=file] {
    background-color: none;
    padding-left: 0;
}

.textarea, textarea, input {
    width: 100%;
    border-radius: 0.5rem;
    background: rgba(95, 185, 225, 0.3);
    padding: 1rem 1.25rem;
}

/* Override browser autofill styling */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgba(224, 242, 245, 1) inset !important;
    -webkit-text-fill-color: var(--blue-font) !important;
    background-color: rgba(224, 242, 245, 1) !important;
}

input:-internal-autofill-selected {
    background-color: rgba(224, 242, 245, 1) !important;
    color: var(--blue-font) !important;
}

.errorlist li {
    margin-bottom: 0.5rem;
    border-left-width: 4px;
    border-style: solid;
    border-left-color: #ef4444;
    padding: 0.25rem 1rem;
    color: #ef4444;
}

/* Navigation styles */
.navitems > li > a {
    display: flex;
    height: 3rem;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.5rem;
    padding: 0 1rem;
    transition: background-color 0.2s;
}

.navitems > li > a:hover {
    background-color: rgba(31, 41, 55, 0.3);
}

.hoverlist > * {
    border-radius: 0.375rem;
    transition: background-color 0.15s;
}

.hoverlist > *:hover {
    background-color: #f3f4f6;
}

.hoverlist > * > a {
    display: flex;
    align-items: center;
    padding: 0.5rem;
}

.highlight {
    background-color: #e0e7ff !important;
}

/* Alert styles */
.alert-info {
    background-color: #0ea5e9;
}

.alert-success {
    background-color: #22c55e;
}

.alert-warning {
    background-color: #ef4444;
}

.alert-danger {
    background-color: #ef4444;
}

/* Status dots */
.green-dot {
    border-radius: 50%;
    background-color: #22c55e;
    padding: 0.375rem;
    z-index: 10;
}

.gray-dot {
    border-radius: 50%;
    background-color: #6b7280;
    padding: 0.375rem;
    z-index: 10;
}

.graylight-dot {
    border-radius: 50%;
    background-color: #d1d5db;
    padding: 0.375rem;
    z-index: 10;
}

/* Allauth specific styles */
.allauth content a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.allauth content a:hover {
    color: #6366f1;
}

.allauth form[action="/accounts/signup/"] ul {
    display: none;
}

.allauth form[action="/accounts/signup/"] ul.errorlist {
    display: block;
}

.allauth .helptext {
    display: block;
    margin-top: 1rem;
}

/* Message alerts */
.messages-container {
    position: fixed;
    top: 1rem;
    left: 0;
    right: 0;
    z-index: 50;
    pointer-events: none;
    text-align: center;
}

.message-alert {
    max-width: 36rem;
    margin: 0 auto 0.75rem auto;
    padding: 0.75rem 1.5rem 0.75rem 1rem;
    border-radius: 0.5rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease-out;
    pointer-events: auto;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.message-alert--show {
    opacity: 1;
    transform: translateY(0);
}

.message-alert--hide {
    opacity: 0;
    transform: translateY(-20px);
}

.message-alert--info {
    background-color: #0ea5e9;
}

.message-alert--success {
    background-color: #22c55e;
}

.message-alert--warning {
    background-color: #f59e0b;
}

.message-alert--error {
    background-color: #ef4444;
}

.message-alert__content {
    font-size: 1.125rem;
    flex-grow: 1;
}

.message-alert__close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.25rem;
    margin-left: 1rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
}

.message-alert__close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.message-alert__close-icon {
    width: 1.5rem;
    height: 1.5rem;
}

/* Missing Tailwind utility classes */
.absolute { position: absolute; }
.relative { position: relative !important; }
.top-1 { top: 0.25rem; }
.top-2 { top: 0.5rem; }
.left-1 { left: 0.25rem; }
.left-2 { left: 0.5rem; }
.right-0 { right: 0; }
.right-2 { right: 0.5rem; }
.bottom-0 { bottom: 0; }
.border-1 { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-gray-800 { border-color: #1f2937; }
.z-20 { z-index: 20; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.w-14 { width: 3.5rem; }
.w-20 { width: 5rem; }
.h-14 { height: 3.5rem; }
.rounded-full { border-radius: 50%; }
.object-cover { object-fit: cover; }
.text-gray-400 { color: #9ca3af; }
.pr-1 { padding-right: 0.25rem; }
.bg-red-500 { background-color: #ef4444; }
.rounded-lg { border-radius: 0.5rem; }
.pt-1 { padding-top: 0.25rem; }
.pb-2 { padding-bottom: 0.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.text-white { color: white; }
.text-sm { font-size: 0.875rem; }
.ml-4 { margin-left: 1rem; }

/* Utility classes (minimal set) */
.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive header layout */
@media (max-width: 750px) {
  /* Progressively move brand section left to make room for nav */
  .header__brand-section {
    left: 45%;
    transform: translateX(-45%);
  }
}
@media (max-width: 600px) {
  /* Progressively move brand section left to make room for nav */
  .header__brand-section {
    left: 30%;
    transform: translateX(-30%);
  }
}
@media (max-width: 550px) {
  /* Progressively move brand section left to make room for nav */
  .header__brand-section {
    left: 25%;
    transform: translateX(-25%);
  }
}

@media (max-width: 450px) {
  /* Progressively move brand section left to make room for nav */
  .header__brand {
    justify-content: flex-start;
  }
  .header {
    padding: 0;
  }
  .header__nav-link {
    padding: 0rem !important;
  }
}

@media (max-width: 500px) {
  .btn-header-count {
    padding: 0.5rem;
    font-size: 0.875rem;
  }
  .header__nav-link {
    font-size: 1rem !important;
  }
  .message__author-details {
    display: none !important;
  }

  .chat-messages {
    padding: 0rem;
  }
  .chat-wrapper {
    padding: 0.25rem 0.1rem 0.25rem 0.1rem;

  }
  .chat-file-form {
    gap: 0.5rem;
    align-items: flex-start;
  }
  #file-name {
    max-width: 8em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
  }
  
  /* Settings table responsiveness */
  .settings-table {
    font-size: 0.75rem;
  }
  
  .settings-table th {
    padding: 0.5rem 0 0.25rem 0;
    font-size: 0.875rem;
  }
  
  .settings-table td {
    padding: 0.5rem 0 0.5rem 0.5rem;
  }
  
  .settings-right-column {
    padding-right: 0.5rem !important;
  }
  
  .settings-link {
    width: auto;
    min-width: 60px;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }
}

@media (max-height: 850px) {
    .mb-4 {
        margin-bottom: 0;
    }
    .profile {
        padding: 0.5rem;
    }
    .profile__avatar {
        width: 6rem;
        height: 6rem;
        margin-bottom: 0.5rem;
    }
    .content-box {
        padding: 0.5rem;
        margin: 0;
    }
    .chat-wrapper {
        max-height: 90%;
    }
}