*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}/*
! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com
*//*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

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

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

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */ /* 3 */
  tab-size: 4; /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

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

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

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

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

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

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

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

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

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

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

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

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

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

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

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

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

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

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

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

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

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

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

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

/*
Reset default styling for dialogs.
*/
dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

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

/*
Set the default cursor for buttons.
*/

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

/*
Make sure disabled buttons don't get the pointer cursor.
*/
:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

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

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

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

/* Make elements with the HTML hidden attribute stay hidden by default */
[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}
.container {
  width: 100%;
}
@media (min-width: 640px) {

  .container {
    max-width: 640px;
  }
}
@media (min-width: 768px) {

  .container {
    max-width: 768px;
  }
}
@media (min-width: 1024px) {

  .container {
    max-width: 1024px;
  }
}
@media (min-width: 1280px) {

  .container {
    max-width: 1280px;
  }
}
@media (min-width: 1536px) {

  .container {
    max-width: 1536px;
  }
}
.visible {
  visibility: visible;
}
.invisible {
  visibility: hidden;
}
.collapse {
  visibility: collapse;
}
.fixed {
  position: fixed;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.inset-0 {
  inset: 0px;
}
.left-0 {
  left: 0px;
}
.left-4 {
  left: 1rem;
}
.top-0 {
  top: 0px;
}
.top-9 {
  top: 2.25rem;
}
.isolate {
  isolation: isolate;
}
.z-10 {
  z-index: 10;
}
.z-50 {
  z-index: 50;
}
.z-\[2000\] {
  z-index: 2000;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-10 {
  margin-bottom: 2.5rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.ml-10 {
  margin-left: 2.5rem;
}
.ml-2 {
  margin-left: 0.5rem;
}
.ml-8 {
  margin-left: 2rem;
}
.mr-2 {
  margin-right: 0.5rem;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.grid {
  display: grid;
}
.hidden {
  display: none;
}
.h-16 {
  height: 4rem;
}
.h-5 {
  height: 1.25rem;
}
.h-full {
  height: 100%;
}
.min-h-screen {
  min-height: 100vh;
}
.w-16 {
  width: 4rem;
}
.w-2\/3 {
  width: 66.666667%;
}
.w-40 {
  width: 10rem;
}
.w-5 {
  width: 1.25rem;
}
.w-72 {
  width: 18rem;
}
.w-full {
  width: 100%;
}
.max-w-lg {
  max-width: 32rem;
}
.max-w-md {
  max-width: 28rem;
}
.max-w-xl {
  max-width: 36rem;
}
.flex-shrink-0 {
  flex-shrink: 0;
}
.shrink {
  flex-shrink: 1;
}
.-translate-x-full {
  --tw-translate-x: -100%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.translate-x-0 {
  --tw-translate-x: 0px;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
@keyframes spin {

  to {
    transform: rotate(360deg);
  }
}
.animate-spin {
  animation: spin 1s linear infinite;
}
.cursor-not-allowed {
  cursor: not-allowed;
}
.resize {
  resize: both;
}
.list-inside {
  list-style-position: inside;
}
.list-disc {
  list-style-type: disc;
}
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.flex-col {
  flex-direction: column;
}
.items-start {
  align-items: flex-start;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-4 {
  gap: 1rem;
}
.space-y-2 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
}
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rounded {
  border-radius: 0.25rem;
}
.rounded-lg {
  border-radius: 0.5rem;
}
.rounded-md {
  border-radius: 0.375rem;
}
.rounded-xl {
  border-radius: 0.75rem;
}
.border {
  border-width: 1px;
}
.border-b {
  border-bottom-width: 1px;
}
.border-l-4 {
  border-left-width: 4px;
}
.border-blue-400 {
  --tw-border-opacity: 1;
  border-color: rgb(96 165 250 / 1);
  border-color: rgb(96 165 250 / var(--tw-border-opacity, 1));
}
.border-gray-200 {
  --tw-border-opacity: 1;
  border-color: rgb(229 231 235 / 1);
  border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.border-gray-300 {
  --tw-border-opacity: 1;
  border-color: rgb(209 213 219 / 1);
  border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
}
.bg-black {
  --tw-bg-opacity: 1;
  background-color: rgb(0 0 0 / 1);
  background-color: rgb(0 0 0 / var(--tw-bg-opacity, 1));
}
.bg-black\/50 {
  background-color: rgb(0 0 0 / 0.5);
}
.bg-blue-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(37 99 235 / 1);
  background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1));
}
.bg-blue-900 {
  --tw-bg-opacity: 1;
  background-color: rgb(30 58 138 / 1);
  background-color: rgb(30 58 138 / var(--tw-bg-opacity, 1));
}
.bg-gray-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(243 244 246 / 1);
  background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.bg-gray-300 {
  --tw-bg-opacity: 1;
  background-color: rgb(209 213 219 / 1);
  background-color: rgb(209 213 219 / var(--tw-bg-opacity, 1));
}
.bg-gray-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(249 250 251 / 1);
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}
.bg-gray-700 {
  --tw-bg-opacity: 1;
  background-color: rgb(55 65 81 / 1);
  background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}
.bg-gray-800 {
  --tw-bg-opacity: 1;
  background-color: rgb(31 41 55 / 1);
  background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.bg-green-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(22 163 74 / 1);
  background-color: rgb(22 163 74 / var(--tw-bg-opacity, 1));
}
.bg-red-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 226 226 / 1);
  background-color: rgb(254 226 226 / var(--tw-bg-opacity, 1));
}
.bg-red-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(220 38 38 / 1);
  background-color: rgb(220 38 38 / var(--tw-bg-opacity, 1));
}
.bg-white {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / 1);
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.bg-yellow-200 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 240 138 / 1);
  background-color: rgb(254 240 138 / var(--tw-bg-opacity, 1));
}
.bg-opacity-50 {
  --tw-bg-opacity: 0.5;
}
.bg-opacity-70 {
  --tw-bg-opacity: 0.7;
}
.p-10 {
  padding: 2.5rem;
}
.p-2 {
  padding: 0.5rem;
}
.p-4 {
  padding: 1rem;
}
.p-5 {
  padding: 1.25rem;
}
.p-6 {
  padding: 1.5rem;
}
.p-8 {
  padding: 2rem;
}
.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.pl-2 {
  padding-left: 0.5rem;
}
.pl-56 {
  padding-left: 14rem;
}
.text-left {
  text-align: left;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}
.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}
.font-bold {
  font-weight: 700;
}
.font-medium {
  font-weight: 500;
}
.font-semibold {
  font-weight: 600;
}
.uppercase {
  text-transform: uppercase;
}
.lowercase {
  text-transform: lowercase;
}
.italic {
  font-style: italic;
}
.text-blue-600 {
  --tw-text-opacity: 1;
  color: rgb(37 99 235 / 1);
  color: rgb(37 99 235 / var(--tw-text-opacity, 1));
}
.text-gray-600 {
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / 1);
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}
.text-gray-700 {
  --tw-text-opacity: 1;
  color: rgb(55 65 81 / 1);
  color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}
.text-gray-800 {
  --tw-text-opacity: 1;
  color: rgb(31 41 55 / 1);
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}
.text-green-600 {
  --tw-text-opacity: 1;
  color: rgb(22 163 74 / 1);
  color: rgb(22 163 74 / var(--tw-text-opacity, 1));
}
.text-red-400 {
  --tw-text-opacity: 1;
  color: rgb(248 113 113 / 1);
  color: rgb(248 113 113 / var(--tw-text-opacity, 1));
}
.text-red-600 {
  --tw-text-opacity: 1;
  color: rgb(220 38 38 / 1);
  color: rgb(220 38 38 / var(--tw-text-opacity, 1));
}
.text-red-700 {
  --tw-text-opacity: 1;
  color: rgb(185 28 28 / 1);
  color: rgb(185 28 28 / var(--tw-text-opacity, 1));
}
.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / 1);
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.text-yellow-400 {
  --tw-text-opacity: 1;
  color: rgb(250 204 21 / 1);
  color: rgb(250 204 21 / var(--tw-text-opacity, 1));
}
.underline {
  -webkit-text-decoration-line: underline;
          text-decoration-line: underline;
}
.opacity-25 {
  opacity: 0.25;
}
.opacity-50 {
  opacity: 0.5;
}
.opacity-75 {
  opacity: 0.75;
}
.shadow {
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: 0 0 #0000, 0 0 #0000, var(--tw-shadow);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-lg {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: 0 0 #0000, 0 0 #0000, var(--tw-shadow);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-md {
  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
  box-shadow: 0 0 #0000, 0 0 #0000, var(--tw-shadow);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.transition {
  transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.duration-200 {
  transition-duration: 200ms;
}
.duration-300 {
  transition-duration: 300ms;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

.hover\:bg-blue-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(29 78 216 / 1);
  background-color: rgb(29 78 216 / var(--tw-bg-opacity, 1));
}

.hover\:bg-gray-400:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(156 163 175 / 1);
  background-color: rgb(156 163 175 / var(--tw-bg-opacity, 1));
}

.hover\:bg-gray-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(55 65 81 / 1);
  background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}

.hover\:bg-red-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(185 28 28 / 1);
  background-color: rgb(185 28 28 / var(--tw-bg-opacity, 1));
}

.hover\:underline:hover {
  -webkit-text-decoration-line: underline;
          text-decoration-line: underline;
}

.focus\:border-blue-500:focus {
  --tw-border-opacity: 1;
  border-color: rgb(59 130 246 / 1);
  border-color: rgb(59 130 246 / var(--tw-border-opacity, 1));
}

.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.focus\:ring-2:focus {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 0 #0000;
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.focus\:ring-blue-500:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity, 1));
}

.disabled\:opacity-50:disabled {
  opacity: 0.5;
}

@media (min-width: 768px) {

  .md\:w-1\/2 {
    width: 50%;
  }

  .md\:flex-row {
    flex-direction: row;
  }

  .md\:text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}

:root {
  --toastify-color-light: #fff;
  --toastify-color-dark: #121212;
  --toastify-color-info: #3498db;
  --toastify-color-success: #07bc0c;
  --toastify-color-warning: #f1c40f;
  --toastify-color-error: hsl(6, 78%, 57%);
  --toastify-color-transparent: rgba(255, 255, 255, 0.7);

  --toastify-icon-color-info: var(--toastify-color-info);
  --toastify-icon-color-success: var(--toastify-color-success);
  --toastify-icon-color-warning: var(--toastify-color-warning);
  --toastify-icon-color-error: var(--toastify-color-error);

  --toastify-container-width: fit-content;
  --toastify-toast-width: 320px;
  --toastify-toast-offset: 16px;
  --toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));
  --toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));
  --toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));
  --toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));
  --toastify-toast-background: #fff;
  --toastify-toast-padding: 14px;
  --toastify-toast-min-height: 64px;
  --toastify-toast-max-height: 800px;
  --toastify-toast-bd-radius: 6px;
  --toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  --toastify-font-family: sans-serif;
  --toastify-z-index: 9999;
  --toastify-text-color-light: #757575;
  --toastify-text-color-dark: #fff;

  /* Used only for colored theme */
  --toastify-text-color-info: #fff;
  --toastify-text-color-success: #fff;
  --toastify-text-color-warning: #fff;
  --toastify-text-color-error: #fff;

  --toastify-spinner-color: #616161;
  --toastify-spinner-color-empty-area: #e0e0e0;
  --toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);
  --toastify-color-progress-dark: #bb86fc;
  --toastify-color-progress-info: var(--toastify-color-info);
  --toastify-color-progress-success: var(--toastify-color-success);
  --toastify-color-progress-warning: var(--toastify-color-warning);
  --toastify-color-progress-error: var(--toastify-color-error);
  /* used to control the opacity of the progress trail */
  --toastify-color-progress-bgo: 0.2;
}

.Toastify__toast-container {
  z-index: 9999;
  z-index: var(--toastify-z-index);
  -webkit-transform: translate3d(0, 0, 9999);
  -webkit-transform: translate3d(0, 0, var(--toastify-z-index));
  position: fixed;
  width: -webkit-fit-content;
  width: fit-content;
  width: var(--toastify-container-width);
  box-sizing: border-box;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.Toastify__toast-container--top-left {
  top: max(16px, env(safe-area-inset-top));
  top: var(--toastify-toast-top);
  left: max(16px, env(safe-area-inset-left));
  left: var(--toastify-toast-left);
}
.Toastify__toast-container--top-center {
  top: max(16px, env(safe-area-inset-top));
  top: var(--toastify-toast-top);
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
}
.Toastify__toast-container--top-right {
  top: max(16px, env(safe-area-inset-top));
  top: var(--toastify-toast-top);
  right: max(16px, env(safe-area-inset-right));
  right: var(--toastify-toast-right);
  align-items: end;
}
.Toastify__toast-container--bottom-left {
  bottom: max(16px, env(safe-area-inset-bottom));
  bottom: var(--toastify-toast-bottom);
  left: max(16px, env(safe-area-inset-left));
  left: var(--toastify-toast-left);
}
.Toastify__toast-container--bottom-center {
  bottom: max(16px, env(safe-area-inset-bottom));
  bottom: var(--toastify-toast-bottom);
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
}
.Toastify__toast-container--bottom-right {
  bottom: max(16px, env(safe-area-inset-bottom));
  bottom: var(--toastify-toast-bottom);
  right: max(16px, env(safe-area-inset-right));
  right: var(--toastify-toast-right);
  align-items: end;
}

.Toastify__toast {
  --y: 0;
  position: relative;
  touch-action: none;
  width: 320px;
  width: var(--toastify-toast-width);
  min-height: 64px;
  min-height: var(--toastify-toast-min-height);
  box-sizing: border-box;
  margin-bottom: 1rem;
  padding: 14px;
  padding: var(--toastify-toast-padding);
  border-radius: 6px;
  border-radius: var(--toastify-toast-bd-radius);
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  box-shadow: var(--toastify-toast-shadow);
  max-height: 800px;
  max-height: var(--toastify-toast-max-height);
  font-family: sans-serif;
  font-family: var(--toastify-font-family);
  /* webkit only issue #791 */
  z-index: 0;
  /* inner swag */
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  word-break: break-word;
}

@media only screen and (max-width: 480px) {
  .Toastify__toast-container {
    width: 100vw;
    left: env(safe-area-inset-left);
    margin: 0;
  }
  .Toastify__toast-container--top-left,
  .Toastify__toast-container--top-center,
  .Toastify__toast-container--top-right {
    top: env(safe-area-inset-top);
    transform: translateX(0);
  }
  .Toastify__toast-container--bottom-left,
  .Toastify__toast-container--bottom-center,
  .Toastify__toast-container--bottom-right {
    bottom: env(safe-area-inset-bottom);
    transform: translateX(0);
  }
  .Toastify__toast-container--rtl {
    right: env(safe-area-inset-right);
    left: auto;
    left: initial;
  }
  .Toastify__toast {
    --toastify-toast-width: 100%;
    margin-bottom: 0;
    border-radius: 0;
  }
}

.Toastify__toast-container[data-stacked='true'] {
  width: 320px;
  width: var(--toastify-toast-width);
}

.Toastify__toast--stacked {
  position: absolute;
  width: 100%;
  transform: translate3d(0, var(--y), 0) scale(var(--s));
  transition: transform 0.3s;
}

.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,
.Toastify__toast--stacked[data-collapsed] .Toastify__close-button {
  transition: opacity 0.1s;
}

.Toastify__toast--stacked[data-collapsed='false'] {
  overflow: visible;
}

.Toastify__toast--stacked[data-collapsed='true']:not(:last-child) > * {
  opacity: 0;
}

.Toastify__toast--stacked:after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: calc(var(--g) * 1px);
  bottom: 100%;
}

.Toastify__toast--stacked[data-pos='top'] {
  top: 0;
}

.Toastify__toast--stacked[data-pos='bot'] {
  bottom: 0;
}

.Toastify__toast--stacked[data-pos='bot'].Toastify__toast--stacked:before {
  transform-origin: top;
}

.Toastify__toast--stacked[data-pos='top'].Toastify__toast--stacked:before {
  transform-origin: bottom;
}

.Toastify__toast--stacked:before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  transform: scaleY(3);
  z-index: -1;
}

.Toastify__toast--rtl {
  direction: rtl;
}

.Toastify__toast--close-on-click {
  cursor: pointer;
}

.Toastify__toast-icon {
  -webkit-margin-end: 10px;
          margin-inline-end: 10px;
  width: 22px;
  flex-shrink: 0;
  display: flex;
}

.Toastify--animate {
  animation-fill-mode: both;
  animation-duration: 0.5s;
}

.Toastify--animate-icon {
  animation-fill-mode: both;
  animation-duration: 0.3s;
}

.Toastify__toast-theme--dark {
  background: #121212;
  background: var(--toastify-color-dark);
  color: #fff;
  color: var(--toastify-text-color-dark);
}

.Toastify__toast-theme--light {
  background: #fff;
  background: var(--toastify-color-light);
  color: #757575;
  color: var(--toastify-text-color-light);
}

.Toastify__toast-theme--colored.Toastify__toast--default {
  background: #fff;
  background: var(--toastify-color-light);
  color: #757575;
  color: var(--toastify-text-color-light);
}

.Toastify__toast-theme--colored.Toastify__toast--info {
  color: #fff;
  color: var(--toastify-text-color-info);
  background: #3498db;
  background: var(--toastify-color-info);
}

.Toastify__toast-theme--colored.Toastify__toast--success {
  color: #fff;
  color: var(--toastify-text-color-success);
  background: #07bc0c;
  background: var(--toastify-color-success);
}

.Toastify__toast-theme--colored.Toastify__toast--warning {
  color: #fff;
  color: var(--toastify-text-color-warning);
  background: #f1c40f;
  background: var(--toastify-color-warning);
}

.Toastify__toast-theme--colored.Toastify__toast--error {
  color: #fff;
  color: var(--toastify-text-color-error);
  background: hsl(6, 78%, 57%);
  background: var(--toastify-color-error);
}

.Toastify__progress-bar-theme--light {
  background: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);
  background: var(--toastify-color-progress-light);
}

.Toastify__progress-bar-theme--dark {
  background: #bb86fc;
  background: var(--toastify-color-progress-dark);
}

.Toastify__progress-bar--info {
  background: #3498db;
  background: var(--toastify-color-progress-info);
}

.Toastify__progress-bar--success {
  background: #07bc0c;
  background: var(--toastify-color-progress-success);
}

.Toastify__progress-bar--warning {
  background: #f1c40f;
  background: var(--toastify-color-progress-warning);
}

.Toastify__progress-bar--error {
  background: hsl(6, 78%, 57%);
  background: var(--toastify-color-progress-error);
}

.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,
.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,
.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,
.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error {
  background: rgba(255, 255, 255, 0.7);
  background: var(--toastify-color-transparent);
}

.Toastify__close-button {
  color: #fff;
  position: absolute;
  top: 6px;
  right: 6px;
  background: transparent;
  outline: none;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0.7;
  transition: 0.3s ease;
  z-index: 1;
}

.Toastify__toast--rtl .Toastify__close-button {
  left: 6px;
  right: auto;
  right: initial;
}

.Toastify__close-button--light {
  color: #000;
  opacity: 0.3;
}

.Toastify__close-button > svg {
  fill: currentColor;
  height: 16px;
  width: 14px;
}

.Toastify__close-button:hover,
.Toastify__close-button:focus {
  opacity: 1;
}

@keyframes Toastify__trackProgress {
  0% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0);
  }
}

.Toastify__progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.7;
  transform-origin: left;
}

.Toastify__progress-bar--animated {
  animation: Toastify__trackProgress linear 1 forwards;
}

.Toastify__progress-bar--controlled {
  transition: transform 0.2s;
}

.Toastify__progress-bar--rtl {
  right: 0;
  left: auto;
  left: initial;
  transform-origin: right;
  border-bottom-left-radius: 0;
  border-bottom-left-radius: initial;
}

.Toastify__progress-bar--wrp {
  position: absolute;
  overflow: hidden;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  border-bottom-left-radius: 6px;
  border-bottom-left-radius: var(--toastify-toast-bd-radius);
  border-bottom-right-radius: 6px;
  border-bottom-right-radius: var(--toastify-toast-bd-radius);
}

.Toastify__progress-bar--wrp[data-hidden='true'] {
  opacity: 0;
}

.Toastify__progress-bar--bg {
  opacity: 0.2;
  opacity: var(--toastify-color-progress-bgo);
  width: 100%;
  height: 100%;
}

.Toastify__spinner {
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  border: 2px solid;
  border-radius: 100%;
  border-color: #e0e0e0;
  border-color: var(--toastify-spinner-color-empty-area);
  border-right-color: #616161;
  border-right-color: var(--toastify-spinner-color);
  animation: Toastify__spin 0.65s linear infinite;
}

@keyframes Toastify__bounceInRight {
  from,
  60%,
  75%,
  90%,
  to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  from {
    opacity: 0;
    transform: translate3d(3000px, 0, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(-25px, 0, 0);
  }
  75% {
    transform: translate3d(10px, 0, 0);
  }
  90% {
    transform: translate3d(-5px, 0, 0);
  }
  to {
    transform: none;
  }
}

@keyframes Toastify__bounceOutRight {
  20% {
    opacity: 1;
    transform: translate3d(-20px, var(--y), 0);
  }
  to {
    opacity: 0;
    transform: translate3d(2000px, var(--y), 0);
  }
}

@keyframes Toastify__bounceInLeft {
  from,
  60%,
  75%,
  90%,
  to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  0% {
    opacity: 0;
    transform: translate3d(-3000px, 0, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(25px, 0, 0);
  }
  75% {
    transform: translate3d(-10px, 0, 0);
  }
  90% {
    transform: translate3d(5px, 0, 0);
  }
  to {
    transform: none;
  }
}

@keyframes Toastify__bounceOutLeft {
  20% {
    opacity: 1;
    transform: translate3d(20px, var(--y), 0);
  }
  to {
    opacity: 0;
    transform: translate3d(-2000px, var(--y), 0);
  }
}

@keyframes Toastify__bounceInUp {
  from,
  60%,
  75%,
  90%,
  to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  from {
    opacity: 0;
    transform: translate3d(0, 3000px, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(0, -20px, 0);
  }
  75% {
    transform: translate3d(0, 10px, 0);
  }
  90% {
    transform: translate3d(0, -5px, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes Toastify__bounceOutUp {
  20% {
    transform: translate3d(0, calc(var(--y) - 10px), 0);
  }
  40%,
  45% {
    opacity: 1;
    transform: translate3d(0, calc(var(--y) + 20px), 0);
  }
  to {
    opacity: 0;
    transform: translate3d(0, -2000px, 0);
  }
}

@keyframes Toastify__bounceInDown {
  from,
  60%,
  75%,
  90%,
  to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  0% {
    opacity: 0;
    transform: translate3d(0, -3000px, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(0, 25px, 0);
  }
  75% {
    transform: translate3d(0, -10px, 0);
  }
  90% {
    transform: translate3d(0, 5px, 0);
  }
  to {
    transform: none;
  }
}

@keyframes Toastify__bounceOutDown {
  20% {
    transform: translate3d(0, calc(var(--y) - 10px), 0);
  }
  40%,
  45% {
    opacity: 1;
    transform: translate3d(0, calc(var(--y) + 20px), 0);
  }
  to {
    opacity: 0;
    transform: translate3d(0, 2000px, 0);
  }
}

.Toastify__bounce-enter--top-left,
.Toastify__bounce-enter--bottom-left {
  animation-name: Toastify__bounceInLeft;
}

.Toastify__bounce-enter--top-right,
.Toastify__bounce-enter--bottom-right {
  animation-name: Toastify__bounceInRight;
}

.Toastify__bounce-enter--top-center {
  animation-name: Toastify__bounceInDown;
}

.Toastify__bounce-enter--bottom-center {
  animation-name: Toastify__bounceInUp;
}

.Toastify__bounce-exit--top-left,
.Toastify__bounce-exit--bottom-left {
  animation-name: Toastify__bounceOutLeft;
}

.Toastify__bounce-exit--top-right,
.Toastify__bounce-exit--bottom-right {
  animation-name: Toastify__bounceOutRight;
}

.Toastify__bounce-exit--top-center {
  animation-name: Toastify__bounceOutUp;
}

.Toastify__bounce-exit--bottom-center {
  animation-name: Toastify__bounceOutDown;
}

@keyframes Toastify__zoomIn {
  from {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }
  50% {
    opacity: 1;
  }
}

@keyframes Toastify__zoomOut {
  from {
    opacity: 1;
  }
  50% {
    opacity: 0;
    transform: translate3d(0, var(--y), 0) scale3d(0.3, 0.3, 0.3);
  }
  to {
    opacity: 0;
  }
}

.Toastify__zoom-enter {
  animation-name: Toastify__zoomIn;
}

.Toastify__zoom-exit {
  animation-name: Toastify__zoomOut;
}

@keyframes Toastify__flipIn {
  from {
    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
    animation-timing-function: ease-in;
    opacity: 0;
  }
  40% {
    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
    animation-timing-function: ease-in;
  }
  60% {
    transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
    opacity: 1;
  }
  80% {
    transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
  }
  to {
    transform: perspective(400px);
  }
}

@keyframes Toastify__flipOut {
  from {
    transform: translate3d(0, var(--y), 0) perspective(400px);
  }
  30% {
    transform: translate3d(0, var(--y), 0) perspective(400px) rotate3d(1, 0, 0, -20deg);
    opacity: 1;
  }
  to {
    transform: translate3d(0, var(--y), 0) perspective(400px) rotate3d(1, 0, 0, 90deg);
    opacity: 0;
  }
}

.Toastify__flip-enter {
  animation-name: Toastify__flipIn;
}

.Toastify__flip-exit {
  animation-name: Toastify__flipOut;
}

@keyframes Toastify__slideInRight {
  from {
    transform: translate3d(110%, 0, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, var(--y), 0);
  }
}

@keyframes Toastify__slideInLeft {
  from {
    transform: translate3d(-110%, 0, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, var(--y), 0);
  }
}

@keyframes Toastify__slideInUp {
  from {
    transform: translate3d(0, 110%, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, var(--y), 0);
  }
}

@keyframes Toastify__slideInDown {
  from {
    transform: translate3d(0, -110%, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, var(--y), 0);
  }
}

@keyframes Toastify__slideOutRight {
  from {
    transform: translate3d(0, var(--y), 0);
  }
  to {
    visibility: hidden;
    transform: translate3d(110%, var(--y), 0);
  }
}

@keyframes Toastify__slideOutLeft {
  from {
    transform: translate3d(0, var(--y), 0);
  }
  to {
    visibility: hidden;
    transform: translate3d(-110%, var(--y), 0);
  }
}

@keyframes Toastify__slideOutDown {
  from {
    transform: translate3d(0, var(--y), 0);
  }
  to {
    visibility: hidden;
    transform: translate3d(0, 500px, 0);
  }
}

@keyframes Toastify__slideOutUp {
  from {
    transform: translate3d(0, var(--y), 0);
  }
  to {
    visibility: hidden;
    transform: translate3d(0, -500px, 0);
  }
}

.Toastify__slide-enter--top-left,
.Toastify__slide-enter--bottom-left {
  animation-name: Toastify__slideInLeft;
}

.Toastify__slide-enter--top-right,
.Toastify__slide-enter--bottom-right {
  animation-name: Toastify__slideInRight;
}

.Toastify__slide-enter--top-center {
  animation-name: Toastify__slideInDown;
}

.Toastify__slide-enter--bottom-center {
  animation-name: Toastify__slideInUp;
}

.Toastify__slide-exit--top-left,
.Toastify__slide-exit--bottom-left {
  animation-name: Toastify__slideOutLeft;
  animation-timing-function: ease-in;
  animation-duration: 0.3s;
}

.Toastify__slide-exit--top-right,
.Toastify__slide-exit--bottom-right {
  animation-name: Toastify__slideOutRight;
  animation-timing-function: ease-in;
  animation-duration: 0.3s;
}

.Toastify__slide-exit--top-center {
  animation-name: Toastify__slideOutUp;
  animation-timing-function: ease-in;
  animation-duration: 0.3s;
}

.Toastify__slide-exit--bottom-center {
  animation-name: Toastify__slideOutDown;
  animation-timing-function: ease-in;
  animation-duration: 0.3s;
}

@keyframes Toastify__spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.login-title {
  margin-left: -6.2rem; /* desktop default */
}

.login-wire {
  left: 3rem; /* Tailwind's left-12 = 3rem */
}

.login-bullet {
  text-indent: -1rem;
  padding-left: 1rem;
  position: relative;
}

/* desktop positions */
.bullet1 { margin-left: 2.8rem; margin-top: 0rem; }
.bullet2 { margin-left: 3.0rem; margin-top: 1.5rem; }
.bullet3 { margin-left: 2.7rem; margin-top: 1.5rem; }
.bullet4 { margin-left: 2.7rem; margin-top: 1.5rem; }
.bullet5 { margin-left: 2.9rem; margin-top: 1.5rem; }
.bullet6 { margin-left: 2.9rem; margin-top: 1.5rem; }






@media (max-width: 768px) {
  .login-title {
    margin-left: -6.9rem; /* adjust for mobile */
    font-size: 1.5rem;  /* shrink if needed */
  }

   .login-wire {
    left: 0.6rem; /* move closer to the edge on small screens */
  }

  .login-bullet {
  text-indent: -1rem;
  padding-left: 1rem;
  position: relative;
  font-size: 1.2rem; /* Tailwind text-lg */
}

  .bullet1 { margin-left: 1rem; margin-top: 0.2rem; }
  .bullet2 { margin-left: 1rem; margin-top: 1rem; }
  .bullet3 { margin-left: 1rem; margin-top: 1rem; }
  .bullet4 { margin-left: 0.8rem; margin-top: 1rem; }
  .bullet5 { margin-left: 1rem; margin-top: 1rem; }
  .bullet6 { margin-left: 1rem; margin-top: 1rem; }
}

/* Notes.css */
.note-preview {
  padding: 10px;
  border-bottom: 1px solid #ccc;
}

.previewText {
  font-size: 16px;
}

.tab-row {
  display: flex;
  justify-content: center;
  gap: 10px; /* space between tabs */
  margin-bottom: 10px;
  margin-top: 20px;
}

.tab-button {
  padding: 8px 16px;
  border: 1px solid #ccc;
  background-color: white;
  cursor: pointer;
  border-radius: 4px;
}

.notes-page {
  padding: 2rem 1rem 1rem 1rem;
  padding-bottom: 120px;
  background-color: #e6f2ff;
  min-height: 100vh;
  width: 100%;               /* ✅ prevents extra horizontal scroll */
  max-width: 100%;           /* ✅ ensure full width but not beyond viewport */
  overflow-x: hidden;        /* ✅ just in case */
  box-sizing: border-box;
  margin-top: -40px;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: #f9f5e3; /* match page color just in case */
}

.notes-page.compact {
  padding: 2rem 2rem 1rem 2rem; /* more space on sides when sidebar is hidden */
}

.notes-description {
  font-size: 14px;
  margin-bottom: 12px;
  color: #555;
}

.notes-refresh-btn {
  font-size: 13px;
  background: none;
  border: none;
  color: #007bff;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.search-bar-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.search-bar {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 2rem auto;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  background-color: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.add-note-btn {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 25px);
  left: 50%;
  transform: translateX(-50%);
  background-color: #1e3a8a;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* 🚫 Disable all hover, active, or transition effects completely */
.add-note-btn:hover,
.add-note-btn:focus,
.add-note-btn:active {
  background-color: #1e3a8a;
  transform: translateX(-50%) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: none !important;
  filter: none !important;
}

@media (max-width: 640px) and (orientation: portrait) {
  .notes-page {
    padding-top: 2.5rem;
    padding-bottom: 160px;
  }

  .add-note-btn {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 50px);
  }
}


.note-action-buttons .additional-button {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.form-fields input,
.form-fields textarea {
  margin-bottom: 12px;
}

.note-input {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.note-textarea.full-width {
  width: 100%;
  max-width: 100%;
  padding: 8px;
  box-sizing: border-box;
  margin-bottom: 10px;
}

.wide-textarea {
  width: 100%;
  min-height: 60px;
  resize: vertical;
}


.note-action-buttons {
  margin-top: 10px;
  display: flex;
  gap: 18px; /* 👈 THIS controls spacing */
}



.tab-button.active {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

.add-note-btn-group {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 1000;
}

.save-btn, .cancel-btn, .share-btn {
  margin-right: 10px;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

.save-btn {
  background-color: #28a745 !important;
  color: white;
}

.save-btn:hover {
  background-color: #218838; 
}

.cancel-btn {
  background-color: #e65151!important;
  color: white;
}

.cancel-btn:hover {
  background-color: #c82333;
}

.share-btn {
  background-color: #ffc107 !important;
  color: white;
}

.share-btn:hover {
  background-color: #e0a800;
}

.add-associate-btn {
  font-size: 13px;
  padding: 2px 6px;
  border: 1px solid #007bff;
  background-color: #007bff;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  line-height: 1;
}

.image-preview-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.image-preview-container {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-preview-full {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(255,255,255,0.3);
}

.download-btn {
  margin-top: 10px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.download-btn:hover {
  background-color: #0056b3;
}

.close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  width: 30px;
  height: 30px;
  cursor: pointer;
}


/* Optional for mobile */
@media (max-width: 600px) {
  .add-associate-btn {
    font-size: 11px;
    padding: 1px 4px;
  }

.full-width {
  width: 100%;
  box-sizing: border-box;
}

  .save-btn,
  .cancel-btn,
  .share-btn {
    width: 100%;
    margin-top: 10px;
    font-size: 16px;
  }

  .add-note-btn {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 10px); /* 🔼 slightly higher for phones */
  }

  .notes-page {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .search-bar {
    margin-left: 0;
    margin-right: 0;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

    /* 🔧 Fix modal button position on small screens */
  .note-modal {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 60px);
  }

  .note-action-buttons {
    position: relative;
    bottom: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    margin-bottom: calc(env(safe-area-inset-bottom, 0px) + 40px);
  }
}

.page-info-button {
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  border: none;
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.page-info-button:hover {
  background: rgba(37, 99, 235, 0.15);
  transform: translateY(-1px);
}

.page-info-button:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.page-info-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 32px 16px;
}

.page-info-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.page-info-card {
  position: relative;
  width: min(420px, 100%);
  margin-top: 4vh;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.2);
  z-index: 2001;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.page-info-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.page-info-card-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #0f172a;
}

.page-info-close {
  border: none;
  background: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: #475569;
  padding: 4px;
}

.page-info-body {
  overflow-y: auto;
  color: #1f2937;
  font-size: 0.95rem;
  line-height: 1.5;
  padding-right: 4px;
}

.page-info-list {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.page-info-list li {
  line-height: 1.4;
}

.page-info-header-block {
  position: relative;
  margin-bottom: 16px;
}

.page-info-header-block h1,
.page-info-header-block h2 {
  margin: 0;
  text-align: center;
  width: 100%;
}

.page-info-button-wrapper {
  position: absolute;
  top: 0;
  right: 0;
}

@media (max-width: 640px) {
  .page-info-button {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .page-info-card {
    width: 100%;
    margin-top: auto;
    padding: 18px;
    border-radius: 14px 14px 0 0;
  }

  .page-info-card-header h3 {
    font-size: 1.1rem;
  }
}

.database-page {
  background-color: #f9f5e3;
  min-height: 100vh;
  padding-top: 10px;
  padding-bottom: 140px;
  width: 100%;          /* ✅ prevents horizontal scroll */
  max-width: 100%;      /* ✅ ensures full width within viewport */
  box-sizing: border-box;
  overflow-x: hidden;
  margin-top: -40px;
}


html, body {
  margin: 0;
  padding: 0;
  background-color: #f9f5e3; /* match page color just in case */
}

.page-title {
  font-size: 32px;
  font-weight: bold;
  margin: 0;
  color: #333;
  text-align: center;
}

.database-warning {
  background-color: #fff8e6;
  border: 1px solid #f0c36d;
  padding: 10px 14px;
  border-radius: 6px;
  margin: 10px 20px;
  font-size: 0.95rem;
  color: #333;
}

.database-warning strong {
  font-weight: bold;
}

.database-warning .critical {
  color: red;
  font-weight: bold;
}

.search-bar {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: none;
  border-bottom: 2px solid #b7d4ee;
  background: transparent;
  margin-bottom: 30px;
}

.wide-textarea {
  width: 100%;
  min-height: 150px;
  resize: vertical;
}

.notes-list {
  display: flex;
  flex-direction: column;
}

.note-entry {
  padding: 10px 0;
}

.note-separator {
  border-bottom: 1px solid #b7d4ee;
}

.note-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* dimmer effect */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000; /* stay above everything else */
}

/* --- Make all inputs and selects in the modal clearly visible --- */
.note-modal input,
.note-modal select,
.note-modal textarea {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 0.95rem;
  box-sizing: border-box;
  outline: none;
  background-color: #fff;
  color: #000;
}

/* Focus highlight (matches your BlueWire blue tone) */
.note-modal input:focus,
.note-modal select:focus,
.note-modal textarea:focus {
  border-color: #007bff;
  box-shadow: 0 0 4px rgba(0, 123, 255, 0.4);
}

.note-modal input,
.note-modal select,
.note-modal textarea {
  width: 100%;
  margin-bottom: 8px;
}

.modal-entry-state-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.modal-entry-state-label {
  font-weight: bold;
  font-size: 14px;
  color: #333;
}

.note-modal select.state-dropdown {
  width: 140px;        /* 👈 fits 2-letter states + padding */
  min-width: 120px;
  max-width: 180px;
  display: inline-block;
  margin-left: 6px;    /* small gap from label */
  vertical-align: middle;
}

.note-form {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  max-height: 90%;
  overflow-y: auto;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.flagged-note {
  border-left: 4px solid red;
  background-color: #fff5f5;
}

.header-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  gap: 10px;
}

.search-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 24px 0;
  gap: 10px;
}

.entry-state-label {
  display: flex;
  align-items: center;
  gap: 6px; /* ✅ space between text and dropdown */
}

.search-state-text {
  font-size: 14px;
  font-weight: normal;
  color: #333; /* ✅ slightly different from dropdown */
}

.search-by-label,
.entry-state-label {
  font-weight: bold;
  text-align: left;
  width: 100%;
  max-width: 400px;
  margin-top: 8px;
}

.search-dropdown,
.entry-state-dropdown {
  width: 100%;
  max-width: 400px;
  padding: 8px;
  font-size: 16px;
}

.search-bar {
  width: 100%;
  max-width: 400px;
  padding: 10px;
  font-size: 16px;
  border: 2px solid #b7d4ee;
  border-radius: 6px;
  background-color: #f8faff;
  margin-top: 10px;
  margin-bottom: 10px;
  outline: none;
}

.search-bar:focus {
  border-color: #2d6cdf;
  background-color: #ffffff;
}


.search-button {
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #2d6cdf;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.entry-state-label {
  font-weight: bold;
  text-align: left;
  width: 100%;
  max-width: 400px;
  margin-top: 8px;
}

.entry-state-dropdown {
  width: 100%;
  max-width: 400px;
  padding: 8px;
  font-size: 16px;
}

.add-note-btn {
  position: fixed; 
  bottom: calc(env(safe-area-inset-bottom, 0px) + 10px); /* ✅ stays above nav buttons */
  right: 20px; 
  background-color: #1e3a8a;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1000;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.add-note-btn:hover {
  background-color: #15327a;
  filter: brightness(1.1);           /* ✅ subtle visual feedback */
  transform: none;                   /* ✅ no physical movement */
}

.add-note-btn:active {
  transform: scale(0.95);
}

.note-action-buttons .additional-button {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.note-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding-top: 8px;
}

.note-action-buttons button {
  padding: 6px 12px;
  background-color: #f0f0f0;
  border: 1px solid #999;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  -webkit-appearance: none;
          appearance: none;
}

.additional-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  font-weight: bold;
  border-radius: 6px;
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #ccc;
  white-space: nowrap;
}

/* Specific fix for the overly wide Additional button */
.note-action-buttons .additional-button {
  flex: 1 0 auto; /* allow it to grow but not shrink to zero */
  font-size: 14px;
  white-space: nowrap;
  padding: 6px 12px;
}

em {
  background-color: yellow;
  font-style: normal;
  padding: 0 2px;
}

.comment-wrapper {
  margin-top: 12px;
  padding-top: 10px;
  padding-left: 80px;
}

.image-preview-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.image-preview-container {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-preview-full {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(255,255,255,0.3);
}

.download-btn {
  margin-top: 10px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.download-btn:hover {
  background-color: #0056b3;
}

.close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

/* 📱 Mobile adjustments */
@media (max-width: 600px) {
  .page-title {
    font-size: 24px;
    text-align: left;
    margin-bottom: 12px;
  }

  .header-row {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    margin-top: 0;
    margin-bottom: 12px;
    gap: 10px;
  }

   .add-note-btn {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 90%;
    font-size: 16px;
    border-radius: 8px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
  }

  .search-bar {
    width: 100%;
    font-size: 14px;
    margin-bottom: 20px;
  }

  .note-form input,
  .note-form select,
  .note-form textarea {
    width: 100% !important;
    box-sizing: border-box;
    font-size: 14px;
    margin-bottom: 12px;
  }

  .note-modal {
    padding: 0;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .note-form {
    border-radius: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    padding: 16px;
    overflow-y: scroll;
  }

  .note-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .note-preview {
    font-size: 14px;
    padding: 12px;
    margin-bottom: 10px;
  }

  .note-clean-display input,
  .note-clean-display textarea {
    width: 100%;
    font-size: 14px;
  }

  .wide-textarea {
    font-size: 14px;
  }

  .flagged-note {
    border-left-width: 6px;
  }

  .note-action-buttons .additional-button {
    max-width: none;
    flex: 1 0 auto;
  }

  .database-page .note-modal {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 90px);
  }

  /* Lift Save/Cancel buttons */
  .database-page .note-action-buttons {
    position: relative;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    margin-bottom: calc(env(safe-area-inset-bottom, 0px) + 50px);
  }

  .page-title {
    text-align: center !important;
    display: block;
    width: 100%;
  }

 .additional-button {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  gap: 6px;
  font-weight: bold;
  border-radius: 6px;
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #ccc;
  white-space: nowrap;
}

.custom-flag-field {
  margin-right: 8px;
    display: block;
    margin-right: 0;
    margin-bottom: 12px;
    width: 100%;
}

    .database-page .note-form {
    padding-top: calc(env(safe-area-inset-top, 0px) + 20px); /* 🔽 move form down */
  }

  .database-page .note-form button {
    touch-action: manipulation; /* 🖐 ensures tap reliability */
  }
}



@media (max-width: 768px) {
  .comment-wrapper {
    padding-left: 20px; /* Reduce for mobile */
  }

    .note-modal {
    height: 100vh;          /* use full viewport height */
    max-height: 100vh;      /* prevents cutoff on tall devices */
    bottom: 0;
    margin-bottom: 0;   
    padding-bottom: 80px;     /* removes any gap */
  }
}


/* Messaging.css */

/* --- Search Modal Styles --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  overflow-y: auto;
}

.messaging-page {
  padding-bottom: 40px;
}

@media (max-width: 640px) and (orientation: portrait) {
  .messaging-page {
    padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
  }
}

.messaging-info {
  background-color: #f5f5f5;
  padding: 12px 28px;
  margin-bottom: 16px;
  border-radius: 0px;
  font-size: 1.1rem;
  font: italic;
  line-height: 1.4;
  font-style: italic;
  color: #333;
}

.messaging-info ul {
  margin: 0;
  padding-left: 2px;   /* ✅ indentation */
}

.messaging-info li {
  margin-bottom: 8px;   /* ✅ breathing room between bullets */
}

.search-modal-content {
  background-color: white;
  padding: 24px 28px;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  animation: fadeInScale 0.2s ease-in-out;
}

.search-modal-content h3 {
  margin-top: 0;
  font-size: 20px;
  margin-bottom: 16px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 8px;
}

.search-field-row {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.search-field-row label {
  flex: 1 1;
  font-size: 14px;
}

.search-field-row select,
.search-field-row input[type='text'] {
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  max-width: 240px;
}

.remove-filter-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: #888;
}

.remove-filter-btn:hover {
  color: #cc0000;
}

.search-modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.search-modal-buttons button {
  padding: 8px 14px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-modal-buttons button:first-child {
  background-color: #007bff;
  color: white;
}

.search-modal-buttons button:first-child:hover {
  background-color: #0056b3;
}

.search-modal-buttons button:last-child {
  background-color: #ccc;
  color: #333;
}

.search-modal-buttons button:last-child:hover {
  background-color: #bbb;
}

/* Modal overlay */
.group-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Modal box */
.group-modal {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.group-modal input[type="text"] {
  padding: 8px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
}

.user-select-list {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #eee;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 6px;
}

.select-user-item {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.group-modal-actions {
  display: flex;
  justify-content: space-between;
}

.group-modal-actions button {
  padding: 8px 14px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.group-modal-actions button:first-child {
  background-color: #007bff;
  color: white;
}

.group-modal-actions button:last-child {
  background-color: #ccc;
  color: #333;
}

/* Grayed out users (off-duty, not accepting messages) */
.user-item.grayed-out {
  opacity: 0.5;
  pointer-events: none;
}

/* Group Section */
.group-section {
  margin: 10px 0;
  margin-bottom: 14px;
}

.group-header {
  display: flex;
  justify-content: flex-start;  /* Align everything to the left */
  align-items: center;
  font-weight: bold;
  padding: 6px 0;
  margin-top: 14px; 
  cursor: pointer;
  width: 100%;
  text-align: left;
  gap: 8px; /* Space between "Groups" and arrow */
}


.group-label {
  text-align: left;
  flex-grow: 1;
  margin-left: 20px;
}

.group-list {
  padding-left: 10px;
  background-color: #e5edf5;
}

.group-item {
  padding: 14px 0;
  cursor: pointer;
  border-bottom: 5px solid #ddd;
}

.group-item:last-child {
  border-bottom: none;
}

.create-group-button {
  margin-top: 18px;
  padding: 6px 12px;
  font-size: 14px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.dm-header {
  font-weight: bold;
  padding: 8px 12px;
  text-align: left;
  margin-top: 16px;
}

.dm-section {
  border-bottom: 1px solid #ccc;
  padding-bottom: 12px;
  margin-bottom: 16px;
  padding: 10px;
  background-color: #f2f2f2;
}

.unread-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: yellow;
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
}

/* User List */
.user-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.list-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding-right: 8px;
}

.list-actions {
  display: flex;
  margin-left: auto;
  gap: 6px;
  align-items: center;
}

.list-actions button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 2px 6px;
  color: #333;
  transition: color 0.2s;
}

.list-actions button:hover {
  color: #007bff;
}

.list-user {
  display: flex;
  align-items: center;
  padding: 4px 0;
  gap: 8px; /* Optional spacing between name and menu */
}

.user-item {
  padding: 14px 3px;
  border-radius: 6px;
  border-bottom: 5px solid #ccc;
  cursor: pointer;
  background-color: #d9e7f8;
  transition: background 0.2s;
}

.user-list-item {
  padding: 10px;
  background-color: #f2f2f2;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.user-item:hover {
  background-color: #e6e6e6;
}

.user-actions {
  margin-left: 8px;
  position: relative;
}

/* Section that wraps all custom lists */
.custom-lists-section {
  margin-top: 20px;
  padding-bottom: 100px; /* allows scroll space under last list */
}

/* Each individual list block */
.user-list-block {
  padding: 12px;
  background-color: #fdfdfd;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.user-menu {
  position: absolute;
  right: 0;
  top: 24px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 160px;
  z-index: 1000;
  overflow: hidden;
}

.user-menu-item {
  padding: 8px 14px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  font-size: 14px;
  color: #333;
  border-radius: 6px;
  margin-bottom: 4px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
}

.user-menu-item:hover {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}


.user-menu-item:active {
  background-color: #e1e8f0;
}

/* Search + Toggle Bar */
.search-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 0;
  border-bottom: none !important;
  box-shadow: none !important;
}

.search-bar input[type='text'] {
  flex: 0 1 60%;
  padding: 8px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  min-width: 200px;
  border-bottom: none !important;
}

.toggle-active {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 80px;
}

/* Keep checkbox + info icon in a single row, even on mobile */
.toggle-and-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-icon {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
}

.incoming-call-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 500000; /* above everything */
}

.incoming-call-container {
  background: #ffffff;
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

.incoming-call-title {
  font-size: 1.6rem;
  margin-bottom: 12px;
  font-weight: bold;
}

.incoming-call-user {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.incoming-call-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.decline-button {
  background: #e63946;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  flex: 1 1;
}

.accept-button {
  background: #2a9d8f;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  flex: 1 1;
}


/* Responsive Styles for Smaller Screens */
@media screen and (max-width: 600px) {
  .search-bar {
    flex-direction: column;
    align-items: stretch;
  }

   .search-bar input[type='text'] {
    width: 100%; /* already stacks on small screens */
    max-width: 280px; /* limit to avoid overlap */
    align-self: center;
  }

  .toggle-active {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 20px;
}

.toggle-and-info {
    justify-content: flex-end; /* push checkbox + icon to right side */
  }

  .user-item {
    font-size: 14px;
    padding: 16px 3px;
    border-bottom: 5px solid #ccc;
  }

  .group-modal {
    width: 90%;
    padding: 16px;
  }

  .create-group-button,
  .group-modal-actions button {
    font-size: 13px;
    padding: 6px 10px;
  }

  .pinned-item {
    font-size: 14px;
    padding: 8px;
  }

  .message-input-area {
    padding: 8px;
  }

  .message-input-area input[type='text'] {
    font-size: 14px;
  }

  .plus-button,
  .send-button {
    font-size: 14px;
    padding: 6px 10px;
  }
}

/* Pinned Chats Section */
.pinned-section {
  margin-top: 15px;
}

.pinned-header {
  font-weight: bold;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pinned-icon {
  color: #ffc107; /* Gold pin */
}

.pinned-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pinned-item {
  padding: 10px;
  background-color: #fff8e1;
  border: 1px solid #ffd54f;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.pinned-item:hover {
  background-color: #ffecb3;
}

.plus-button,
.send-button {
  background-color: #007bff;
  color: white;
  border: none;
  font-size: 16px;
  padding: 8px 12px;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s;
}

.plus-button:hover,
.send-button:hover {
  background-color: #0056b3;
}

.chat-window {
  flex: 1 1;
  padding: 12px;
  max-height: 400px;
  overflow-y: auto;
  background-color: #ffffff;
  border: 1px solid #ddd;
  margin: 12px 0;
  border-radius: 6px;
}

.sender-name {
  font-weight: bold;
}

.message-content {
  margin-left: 4px;
}

.empty-chat {
  color: #888;
  font-style: italic;
}

.chat-message {
  padding: 8px 12px;
  max-width: 75%;
  margin-bottom: 10px;
  border-radius: 16px;
  display: inline-block;
  word-wrap: break-word;
  clear: both;
}

.chat-message.sent {
  background-color: #d1e7ff;
  margin-left: auto;
  text-align: right;
  border-top-right-radius: 0;
}

.chat-message.received {
  background-color: #f1f1f1;
  margin-right: auto;
  text-align: left;
  border-top-left-radius: 0;
}
.timestamp {
  font-size: 11px;
  color: #888;
  margin-top: 4px;
  text-align: right;
}

.incall-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
}

.incall-container {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  width: 90%;
  max-width: 360px;
}

.incall-title {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.incall-buttons {
  display: flex;
  gap: 12px;
  flex-direction: column;
}

.incall-button {
  padding: 14px;
  font-size: 1.1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: #007bff;
  color: white;
}

.incall-button.active {
  background: #2255cc;
}

.incall-button.end {
  background: #d62828;
}

.call-history-button {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  background: #0a84ff;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.call-history-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 500000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.call-history-container {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  height: 60%;
  overflow-y: auto;
}

.call-history-item {
  padding: 10px 0;
  border-bottom: 1px solid #ccc;
}

.call-history-close {
  margin-top: 16px;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  background: #0a84ff;
  color: #fff;
  cursor: pointer;
  width: 100%;
}
.calling-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 500000;
}

.calling-container {
  background: white;
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

.calling-title {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.calling-user {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.cancel-call-button {
  background: #e63946;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}

.group-chat-container {
  display: flex;
  flex-direction: column;
  max-height: 100%;
  height: calc(1vh * 105);
  height: calc(var(--vh, 1vh) * 105);      /* ✅ fixes input collapsing with keyboard */
  padding: 1px;
  margin-top: 0;        /* reset */
  background-color: #eff3f7;
  overflow: hidden;  
}

body.chat-open {
  overflow: hidden;
}

.group-back-button {
  margin-right: 10px;
  margin-left: 25px;
  padding: 0px 10px;
  font-size: 22px;
  cursor: pointer;
  color: #1a1a1a;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  background: none;
  border: none;
  outline: none;
}


.group-title {
  flex: 1 1;
  text-align: center;
  margin: 0;
  font-size: 18px;
}

.group-header {
  flex: 0 0 18px;       /* fixed height 58 */
  display: flex;
  align-items: center;  /* vertically center */
  justify-content: space-between; /* back button left, title center, menu right */
  padding: 2px 2px;
  margin-top: 35px;
  background-color: #f0f0f0;
  border-bottom: 1px solid #ccc;
  box-sizing: border-box;
}


.edit-icon {
  font-size: 0.8em;
  margin-left: 8px;
  cursor: pointer;
  color: #666;
}

.group-options-menu {
  position: absolute;
  top: 30px;
  right: 0;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  min-width: 180px;
  overflow: hidden;
}

.group-options-menu .group-dropdown-item {
  display: block;
  width: 100%;
  text-align: center;
  padding: 8px 12px;
  margin: 4px 4px;
  border: 1px solid #ccc;
  background: #f9f9f9;
  cursor: pointer;
  font-size: 14px;
  border-radius: 4px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.group-options-menu .dropdown-item:hover {
  background-color: #e6f0ff;
  box-shadow: 0 0 4px rgba(0,0,0,0.1);
}

.group-options-menu .group-dropdown-item:active {
  background-color: #cce0ff;
}

.group-options-menu .group-dropdown-item.danger {
  color: #a00;
  border-color: #e0b4b4;
  background: #fff0f0;
}

.group-options-menu .group-dropdown-item.danger:hover {
  background-color: #ffe0e0;
  box-shadow: 0 0 4px rgba(255,0,0,0.1);
}

.group-dropdown-item {
  display: block;
  width: 200px;
  text-align: left;
  padding: 8px 12px;
  border: none;
  background: none;
  cursor: pointer;
}

.group-dropdown-item:hover {
  background-color: #f0f0f0;
}

.participants-toggle {
  position: center;
  cursor: pointer;
  font-size: 14px;
  color: rgb(7, 7, 8);
}

.participants-sidebar {
  position: relative;
  border: 1px solid #ccc;
  padding: 8px;
  margin-bottom: 10px;
  max-height: 780px;
  max-width: 400px;
  width: 290px;
  overflow-y: auto;
}

.participants-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.menu-btn {
  font-size: 20px;
  background: none;
  border: none;
  cursor: pointer;
}

.close-btn {
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

.participant-item {
  padding: 4px 0;
  border-bottom: 1px solid #eee;
}

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

.group-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.group-modal-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  max-height: 80vh;
  overflow-y: auto;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2001;
}

.search-group-modal-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  max-height: 80vh;
  overflow-y: auto;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2001;
}

.remove-btn {
  margin-left: 10px;
  background: transparent;
  color: red;
  border: none;
  font-size: 1.1em;
  cursor: pointer;
}

.group-message {
  margin-bottom: 10px;
  padding: 6px 10px;
  background-color: #e6f3ff;
  border-radius: 8px;
}

.group-message.sent {
  background-color: #d1f4e5;
  align-self: flex-end;
}

/* Make sure buttons don't grow weirdly */
.group-back-button,
.participants-toggle {
  white-space: nowrap;
}

.group-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.edit-bubble {
  width: 100%;
  min-height: 60px;
  max-height: 300px; 
  border-radius: 10px;
  padding: 45px;
  font-size: 1em;
  background-color: #fff !important;     /* Light background */
  color: #000 !important; 
  overflow-y: auto;           /* Scroll if too tall */
  resize: vertical; 
}

.message-timestamp {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}

.message-input {
  display: flex;
  gap: 10px;
}

.message-input input {
  flex: 1 1;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.messages-area {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 5px;
  background: #c9ddf3;
  border-radius: 6px;
  margin-bottom: 2px;
  padding-bottom: 80px;
}

.group-message-input-area {
  display: flex;
  gap: 10px;
  margin-bottom: 0px;
  align-items: flex-end; 
}

.group-message-input-area input {
  flex: 1 1;
  padding: 8px;
}


.group-message-input-area button {
  padding: 8px 12px;
}

.group-message-input-area textarea {
  flex: 1 1;
  background-color: #ffffff;   /* ✅ white background */
  color: #000000;   
  border: 1px solid #30363d;
  border-radius: 4px;
  padding: 8px;
  resize: none;             /* prevent manual drag-resize */
  line-height: 1.5rem;      /* consistent line height */
  max-height: 96px;         /* ~4 lines */
  overflow-y: auto;         /* scroll inside after 4 lines */
  font-size: 1rem;
}

/* Default styling for all messages */
.group-chat-message {
  max-width: 70%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background-color: #f1f0f0;
  align-self: flex-start;
  word-wrap: break-word;
}

.file-preview-list {
  margin-bottom: 4px;  /* Default for desktop */
}

.group-message-content,
.group-message-content span {
  color: #000; /* Make all message text black */
  font-size: 1rem;
  line-height: 1.4;
}

/* Sent messages (from current user) */
.group-chat-message.sent {
  background-color: #d1f4e5;
  align-self: flex-end;
  margin-left: auto;
}

/* Received messages */
.group-chat-message.received {
  background-color: #a2d0f8;
  align-self: flex-start;
  margin-right: auto;
}

.group-send-button {
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.group-send-button:hover {
  background-color: #0056b3;
}

.group-upload-button {
  display: inline-block;
  font-size: 20px;
  padding: 4px 10px;
  background-color: #eeeeee;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  -webkit-user-select: none;
          user-select: none;
}
.group-upload-button:hover {
  background-color: #ddd;
}

.group-image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  z-index: 1000;
  padding-bottom: 80px; /* room for buttons */
}

.group-image-modal img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 6px;
  margin-bottom: 20px;
}

/* ✅ Buttons (same margin fix as DirectChat) */
.group-image-modal-buttons {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 30px);
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 16px;
  z-index: 1001;
}

.group-image-modal-buttons button {
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: background-color 0.2s;
}

.group-image-modal-buttons button:hover {
  background-color: #005ecb;
}

.group-image-modal-buttons button:last-child {
  background-color: #6c757d;
}

.group-image-modal-buttons button:last-child:hover {
  background-color: #555b61;
}


/* 👇 Responsive tweak for narrow screens (portrait mobile) */
@media (max-width: 600px) {
   .group-chat-container {
    height: 100dvh;
    padding-top: 25px;   /* ✅ push header into view */
  }

  .group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    flex-wrap: nowrap;
  }

  .group-back-button {
    flex: 0 0 auto;
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
  }

   .group-back-button,
  .participants-toggle {
    font-size: 24px;
    padding: 6px 0;
    margin-left: 12px;
  }

  .group-title {
    flex: 1 1 auto;
    text-align: center;
    font-size: 16px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .group-controls {
    display: none; /* hide legacy layout group */
  }

  .group-menu-button {
    flex: 0 0 auto;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    margin-top: 15px;
  }

  .group-dropdown-item {
    font-size: 14px;
    padding: 8px 12px;
    width: 100%;
    text-align: left;
  }

  .group-message-input-area {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  margin-top: 20px;  /* ✅ add breathing room above input bar */
  background: #161b22;
  border-top: 1px solid #30363d;
  box-sizing: border-box;
}

  .messages-area.with-preview {
    padding-bottom: 180px; /* keyboard space */
  }

.file-preview-list {
    position: fixed;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 60px); /* sits above input bar */
    left: 0;
    right: 0;
    z-index: 30;
    background: #eff3f7;
    padding: 6px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    box-sizing: border-box;
  }

  /* lift a little more when keyboard is open */
  body.keyboard-open .file-preview-list {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 11px);
  }

/* ✅ Match DirectChat: when keyboard opens, sit flush on keyboard */
body.keyboard-open .group-message-input-area {
  margin-top: 20px !important; 
 padding-bottom: 12px !important; 
}

}

@media screen and (max-width: 600px) and (orientation: portrait) {
  
   .group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 2px;
  }

  .group-title {
    font-size: 18px;
    margin: 0;
  }

   .group-menu-button {
    font-size: 28px;
    padding: 0 8px;
    margin-top: 15px;
  }

 .group-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
    margin-top: 4px;
  }

  .group-back-button,
  .participants-toggle {
    font-size: 24px;
    padding: 6px 0;
    margin-left: 12px;
  }

  .group-controls .participants-toggle {
  margin-left: auto;
} 

.group-dropdown-item {
  display: block;
  width: 160px;
  text-align: left;
  padding: 8px 12px;
  border: none;
  background: none;
  cursor: pointer;
}

  .participants-toggle {
    flex: 1 1;
    text-align: right;
    padding: 5px 14px;
    font-size: 14px;
  }

  .participants-sidebar {
  position: relative;
  border: 1px solid #ccc;
  padding: 8px;
  margin-bottom: 10px;
  max-height: 780px;
  max-width: 400px;
  width: 260px;
  overflow-y: auto;
}

}


.chat-window {
  display: flex;
  flex-direction: column;
  width: 97vw;
  max-width: 100vw;
  height: 109vh;   /* Full screen */
  max-height: 100%;     
  margin-top: 0vh;
  box-sizing: border-box;
  background: radial-gradient(#0f2027, #203a43, #2c5364);
  color: #e6edf3;
  padding: 0;
  overflow: hidden; 
}

body.dm-open {
  overflow: hidden; /* disable body scroll only while DM window is open */
}

html, body, #root {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* ✅ Special case: DM opened directly from a profile */
.chat-window.first-open {
  height: 94vh !important;
}

.chat-header {
  flex: 0 0 48px;           /* fixed height */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 6px) 8px 6px 8px; /* ✅ top padding for easier access */
  background: #f0f0f0;
  border-bottom: 1px solid #ccc;
  box-sizing: border-box;
}


.chat-title {
  flex: 1 1;
  text-align: center;
  margin: 0;
  font-size: 18px;
  line-height: 48px; /* matches header height */
  font-weight: bold;
  color: #05327e;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.chat-title-with-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
}

.chat-menu-button {
  background: none;
  border: none;
  margin-right: 10px;
  font-size: 1.5rem;
  color: #080e08; /* Bright neon green */
  cursor: pointer;
  font-weight: bold;
}

.chat-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #1a1f1f; /* Dark background for Matrix theme */
  border: 1px solid #3dff3d; /* Neon green border */
  border-radius: 6px;
  padding: 8px;
  box-shadow: 0 0 8px rgba(0, 255, 0, 0.4); /* Green glow */
  z-index: 9999;
  min-width: 160px;
  color: #e6edf3;
}

.chat-dropdown-menu button {
  width: 100%;
  background: #e74c3c;
  color: white;
  border: none;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 8px;
}

.chat-dropdown-menu button:hover {
  background: #c0392b;
}

.chat-dropdown-menu select {
  margin-top: 6px;
  width: 100%;
  background-color: #0e1616;
  color: #00ff00;
  border: 1px solid #3dff3d;
  border-radius: 4px;
  padding: 4px;
}

.back-button {
  margin-right: 0px;
  margin-left: 25px;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
  color: #000; 
}

.messages-list {
  flex: 1 1;
  min-height: 0;  
  display: flex;
  flex-direction: column;
  padding: 10px;
  padding-top: 98px;
  padding-bottom: 140px; /* ✅ extra space for attachments + input bar */
  overflow-y: auto;
  margin: 0;
  box-sizing: border-box;
}

.message-bubble {
  max-width: 60%;
  padding: 10px;
  margin: 8px;
  border-radius: 10px;
  display: inline-block;
  word-wrap: break-word;
  box-shadow: 0 0 4px #00ff00;
}

.sent {
  background-color: #0d1e17; /* Light green */
  align-self: flex-end;
  margin-left: auto;
  text-align: left;
}

.received {
  background-color: #1c3a2a; /* Dark teal green */
  align-self: flex-start;
  margin-right: auto;
  text-align: left;
  box-shadow: none !important;
}


.message-meta {
  font-size: 0.8rem;
  font-weight: bold;
  margin-bottom: 4px;
  color: #7fff7f; /* Light neon green */
}


.message-content {
  font-size: 1rem;
  color: #39ff14; /* Matrix green text */
}

.edit-textarea {
  width: 100%;
height: 100%;
  font-size: 1rem;
  padding: 35px;
  resize: vertical;
  min-height: 60px;
  max-height: 160px;
  border-radius: 6px;
  background-color: #0d1e17; /* Dark green background */
  color: #00ff00; /* Matrix green text */
  border: 1px solid #33ff33;
}

.message-actions {
  margin-top: 4px;
}

.message-actions button {
  background: none;
  border: none;
  font-size: 0.85rem;
  color: #007bff;
  cursor: pointer;
  margin-right: 18px;
}

.message-actions button:hover {
  text-decoration: underline;
}

.read-receipt {
  font-size: 14px;
  margin-top: 4px;
  text-align: right;
  color: #00ff00; /* Bright green for Matrix style */
}

.read-icon {
  color: #00ff00;
  text-shadow: 0 0 4px #00ff00;
  font-size: 1.1rem;
}

/* ✅ Desktop: DM input bar alignment fix */
.dm-message-input-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #161b22;
  border-top: 1px solid #30363d;
  z-index: 50;
  gap: 8px;
}

.dm-message-input-area textarea {
  flex: 1 1;
  background-color: #161b22;
  color: #ffffff;
  border: 1px solid #30363d;
  border-radius: 4px;
  padding: 8px;
  resize: none;
  line-height: 1.5rem;
  max-height: 106px;
  overflow-y: auto;
  font-size: 1rem;
}

.dm-message-input-area .dm-upload-button {
  font-size: 22px;
  padding: 4px 8px;
  background-color: #0d1e17;
  border: 1px solid #33ff33;
  border-radius: 4px;
  color: #00ff00;
  cursor: pointer;
  flex-shrink: 0;
}

.dm-message-input-area .dm-send-button {
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  flex-shrink: 0;
}

.dm-message-input-area .dm-send-button:hover {
  background-color: #0056b3;
}

/* ✅ Desktop: visible attachment preview bar above input */
.dm-file-preview-list {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 64px; /* sits just above the input bar */
  z-index: 60;
  background: #eff3f7;
  padding: 4px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  border-top: 1px solid #ccc;
  box-sizing: border-box;
}

/* ✅ Fullscreen modal for viewing image attachments */
.dm-image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000; /* solid black to fix Android dimming */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  z-index: 1000;
  transform: translateZ(0); /* prevents tinted effect */
}

.dm-image-modal img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
  margin-bottom: 80px; /* space for buttons */
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* ✅ Buttons pinned to bottom of modal */
.dm-image-modal-buttons {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 30px);
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 16px;
  z-index: 1001;
}

.dm-image-modal-buttons button {
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: background-color 0.2s;
}

.dm-image-modal-buttons button:hover {
  background-color: #005ecb;
}

.dm-image-modal-buttons button:last-child {
  background-color: #6c757d;
}

.dm-image-modal-buttons button:last-child:hover {
  background-color: #555b61;
}



@media (max-width: 600px) {
  .chat-window {
    margin: 0;
    padding: 0;
    width: 100vw;
    max-width: 100%;
    
    /* ✅ Use dynamic viewport for mobile */
    height: 100dvh;
    max-height: 100%;
    
    /* ✅ Ensure header isn’t hidden */
    padding-top: env(safe-area-inset-top, 30px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    
    box-sizing: border-box;
    position: relative;
    left: 0;
  }

  html, body, #root {
    height: 100%;
    margin: 0;
    padding: 0;
  }

  .chat-title {
    flex-grow: 1;
    padding-right: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    color: #05327e;
  }

  .back-button {
    margin-right: 10px;
    margin-left: 35px;
    font-size: 26px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
  }

  body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  .messages-list {
    overscroll-behavior: contain;
    padding-bottom: 160px;
    height: calc(100dvh - 64px); /* ✅ subtract input bar height */
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
  }

/* ✅ Direct Message–specific preview alignment */
.dm-file-preview-list {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 53px);
  z-index: 50;
  background: #eff3f7;
  padding: 2px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  border-top: 1px solid #ccc;
  box-sizing: border-box;
}

/* When keyboard is open */
body.keyboard-open .dm-file-preview-list {
  bottom: calc(env(safe-area-inset-bottom, 0px) - 1px);
  padding: 3px 10px; 
}

/* DM input bar */
.dm-message-input-area {
  display: flex;                 /* Arrange +, textarea, send horizontally */
  align-items: flex-end;         /* Align bottoms of all elements */
  justify-content: space-between;
  flex-wrap: nowrap;
  width: 100%;
  box-sizing: border-box;
  padding: 8px; 
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 2px);
  left: 0;
  right: 0;
  background-color: #161b22;
  border-top: 1px solid #30363d;
  z-index: 40;
  box-shadow: 0 2px 0 4px #161b22; /* extends black background below input bar */

}

/* ✅ Children styling */
.dm-message-input-area textarea {
  flex: 1 1;
  background-color: #fff;
  color: #000;
  border: 1px solid #30363d;
  border-radius: 4px;
  padding: 8px;
  resize: none;
  line-height: 1.5rem;
  max-height: 96px;
  overflow-y: auto;
  font-size: 1rem;
  margin: 0 8px;                /* space between + and Send */
}

/* ✅ When keyboard opens, keep input bar flush on keyboard */
body.keyboard-open .dm-message-input-area {
  bottom: 4px !important;  /* bring bar down ~10px */
  padding-bottom: 0 !important;
}

.dm-message-input-area .dm-upload-button {
  font-size: 22px;
  padding: 4px 8px;
  background-color: #eeeeee;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  -webkit-user-select: none;
          user-select: none;
  color: #000;           /* ✅ ensures “+” stays visible */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.dm-message-input-area .dm-send-button {
  background-color: #007bff;   /* ✅ blue background */
  color: #fff;                 /* white text */
  border: none;
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
}

.dm-message-input-area .dm-send-button:active {
  background-color: #005ecb;   /* darker blue when pressed */
}
}

.calling-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 500000;
}

.calling-container {
  background: white;
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.calling-title {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.calling-user {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.cancel-call-button {
  background: #e63946;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}

.incall-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
}

.incall-container {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  width: 90%;
  max-width: 360px;
}

.incall-title {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.incall-buttons {
  display: flex;
  gap: 12px;
  flex-direction: column;
}

.incall-button {
  padding: 14px;
  font-size: 1.1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: #007bff;
  color: white;
}

.incall-button.active {
  background: #2255cc;
}

.incall-button.end {
  background: #d62828;
}

.incoming-call-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 500000;
}

.incoming-call-container {
  background: #ffffff;
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.incoming-call-title {
  font-size: 1.6rem;
  margin-bottom: 12px;
  font-weight: bold;
}

.incoming-call-user {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.incoming-call-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.decline-button,
.accept-button {
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  flex: 1 1;
}

.decline-button {
  background: #e63946;
}

.accept-button {
  background: #2a9d8f;
}

.bolo-page {
  padding-bottom: 60px; /* or more, adjust as needed */
}

.agency-multiselect {
  margin-bottom: 16px;
  position: relative;
}

.page-title {
  text-align: center;
  font-weight: 700;
  font-size: 1.8rem;
  margin: 16px 0;
}

.bolo-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 16px;
}
.bolo-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 0;
  border-bottom: 2px solid #ccc;
}


.bolo-tabs button {
  padding: 8px 16px;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  margin-right: 4px;
  font-weight: 500;
}

.bolo-tabs button.active {
  background-color: #fff;
  border-color: #ccc;
  border-bottom: 2px solid white;
  color: #007bff;
  font-weight: bold;
}

.bolo-tabs button:hover {
  background-color: #eee;
}

.state-agencies-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.group-menu {
  left: 100%;
  margin-left: 4px;
  top: 0;
}

.dropdown-toggle {
  margin-left: 8px;
  padding: 4px 8px;
  cursor: pointer;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
}

.agency-dropdown {
  position: absolute;
  left: 80px;
  background: #fff;
  border: 1px solid #ccc;
  max-height: 400px;
  overflow-y: auto;
  padding: 8px 10px 0px;
  width: 300px;
  z-index: 10;
  border-radius: 4px;
  box-shadow: 0px 2px 5px rgba(0,0,0,0.1);
}

/* sticky footer for Add/Cancel buttons */
.agency-dropdown-buttons {
  position: -webkit-sticky;
  position: sticky;
  bottom: 0;
  background: #f8f9fa; /* light background to separate from list */
  border-top: 1px solid #ddd;
  padding: 8px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  z-index: 11; /* ensure above list items */
}


.agency-dropdown::after {
  content: "";
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 6px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05), transparent);
  display: block;
}

.agency-option {
  cursor: pointer;
  display: flex;
  align-items: center;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.agency-option input {
  margin-right: 8px;
}

.agency-list {
  padding-bottom: 30px; /* 👈 space between last agency and sticky buttons */
}

.add-selected-button {
  margin-left: 8px;
  padding: 4px 8px;
  cursor: pointer;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
}

.add-selected-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.recipient-info {
  display: flex;
  align-items: center;
  gap: 48px;
}

.recipient-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  padding: 4px 0;
}

.toggle-switch {
  position: relative;
  top: 30px;
  display: inline-block;
  width: 38px;
  height: 20px;
  margin-right: 8px;
  vertical-align: middle;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}


.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;     /* gray when off */
  border-radius: 34px;
  cursor: pointer;
  transition: 0.4s;
}

.switch input:not(:checked) + .slider {
  background-color: #007bff;  /* explicitly force blue */
}

input:checked + .slider {
  background-color: #28a745;  /* green when Intel */
}


.toggle-switch input:checked + .slider {
  background-color: #28a745;
}

.toggle-switch input:checked + .slider:before {
  transform: translateX(18px);
}


.recipient-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recipient-actions {
  position: relative;
}

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

.menu-button {
  cursor: pointer;
  font-size: 30px;
  padding: 0px 12px;
  border-radius: 4px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.menu-button:hover {
  background: #f5f5f5;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
}

.recipient-menu {
  position: absolute;
  right: 0;
  top: 24px;
  background: #fafafa;
  border: 1px solid #ccc;
  z-index: 10;
  border-radius: 4px;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
  min-width: 180px;
  opacity: 1;
}


.recipient-menu-item {
  display: block;
  width: 180px;
  padding: 6px 8px;
  font-size: 0.9rem;
  color: #333;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
  border-bottom: 1px solid #ddd;
}

.recipient-menu-item:hover {
  background-color: #f0f0f0;
}

.group-select {
  width: 100%;
  padding: 6px 8px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-top: 8px;
}

.modal-add-button {
  background-color: #28a745;
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.modal-add-button:hover {
  background-color: #218838;
}

.modal-add-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.modal-cancel-button {
  background-color: #dc3545;
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.modal-cancel-button:hover {
  background-color: #c82333;
}

.add-agency-to-group-button {
  background-color: #007bff;
  color: white;
  padding: 4px 8px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.add-agency-to-group-button:hover {
  background-color: #0056b3;
}

.send-bolo-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.send-bolo-button {
  background-color: #007bff;
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  margin-top: 12px;
  cursor: pointer;
}

.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
}

.modal {
  background: #fff;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0px 2px 8px rgba(0,0,0,0.2);
  max-width: 400px;
  width: 100%;
}

.save-group-button {
  background-color: #28a745;
  color: white;
  padding: 4px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 18px;
}

.save-group-button:hover {
  background-color: #218838;
}

.save-group-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.upload-picture-button {
  font-size: 18px;
  color: white;
  padding: 5px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  padding-bottom: 0px;
}

.upload-picture-button:hover {
  background-color: #0056b3;
}

/* More breathing room between sections in Send BOLO */
.send-bolo-form > div,
.send-bolo-form > h4,
.send-bolo-form > textarea,
.send-bolo-form > button,
.send-bolo-form > .selected-agencies {
  margin-bottom: 22px;   /* Increase overall section spacing */
}

.send-bolo-form label {
  margin-bottom: 6px;
  display: block;
  font-weight: 500;
}

.send-bolo-form h4 {
  margin-top: 18px;
  margin-bottom: 10px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 4px;
}

.bolo-section {
  margin-bottom: 28px; /* generous spacing between blocks */
  padding-bottom: 10px;
  border-bottom: 1px dashed #ddd; /* subtle separation line */
}

.bolo-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* --- Mode Toggle --- */
.mode-toggle-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 12px;
  margin-bottom: 8px;
}
.mode-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 28px;
}
.switch input { opacity: 0; width: 0; height: 0; }
/* --- Restyled pill toggle for recipient rows --- */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 60px;                /* wider track */
  height: 20px;               /* slimmer height */
  background-color: #999;     /* gray when unchecked */
  transition: background-color 0.4s, transform 0.4s;
  border-radius: 34px;        /* full pill */
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.4s;
}

/* move knob + recolor when checked */
.toggle-switch input:checked + .slider {
  background-color: #28a745;   /* green when on */
}

.toggle-switch input:checked + .slider:before {
  transform: translateX(18px); /* keep knob inside the pill */
}

input:checked + .slider {
  background-color: #28a745;
}
input:checked + .slider:before {
  transform: translateX(28px);
}
/* --- Active BOLO / Intel label styles --- */
.toggle-label {
  position: relative;
  font-weight: 600;
  padding-bottom: 2px; /* space for underline */
  transition: color 0.3s;
}

/* underline for active label */
.toggle-label.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 2px;
}

/* blue underline when BOLO mode is active */
.send-bolo-form.bolo .toggle-label.active::after {
  background-color: #007bff;
}

/* green underline when Intel mode is active */
.send-bolo-form.intel .toggle-label.active::after {
  background-color: #28a745;
}

/* --- Attachments --- */
.attachment-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.attachment-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #ccc;
}
.attachment-item button {
  background: none;
  border: none;
  color: red;
  cursor: pointer;
  font-size: 14px;
  display: block;
  margin: auto;
}

/* --- Layout --- */
.send-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.send-bolo-button.bolo { background-color: #007bff; color: white; }
.send-bolo-button.intel { background-color: #28a745; color: white; }
.dropdown-toggle.bolo { background: #007bff; color: white; }
.dropdown-toggle.intel { background: #28a745; color: white; }

/* --- Fix for group members alignment --- */
.bolo-groups ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.bolo-groups li {
  display: block;
  width: auto;
  text-align: left; /* ensure contents stay left-aligned */
}

.bolo-groups .group-header {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* name + menu stay on left */
  gap: 8px;
}

.bolo-groups .group-header strong {
  flex-shrink: 0;
}

.bolo-groups ul ul {
  margin-left: 28px; /* indent members */
  text-align: left;
  width: -webkit-fit-content;
  width: fit-content; /* prevents stretching to the right */
}

/* ensure expanded group members stay aligned under header */
.group-row {
  width: 100%;
  text-align: left;
  align-items: flex-start;
  justify-content: flex-start;
}


 /*keepig the 'X' for agencies in groups on the right side*/
@media (min-width: 769px) {
  .group-agency {
    justify-content: flex-start;
    gap: 8px;
  }

}

@media (max-width: 768px) and (orientation: portrait) {
  .agency-dropdown {
    top: 200px;  
    left:50px;
  }

    .dropdown-toggle {
    margin-top: 20px; /* adjust until it looks right */
  }
}


.active-bolos-container {
  display: flex;
  flex-direction: column;
  gap: 10px;padding: 10px;
}

.bolo-card {
  position: relative;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0px 12px;
  background-color: #fff;
}

.bolo-header {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bolo-title-row {
  position: relative;
  text-align: center;
}

.yellow-dot {
  position: absolute;
  top: 8px; /* adjust as needed */
  left: 8px;
  width: 8px;
  height: 8px;
  background-color: gold;
  border-radius: 50%;
}

.bolo-title {
  margin: 0;
  font-size: 19px;
  color: #333;
  word-wrap: break-word;
  white-space: normal;
  overflow-wrap: anywhere;
}

.bolo-title-text {
  font-weight: 600;
}

.active-inner-tabs{
  display: flex;
  width: 100%;
  border-bottom: 3px solid #1c1c1c;
  background-color: #01294e;
  margin-bottom: 14px; /* 👈 extra spacing below the tab bar */
  position: relative;
}

/* divider line between the two buttons */
.active-inner-tabs::after {
  content: "";
  position: absolute;
  top: 15%;
  bottom: 15%;
  left: 50%;
  width: 1px;
  background-color: #777575; /* subtle metallic gray divider */
  transform: translateX(-50%);
  opacity: 0.7;
}

.active-inner-tabs button {
  flex: 1 1;
  padding: 14px 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #9ea7af;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  letter-spacing: 0.4px;
  transition: color 0.3s ease, background 0.3s ease;
}

.active-inner-tabsbutton:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.05);
}

/* steady glow bar */
.active-inner-tabs button::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  box-shadow: none;
  transition: all 0.3s ease;
}

/* active BOLO */
.active-inner-tabs button.active.bolo {
  color: #ffffff;
}
.active-inner-tabs button.active.bolo::after {
  background: #007bff;
  box-shadow: 0 0 8px #007bff;
}

/* active INTEL */
.active-inner-tabs button.active.intel {
  color: #ffffff;
}
.active-inner-tabs button.active.intel::after {
  background: #28a745;
  box-shadow: 0 0 8px #28a745;
}

/* small yellow-dot indicator on tab */
.yellow-dot-tab {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #ffeb3b;
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
}

.bolo-agency-text {
  font-weight: 500;
  color: #555;
  font-size: 16px;
  font-style: italic; /* optional */
}

.bolo-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4px;
  margin-top: 8px;
}

.sender-info {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
}

.sender-main {
  font-size: 1rem;
  color: #333;
  font-weight: normal;
}

.sender-agency-state {
  font-size: 1rem;
  color: #333;
  font-weight: normal;
}

.expiration-timer {
  font-size: 0.85rem;
  color: #888;
}

.bolo-body {
  margin-top: 8px;
}

.bolo-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.bolo-attachment img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #ccc;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.bolo-attachment img:hover {
  transform: scale(1.05);
}

.profile-link {
  display: inline-block;
  margin-top: 8px;
  color: #007bff;
  text-decoration: none;
}

.profile-link:hover {
  text-decoration: underline;
}

/* Intel cards: green clickable name */
.intel-card .profile-link {
  color: #28a745;
}
.intel-card .profile-link:hover {
  color: #218838;
  text-decoration: underline;
}

.expiration-timer {
  display: flex;
  gap: 4px;
  text-align: right;
  align-items: center;
  flex-wrap: nowrap;
}

.expiration-timer .expires-time {
  font-weight: 500;
}

.image-preview-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.image-preview-container {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-preview-full {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(255,255,255,0.3);
}

.download-btn {
  margin-top: 10px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.download-btn:hover {
  background-color: #0056b3;
}

.close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  width: 30px;
  height: 30px;
  cursor: pointer;
}



@media (max-width: 600px) {
  .bolo-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4px;
  }

   .active-inner-tabs button {
    font-size: 1rem;
    padding: 6px 0;
  }

    .active-inner-tabs::after {
    opacity: 0.4; /* softer divider on mobile */
  }

 .sender-lines {
  display: flex;
  flex-direction: column;
  line-height: 1.2rem;
}

.sender-lines .sender-main {
  font-weight: 500;
  color: #333;
}

.sender-lines .sender-agency-state {
  font-size: 0.85rem;
  color: #666;
}

  .sender-info {
  display: block;
}

    .sender-agency-state {
    display: block;
    font-size: 0.85rem;
    color: #666;
  }

  .expiration-timer > div:first-child {
  white-space: nowrap;
}

   .expiration-timer  {
    flex-direction: column;
    align-items: flex-end;
    margin-right: 1px;
  }

  .expiration-timer .expires-time {
    margin-top: 2px;
  }
}


.admin-moderation {
  padding: 20px;
  background-color: #f5f8fc;
  min-height: 100vh;
}

.moderation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.back-button {
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 2px 2px;
  cursor: pointer;
  font-weight: 400;
  transition: background-color 0.2s ease;
}

.back-button:hover {
  background-color: #0056b3;
}

.moderation-card {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.auto-hidden {
  border-left: 4px solid #f39c12;
}

.admin-hidden {
  border-left: 4px solid #007bff;
}

.moderation-card button {
  margin-right: 10px;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.moderation-card .restore {
  background: #28a745;
  color: white;
}

.moderation-card .delete {
  background: #dc3545;
  color: white;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 420px;
  max-width: 90%;
}

.my-account-container {
  width: 100%;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
}

.my-account-container h1, 
.my-account-container > h1 {
  text-align: center;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tabs button {
  padding: 10px 20px;
  cursor: pointer;
  background: #f0f0f0;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 16px;
}

.tabs button.active {
  font-weight: bold;
  border-bottom: 2px solid #007bff;
}

.tab-content {
  background: #fff;
  padding: 20px;
  border: 1px solid #ddd;
}

.edit-profile-button {
  background-color: #007bff;
  color: #fff;
  padding: 2px 6px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.edit-profile-button:hover {
  background-color: #0056b3;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.crop-container {
  position: relative;
  width: 300px;
  height: 300px;
  background: #333;
  margin-bottom: 20px;
}

.controls {
  margin: 10px 0;
}

.modal-buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.field {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.field label {
  font-weight: bold;
  min-width: 100px;
}

.modal-content .field input {
  flex: 1 1;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.field input:focus {
  border-color: #007bff;
  outline: none;
}

.avatar-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.avatar-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid #ccc;
}

.avatar-image:hover {
  border-color: #007bff;
}

.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.modal-buttons button {
  background-color: #007bff;
  color: #fff;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.modal-buttons button:hover {
  background-color: #0056b3;
}

.modal-buttons button:last-child {
  background-color: #6c757d;
}

.modal-buttons button:last-child:hover {
  background-color: #5a6268;
}

.text-center {
  text-align: center;
}

.btn-primary {
  padding: 8px 16px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn-success {
  padding: 8px 16px;
  background-color: #28a745;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn-danger {
  padding: 8px 16px;
  background-color: #dc3545;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.password-form {
  margin-top: 20px;
}

.form-group {
  margin-bottom: 10px;
  margin-top: 20px;
}

.form-group label {
  font-weight: bold;
  display: block;
  margin-bottom: 4px;
}

.form-group input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.button-group {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.form-group.subscription-type {
  display: flex;
  align-items: center;
  gap: 20px; /* or whatever you prefer */
}

.form-group.subscription-type label {
  margin-bottom: 0; /* reset the default */
}

/* Notifications tab */

.notification-preferences {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 420px;
  width: 100%;
}

.notification-preferences .field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.notification-preferences .notification-label {
  font-weight: 600;
  color: #0f172a;
}

.notification-preferences .field > label:not(.toggle-switch) {
  min-width: 0;
  font-weight: 600;
}

.notification-preferences .field select {
  width: 100%;
  max-width: 280px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  font-size: 0.95rem;
}

.notification-preferences .toggle-switch {
  position: relative;
  width: 54px;
  height: 30px;
  display: inline-flex;
  margin-top: -27px;
}

/* Raise only the Messaging + BOLO toggles */
#messagingToggle + .slider,
#boloToggle + .slider {
  margin-top: -4px; /* adjust higher or lower */
}

#messagingToggle,
#boloToggle {
  margin-top: -10px;
}

.notification-field {
  margin-bottom: 3px !important;  /* tighter vertical spacing */
  padding-bottom: 20px;
}

/* Raise only Messaging + BOLO labels */
.notification-field label[for="messagingToggle"]
 {margin-top: -19px;   /* adjust as needed */
  margin-bottom: 4px;
}

.notification-field label[for="boloToggle"]
{margin-top: 9px;   /* adjust as needed */
  margin-bottom: 4px;}

.notification-preferences .toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.notification-preferences .toggle-switch .slider {
  position: absolute;
  inset: 0;
  background-color: #d1d5db;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.notification-preferences .toggle-switch .slider:before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 0px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.25s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
}

.notification-preferences .toggle-switch input:checked + .slider {
  background-color: #22c55e;
}

.notification-preferences .toggle-switch input:checked + .slider:before {
  transform: translateX(24px);
}

.notification-preferences .timer-remaining {
  font-size: 0.85rem;
  color: #475569;
  margin-top: 2px;
}




.subscription-tab {
  padding: 10px;
}

.subscription-status {
  margin-bottom: 20px;
}

.status-active {
  color: green;
  font-weight: bold;
}

.status-trial {
  color: orange;
  font-weight: bold;
}

.status-suspended {
  color: red;
  font-weight: bold;
}

.referrals-section ul,
.activity-log ul {
  list-style: none;
  padding-left: 0;
}

.referrals-section li {
  margin-bottom: 4px;
}

.referrals-section .referral-used {
  text-decoration: line-through;
  color: gray;
}

.referral-note {
  font-size: 0.85em;
  color: #666;
}

.activity-log {
  margin-top: 20px;
}

.activity-log ul li {
  margin-bottom: 4px;
}

.cancel-subscription {
  margin-top: 30px;
  text-align: center;
}

.cancel-subscription .btn-cancel {
  background-color: #d9534f;
  color: #fff;
  padding: 8px 16px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  border-radius: 4px;
}

.cancel-subscription .btn-cancel:hover {
  background-color: #c9302c;
}

.subscribe-section {
  margin: 20px 0;
  text-align: center;
}

.subscribe-section .btn-subscribe {
  background-color: #0275d8;
  color: #fff;
  padding: 8px 16px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  border-radius: 4px;
}

.subscribe-section .btn-subscribe:hover {
  background-color: #025aa5;
}

.small-note {
  font-size: 0.85em;
  color: #666;
  margin-top: 4px;
}

.loader {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #1d4ed8;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


@media (max-width: 600px) {
  .my-account-container {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    box-sizing: border-box;
    overflow-x: hidden; /* prevent horizontal scroll */
  }

  .tabs {
    flex-wrap: wrap;
    justify-content: center;
  }

  .tabs button {
    flex: 1 1 33%;
    font-size: 14px;
    padding: 8px;
  }

  .tab-content {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
  }

  body {
    overflow-x: hidden;
  }
}

.admin-dashboard {
  padding: 20px;
}

.admin-dashboard h1 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.admin-dashboard p {
  margin-bottom: 20px;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tabs button {
  padding: 8px 16px;
  border: 1px solid #ccc;
  background: #f2f2f2;
  cursor: pointer;
  border-radius: 4px;
}

.tabs button.active {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

/* 🔷 Summary Section */
.dashboard-summary {
  margin-bottom: 30px;
  padding: 15px;
  background-color: #eef4fb;
  border: 1px solid #bcd;
  border-radius: 6px;
}

.dashboard-summary h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #0056b3;
}

.dashboard-summary ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 15px;
}

.dashboard-summary ul li {
  margin-bottom: 4px;
}

.by-agency {
  margin-top: 15px;
}

.by-agency h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #007bff;
}

.agency-block {
  margin-bottom: 12px;
  padding: 10px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.agency-block strong {
  color: #333;
}

.agency-block ul {
  list-style: none;
  padding-left: 15px;
  margin: 4px 0 0 0;
}

.agency-block ul li {
  font-size: 0.9rem;
}

/* 🔷 Messages */
.message-card {
  border: 1px solid #ccc;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 6px;
  background-color: #f9f9f9;
  cursor: pointer;
}

.message-card .collapsed-view {
  font-weight: 500;
}

.message-card .collapsed-view .meta {
  font-size: 0.85rem;
  color: #555;
  margin-top: 4px;
}

.message-card .expanded-view {
  margin-top: 10px;
}

.message-card textarea {
  width: 100%;
  min-height: 60px;
  margin-top: 8px;
  padding: 6px;
  font-size: 1rem;
}

.message-card button {
  margin-top: 6px;
  padding: 6px 12px;
  font-size: 0.95rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.message-card button:hover {
  background-color: #0056b3;
}


/* src/Pages/ProfilePage.css */

/* --- GENERAL CONTAINER --- */
.profile-page-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #222;
}


/* --- AGENCY BANNER --- */
.agency-banner {
  background: linear-gradient(to right, #004aad, #1e90ff);
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 0;
  text-align: center;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- AVATAR --- */
.avatar-container.top-center {
  display: flex;
  justify-content: center;
  margin: 20px 0 10px;
}

.avatar-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid #004aad;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.avatar-image:hover {
  transform: scale(1.03);
}

/* --- SECTION HEADINGS --- */
.text-center {
  text-align: center;
}

.section-title {
  margin-top: 30px;
  border-bottom: 2px solid #004aad;
  padding-bottom: 4px;
  font-size: 1.2rem;
  font-weight: 600;
}

/* --- FIELD GROUPS --- */
.field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.field label {
  min-width: 120px;
  font-weight: 500;
  color: #333;
  text-align: left;      /* ✅ aligns label text left */
  padding-left: 2px; 
}

.field input {
  flex: 1 1;
  padding: 6px 2px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 0.95rem;
  background-color: #fafafa;
}

/* --- EMPLOYMENT INFO (LEFT SIDE ON DESKTOP) --- */
.employment-info {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
}

/* --- EXPERIENCE SECTION --- */
.experience-section {
  margin-top: 10px;
  padding: 10px 15px;
  background: #f6f8fa;
  border-radius: 6px;
}

.experience-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  border-bottom: 1px solid #ddd;
  padding: 6px 0;
  font-size: 0.95rem;
}

.experience-row:last-child {
  border-bottom: none;
}

/* --- BUTTONS --- */
.edit-profile-button {
  background: #004aad;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s ease;
}

.edit-profile-button:hover {
  background: #003580;
}

.drag-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 100%;
  cursor: grab;
  -webkit-user-select: none;
          user-select: none;
  border-radius: 4px;
  background: linear-gradient(180deg, #e0e0e0, #bdbdbd);
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.handle-arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  gap: 2px;
}

.arrow-up,
.arrow-down {
  font-size: 9px;
  color: #666;
  pointer-events: none;
}

.dots {
  font-size: 16px;
  color: #444;
  line-height: 1;
  pointer-events: none;
}

/* Visual feedback */
.drag-handle:hover .arrow-up,
.drag-handle:hover .arrow-down,
.drag-handle:hover .dots {
  color: #222;
}


.drag-handle::before {
  content: "⋮";
  color: #555;
  font-size: 18px;
  line-height: 4;
}
.drag-handle:hover {
  background: linear-gradient(90deg, #bbb 40%, #888 60%);
}
.drag-handle:active {
  cursor: grabbing;
  background: linear-gradient(90deg, #aaa 40%, #777 60%);
}



/* Ensure the card layout leaves space for the handle */
.experience-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 8px;
  background: #fdfdfd;
}


.bottom-actions {
  margin-top: 25px;
  text-align: left;
  display: flex;
  gap: 10px;
}

.btn-primary,
.btn-success,
.btn-danger {
  padding: 8px 14px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

.btn-primary {
  background-color: #004aad;
  color: white;
}

.btn-success {
  background-color: #007b3a;
  color: white;
}

.btn-danger {
  background-color: #d9534f;
  color: white;
}

.btn-primary:hover {
  background-color: #003580;
}

.btn-danger:hover {
  background-color: #b52a26;
}

/* --- MODALS --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content {
  background: white;
  border-radius: 8px;
  padding: 20px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modal-content h3 {
  margin-bottom: 15px;
}

.modal-buttons {
  margin-top: 15px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* --- PASSWORD FORM --- */
.password-form {
  margin-top: 15px;
  background: #f8f8f8;
  padding: 15px;
  border-radius: 6px;
}

.password-form .form-group {
  margin-bottom: 10px;
}

.password-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 4px;
}

.password-form input {
  width: 100%;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

/* --- CERTIFICATIONS & RECOMMENDATIONS --- */

.profile-main-sections {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 25px;
}

/* Columns */
.left-column {
  flex: 1 1;
}

.right-column {
  flex: 1 1;
}

/* --- CERTIFICATIONS --- */
.add-cert {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.add-cert input {
  flex: 1 1;
  padding: 6px 8px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
}

.add-cert button {
  background-color: #004aad;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.add-cert button:hover {
  background-color: #003580;
}

/* Badge list */
.certifications-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cert-badge {
  background-color: #e8f0fe;
  color: #003580;
  border: 1px solid #b3d1ff;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.remove-cert {
  color: #888;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
}

.remove-cert:hover {
  color: #c00;
}

/* --- RECOMMENDATIONS --- */
.recommendation-input {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.recommendation-input input,
.recommendation-input textarea {
  padding: 6px 8px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
  width: 100%;
  resize: vertical;
}

.recommendation-input button {
  align-self: flex-start;
  background-color: #004aad;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.recommendation-input button:hover {
  background-color: #003580;
}

/* Recommendation cards */
.recommendations-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.recommendation-card {
  position: relative;          /* ✅ so remove button can position correctly */
  background-color: #f6f8fa;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 12px 12px 12px;
}


.recommendation-card strong {
  color: #004aad;
}

.remove-rec {
  position: absolute;
  top: 6px;
  right: 8px;
  color: #888;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  transition: color 0.2s ease;
}

.remove-rec:hover {
  color: #c00;
}


.empty-text {
  color: #777;
  font-style: italic;
  margin-top: 4px;
}

.add-exp-btn {
  background: #0d6efd;
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
  cursor: pointer;
}

.experience-form input,
.experience-form textarea {
  width: 100%;
  margin: 4px 0;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.experience-form .two-cols {
  display: flex;
  gap: 6px;
}

.experience-row {
  border-bottom: 1px solid #ccc;
  padding: 6px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 8px;
  position: relative;
  background: #f9f9f9;
}

.remove-exp {
  position: absolute;
  top: -9px;
  right: 0px;
  cursor: pointer;
  color: red;
  font-weight: bold;
  font-size: 1.2em;
}

.experience-card {
  position: relative;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.edit-exp {
  position: absolute;
  top: 6px;
  right: 30px; /* move pencil slightly left */
  cursor: pointer;
  font-size: 16px;
  color: #555;
  transition: color 0.2s;
}

.remove-exp {
  position: absolute;
  top: 6px;
  right: 8px; /* keep X aligned right */
  cursor: pointer;
  font-size: 18px;
  color: #555;
  transition: color 0.2s;
}

.edit-exp:hover {
  color: #2a7ae2;
}

.remove-exp:hover {
  color: red;
}

.edit-exp, .remove-exp {
  cursor: pointer;
  font-size: 16px;
  color: #555;
  transition: color 0.2s;
}

.edit-exp:hover {
  color: #2a7ae2;
}

.remove-exp:hover {
  color: red;
}

.exp-card-info div {
  margin-top: 4px;
  font-size: 14px;
}

.years-of-service-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 10px 0;
  font-size: 1.1em;
}

.form-instruction {
  font-size: 0.9em;
  color: #555;
  margin-bottom: 10px;
  font-style: italic;
}

.add-service-link {
  color: #007bff;
  cursor: pointer;
  text-decoration: underline;
}

.edit-service-btn {
  background: #0d6efd;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.9em;
}

.modal-content.small {
  max-width: 420px;
}

.break-row {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}

.remove-break {
  cursor: pointer;
  color: red;
  font-weight: bold;
}

.add-break-btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  margin-top: 4px;
  cursor: pointer;
}


/* --- RESPONSIVE LAYOUT --- */
@media (max-width: 900px) {
  .profile-main-sections {
    flex-direction: column;
  }

  .right-column {
    margin-top: 20px;
  }
}


/* ---MOBILE--- */
@media (max-width: 768px) {
  .profile-page-container {
  padding-bottom: 80px;
  max-width: 100%;
  padding: 10px;
}

/* --- FULL-SCREEN EDIT MODAL ON MOBILE --- */
.modal-overlay {
  align-items: flex-start !important;   /* start from top */
  justify-content: center;
  padding-top: 0;
}

.employment-info {
  width: 95%;
  max-width: none;
  padding: 10px 8px;
}

.field {
  flex-direction: column;      /* stack labels above inputs for mobile */
  align-items: flex-start;
  padding-right: 0;
}

.field label {
  min-width: auto;
  width: 100%;
  margin-top: 20px;
  margin-left: 0;
  margin-bottom: -7px;        /* ✅ brings label closer to the field below */
  line-height: 1.1;          /* tighter vertical spacing */
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
}


.field input {
  width: 100%;                 /* take full width of container on mobile */
  max-width: none;
}

.modal-content {
  position: relative;
  width: 90% !important;               /* span full width */
  max-width: none !important;           /* remove width limit */
  height: 95vh !important;              /* nearly full screen height */
  max-height: none !important;          /* no artificial max */
  border-radius: 0;                     /* full-screen look */
  overflow-y: auto;                     /* scroll if needed */
  padding: 24px 20px;
  box-sizing: border-box;
  margin: 10px;
  border-radius: 12px;
}

/* --- ENLARGE MODAL CONTENTS ON MOBILE --- */
.modal-content h3 {
  font-size: 1.4rem;          /* bigger title */
  text-align: center;
  margin-bottom: 18px;
  color: #003580;
}

.modal-content .field {
  margin-bottom: 14px;        /* add spacing between fields */
}

.modal-content label {
  font-size: 1.05rem;         /* larger labels */
  font-weight: 600;
  color: #222;
}

.modal-content input {
  font-size: 1.05rem;         /* larger text inside inputs */
  padding: 10px 12px;         /* touch-friendly input height */
  border-radius: 6px;
  border: 1px solid #ccc;
  width: 100%;
  background-color: #fafafa;
}

.modal-content .modal-buttons button {
  font-size: 1rem;            /* bigger button text */
  padding: 10px 16px;
}

/* --- ACCOUNT INFO FONT ADJUSTMENT (MOBILE) --- */
.employment-info {
  margin-top: 15px;
}

.field label {
  font-size: 1.05rem;       /* make labels larger */
}

.field input {
  font-size: 1.05rem;       /* make field text larger */
  padding: 8px 10px;        /* slightly more padding */
}

/* --- EDIT PROFILE MODAL (MOBILE) --- */
.modal-content {
  max-height: 390vh;          /* taller, nearly full-screen height */
  overflow-y: auto;          /* allow scrolling if contents exceed height */
  padding: 24px;             /* a bit more breathing room */
}

.modal-content input {
  font-size: 1.15rem;
  padding: 8px 10px;
}

.modal-content h3 {
  font-size: 1.3rem;
  text-align: center;
  margin-bottom: 18px;
}

  .experience-row {
    flex-direction: column;
    gap: 4px;
  }

.section-title {
  font-size: 1.4rem;       /* bigger, clearer title */
  text-align: center;      /* center for cleaner mobile look */
  margin-top: 24px;
  border-bottom-width: 3px; /* slightly thicker underline */
  padding-bottom: 6px;
}

  .bottom-actions {
    flex-direction: column;
    text-align: center;
  }

  .avatar-image {
    width: 120px;
    height: 120px;
  }

  .left-column {
    width: 100%;
  }

  .experience-section {
    padding: 14px 18px;
  }

  /* --- YEARS OF SERVICE LINE (MOBILE) --- */
/* --- YEARS OF SERVICE LINE (MOBILE, INLINE FIXED) --- */
.years-of-service-header {
  font-size: 1.2rem;           /* larger text */
  font-weight: 600;
  display: flex;
  align-items: center;         /* keep items vertically centered */
  justify-content: space-between; /* space between text and button */
  gap: 8px;                    /* small spacing only */
  margin-top: 10px;
  margin-bottom: 26px;
}

  .experience-card {
    width: 100%;
    font-size: 1rem;               /* larger text for readability */
    padding: 14px 16px;            /* more padding inside */
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }

  /* --- Larger drag handle arrows on mobile --- */
.drag-handle {
  width: 34px; /* slightly wider for finger space */
}

.arrow-up,
.arrow-down {
  font-size: 16px;    /* 🔼 bigger arrows */
  color: #333;         /* keep visible contrast */
}

@media (max-width: 640px) and (orientation: portrait) {
  .bottom-actions {
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  }

  .bottom-actions .btn-danger {
    margin-bottom: 8px;
  }
}

.dots {
  font-size: 20px;     /* bigger dots */
  color: #222;
}

  .exp-card-info div {
    font-size: 1.16rem;
  }

.exp-card-info strong {
  font-size: 1.2rem;
}

.add-exp-btn {
  margin-bottom: 14px;
}

/* --- RECOMMENDATION CARDS  --- */
.recommendation-card {
  font-size: 1.12rem;       /* main text slightly larger */
  line-height: 1.4;
  padding: 14px 16px;       /* increase touch area */
}

.recommendation-card strong {
  font-size: 1.18rem;       /* title slightly bigger  */
}

.recommendation-input {
  margin-bottom: 18px;
}

.remove-rec {
  position: absolute;
  top: 6px;
  right: 8px;
  color: #888;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  transition: color 0.2s ease;
}

.remove-rec:hover {
  color: #c00;
}


.add-cert {
  margin-bottom: 26px;
}

  .drag-handle {
    width: 34px;                   /* make handle wider for touch */
    height: auto;
    background: linear-gradient(180deg, #d6d6d6, #a5a5a5);
  }

  .drag-handle::before {
    font-size: 22px;               /* larger dots */
    color: #444;
  }

  .edit-exp,
  .remove-exp {
    font-size: 20px;               /* easier to tap */
    top: 10px;
  }
}


.myactivity-page {
  padding-top: 0px;     /* tighten top space */
  padding-right: 20px;
  padding-bottom: 20px;
  padding-left: 20px;
  background-color: #f5f8fc;
  min-height: 100vh;
}


.activity-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -40px; 
  margin-bottom: 10px;
}

.activity-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  color: #0f172a;
  margin: 0;
}

.activity-header .wire-tab {
  position: fixed;
  top: 5px;
  left: 64px;
  z-index: 900;
}

.activity-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  color: #0f172a;
  margin: 0;
}

/* Only recolor the fixed button – do not affect layout */
.wire-fixed {
  color: #007bff !important;
  text-decoration: none;
  margin-left: 35px;
  margin-bottom: 15px;
}

.wire-fixed:hover {
  text-decoration: underline;
}

.activity-summary {
  margin-bottom: 15px;
  font-size: 15px;
  color: #333;
}

.activity-card {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.activity-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.new-dot {
  width: 10px;
  height: 10px;
  background-color: #f1c40f;
  border-radius: 50%;
  display: inline-block;
  margin-left: 8px;
}

.activity-text {
  color: #444;
  margin-top: 6px;
  margin-bottom: 8px;
}

.activity-text-full {
  color: #444;
  margin-top: 6px;
  margin-bottom: 8px;
}

/* Toggle between truncated and full text */
.activity-card.expanded .activity-text { display: none; }
.activity-card:not(.expanded) .activity-text-full { display: none; }

.activity-stats {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.activity-timestamp {
  font-size: 12px;
  color: #6b7280; /* slate-500 */
  margin-bottom: 10px;
}

.activity-actions button {
  border: none;
  border-radius: 5px;
  padding: 6px 10px;
  cursor: pointer;
  margin-right: 8px;
  font-weight: 500;
}

.view-btn {
  background-color: #007bff;
  color: white;
}
.view-btn:hover {
  background-color: #0056b3;
}

.delete-btn {
  background-color: #dc3545;
  color: white;
}
.delete-btn:hover {
  background-color: #b02a37;
}

.edit-btn {
  background-color: #64748b; /* slate-500 */
  color: #ffffff;
}
.edit-btn:hover {
  background-color: #475569; /* slate-600 */
}

.view-more-btn {
  background: none;
  border: none;
  color: #007bff;
  padding: 0;
  margin: 0 0 8px 0;
  font-weight: 600;
  cursor: pointer;
}

/* Edit Modal */
.edit-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 2147483646;
}

.edit-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ece5e5;
  border-radius: 12px;
  width: 92vw;
  max-width: 560px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Previews inside edit modal */
.edit-previews {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.edit-previews .thumb {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}
.edit-previews .thumb img { width: 100%; height: 100%; object-fit: cover; }
.edit-previews .remove {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 14px;
  cursor: pointer;
}

.edit-input,
.edit-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px;
  margin-top: 8px;
  font-size: 14px;
  background: #ffffff; /* white */
color: #000000; /* black text */
}

.edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.save-btn {
  background-color: #10b981; /* emerald */
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-weight: 600;
}
.save-btn:hover { background-color: #059669; }

.save-btn:disabled {
  background-color: #cbd5e1;
  color: #6b7280;
  cursor: not-allowed;
}

.cancel-btn {
  background-color: #e5e7eb;
  color: #111827;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-weight: 600;
}
.cancel-btn:hover { background-color: #d1d5db; }

/* Make post cards larger on small portrait screens */
@media (max-width: 500px) and (orientation: portrait) {
   .myactivity-page {
    padding: 1px; /* reduce outer padding to allow more width */
  }

  .activity-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  margin-top: -10px;
}

  .activity-card {
    padding: 10px;              /* more breathing room */
    font-size: 1.05rem;         /* slightly larger text inside */
    margin-bottom: 20px;        /* more spacing between cards */
    transform: scale(1.03);     /* subtle enlargement effect */
  }

  .activity-text,
  .activity-text-full {
    font-size: 1.1rem;            /* increase paragraph readability */
    line-height: 1.5;
  }

  .activity-header h1 {
    font-size: 1.75rem;         /* optional: larger header */
  }

  .wire-fixed {
  color: #007bff !important;
  text-decoration: none;
  margin-left: 5px;
  margin-bottom: 15px;
  font-size: 1rem;
  font-weight: 500;
}
}

.post-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  font-size: 0.9rem; /* slightly smaller text */
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.post-card:hover {
  transform: scale(1.01);
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}


.post-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.author {
  white-space: nowrap;
  font-weight: 600;
}

.anon-icon {
  color: #555;
  font-weight: 500;
}

.timestamp {
  font-size: 0.85em;
  color: #6b7280;
}

/* Hide the header timestamp; footer shows it in post-actions */
.post-header .timestamp {
  display: none;
}

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

.post-text {
  font-size: 0.92em;
  color: #1e293b;
  line-height: 1.4;
  margin-bottom: 6px;
}


.post-images img {
  max-width: 100%;            /* ⬅️ cut image size in half */
  max-height: 120px;
  border-radius: 8px;
  margin-top: 8px;
  object-fit: contain;       /* keep full image visible */
}

.post-link {
  display: inline-block;
  margin-top: 6px;
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.post-link:hover {
  text-decoration: underline;
}

.post-topic {
  font-size: 0.9em;
  color: #007bff;
  font-style: italic;
  margin-left: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.anonymous-post {
  background: #f8f9fa;
  border-left: 4px solid #9ca3af;
}

.post-engagement {
  font-size: 0.85em;
  color: #ef4444;
  margin-top: 6px;
}

/* Hide legacy score block (we render a compact one conditionally) */
.post-engagement { display: none !important; }

.post-engagement-compact {
  font-size: 0.85em;
  color: #ef4444;
  margin-top: 6px;
}

.post-actions { display: none; }

.post-actions-v2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  font-size: 0.9em;
  color: #475569;
  flex-wrap: nowrap; /* mobile-first: keep footer items in one line */
}


/* Ensure footer ordering: timestamp, views, likes, comments */
.post-actions-v2 .score-chip { color: #ef4444; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.post-actions-v2 .timestamp { order: 1; }
.post-actions-v2 .views-count-fixed { order: 2; }
.post-actions-v2 .like-btn { order: 3; }
.post-actions-v2 .comment-btn { order: 4; }
.post-actions-v2 .follow-icon { order: 5; }

/* Timestamp can wrap, others stay compact */
.post-actions-v2 .timestamp { flex: 0 1 auto; white-space: normal; }
.post-actions-v2 .views-count-fixed,
.post-actions-v2 .like-btn,
.post-actions-v2 .comment-btn { white-space: nowrap; }

/* Make the Show more/less look like a link */
.view-more-btn {
  background: none;
  border: none;
  color: #007bff;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.view-more-btn:hover {
  text-decoration: underline;
}

/* Follow icon (Font Awesome version) */
.follow-icon {
  background: none;
  border: none;
  padding: 0 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s ease;
}

.follow-icon:hover {
  transform: scale(1.1);
}

.follow-icon .person-1 {
  color: #333;          /* not followed */
  font-size: 1.1rem;
}

.follow-icon .person-2 {
  color: #007bff;       /* followed (blue) */
  font-size: 1.1rem;
}


/* Desktop: push follow icon to the far right */
@media (min-width: 900px) {
  /* Desktop order: score, views, like, comment, follow, timestamp */
  .post-actions-v2 .score-chip { color: #ef4444; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
  .post-actions-v2 .views-count-fixed { order: 1; }
  .post-actions-v2 .like-btn { order: 2; }
  .post-actions-v2 .comment-btn { order: 3; }
  .post-actions-v2 .follow-icon { order: 4; margin-left: 0; }
  .post-actions-v2 .timestamp { order: 5; }
}

/* Mobile readability tweaks */
@media (max-width: 480px) {
  .post-card { font-size: 1.12rem; padding: 16px 18px; }
  .author { white-space: normal; }
  .post-timestamp-row { display: block; }
  .post-actions-v2 .timestamp { display: none; }
}


/* Prevent agency from breaking mid-word */
.author .agency { display: inline-block; white-space: nowrap; }

/* Hide legacy inline icon text if present */
/* Hide legacy inline elements (from older block) if present */
.post-actions .views-count,
.post-actions .comments-count,
.post-actions .like-count-fixed,
.post-actions .views-count-fixed,
.post-actions .comments-count-fixed { display: none !important; }

.like-btn {
  border: none;
  background: #e2e8f0;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
}

.like-btn:hover:not(:disabled) {
  background: #cbd5e1;
}

.like-btn.liked {
  background: #007bff;
  color: white;
}

.views-count,
.comments-count {
  font-size: 0.9em;
  color: #64748b;
}

.views-count-fixed .ic {
  font-size: 1.4em;     /* increase emoji size */
  line-height: 1;
  vertical-align: middle;
}

.follow-button {
  background: none;
  border: none;
  color: #007bff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  margin-left: 8px;
  transition: color 0.2s ease;
}

.follow-button:hover {
  color: #0056b3;
  text-decoration: underline;
}

.follow-button.following {
  color: #57aaf3;
  text-decoration: none;
  cursor: default;
}

/* === Embedded Link / Media Previews === */
.embed-wrapper {
  margin-top: 8px;
  display: flex;
  justify-content: center;
}

.embed-wrapper iframe {
  width: 100%;
  max-width: 480px;
  height: 270px;
  border-radius: 8px;
  border: none;
}

/* Generic link preview */
.link-preview {
  text-decoration: none;
  color: inherit;
}

.link-box {
  display: flex;
  align-items: center;
  background: #f1f5fa;
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 8px;
  transition: background-color 0.2s ease;
}

.link-box:hover {
  background-color: #e7f1ff;
}

.link-favicon img {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

.link-info {
  display: flex;
  flex-direction: column;
}

.link-url {
  font-size: 14px;
  color: #007bff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 280px;
}

.link-hint {
  font-size: 12px;
  color: #666;
}

.embed-video {
  width: 100%;
  max-width: 480px;
  border-radius: 8px;
  margin-top: 8px;
  background: #000;
}

.video-preview-card {
  display: block;
  text-decoration: none;
  color: inherit;
  margin-top: 8px;
}

.video-thumb {
  position: relative;
  display: inline-block;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.video-thumb img {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.video-thumb:hover img {
  opacity: 0.85;
}

.video-overlay {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.55);
  padding: 6px;
  font-size: 15px;
}

/* === Image Preview Modal === */
/* === Image Preview Modal (fixed to viewport, not columns) === */
.image-preview-overlay {
  position: fixed !important;       /* lock to viewport */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
  -webkit-user-select: none;
          user-select: none;
  pointer-events: auto;
}

.image-preview-modal {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
   flex-shrink: 0;
  flex-grow: 0;
  transition: none !important;
  transform: none !important;
}

.image-preview-modal img {
  display: block;
  width: auto;
  max-width: 85vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.6);
  object-fit: contain;
  transition: none !important;     /* ⛔ prevent zoom animation */
  transform: none !important;      /* ⛔ lock scale */
  will-change: auto;    
}

body.modal-open {
  overflow: hidden;
}

.download-btn {
  position: absolute;
  bottom: 12px;
  right: 60px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  color: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
}


.score-chip { color: #ef4444; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
/* Hide score chip in Latest column only */
.latest-column .post-actions-v2 .score-chip { color: #ef4444; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

.comment-btn {
  border: none;
  background: #e2e8f0;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
}
.comment-btn:hover { background: #cbd5e1; }

/* Ensure like button matches across columns */
.post-actions-v2 .like-btn.liked,
.like-btn.liked { background: #007bff; color: #fff; }

/* Follow icon second figure blue */
.follow-icon .person-2 { color: #007bff; margin-left: -2px; }

/* Toggle comments button style */
.toggle-comments {
  background: none;
  border: none;
  color: #007bff;
  cursor: pointer;
  padding: 4px 0;
}
.toggle-comments:hover { text-decoration: underline; }

/* Indent comments with a subtle vertical line */
.comment-section .comment-card {
  margin-left: 8px;
  padding-left: 10px;
  border-left: 2px solid #e5e7eb;
}

.comment-section textarea {
  min-height: 100px;     /* default is usually ~40–60px; increase to 100px */
  resize: vertical;      /* allow users to expand further if they wish */
  line-height: 1.4;
}

.post-timestamp-row { display: none; font-size: 0.85em; color: #6b7280; margin: 6px 0; }

/* My Network page: mobile-only refinements */
@media (max-width: 500px), (orientation: portrait) {
  /* Extend card width to fill screen on My Network */
  .mynetwork-page .post-card {
    width: 100%;
    margin: 0;                  /* outer 1px handled by container */
    box-sizing: border-box;
    overflow-wrap: anywhere;    /* prevent horizontal scroll from long tokens */
    word-break: break-word;
  }

  /* Place timestamp on its own line above footer; hide footer timestamp */
  .mynetwork-page .post-timestamp-row { display: block; }
  .mynetwork-page .post-actions-v2 .timestamp { display: none; }

  /* Allow long topics to wrap within the card */
  .mynetwork-page .post-topic {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    max-width: none;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  /* Footer can wrap to avoid overflow on very narrow screens */
  .mynetwork-page .post-actions-v2 {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  /* Wrap links cleanly on mobile */
  .mynetwork-page .post-link,
  .mynetwork-page .link-url {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: none;
  }

   .mynetwork-page .comment-section button[type="submit"],
  .comment-modal button[type="submit"] {
    white-space: nowrap !important;   /* prevent breaking the word "Comment" */
    font-size: 0.85rem;               /* shrink slightly to fit narrow screens */
    padding: 6px 10px;                /* tighten padding */
    max-width: 100px;                 /* avoid overflowing modal edge */
    display: inline-block;
  }

  /* optional: widen the modal slightly so all inputs fit comfortably */
  .comment-modal,
  .mynetwork-page .comment-section {
    max-width: 96vw !important;
    box-sizing: border-box;
  }
}


/* Image preview overlay (stable, centered) */
.image-preview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2147483600;
}
.image-preview-modal {
  position: relative;
  max-width: 96vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
}
.image-preview-modal img {
  display: block;
  max-width: 96vw;
  max-height: 80vh;
}
.image-preview-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.image-preview-modal .download-btn {
  position: static;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
}
.image-preview-modal .close-btn { position: absolute; top: 8px; right: 8px; background: transparent; color: #ef4444; border: none; font-size: 25px; font-weight: 700; line-height: 1; padding: 2px 6px; cursor: pointer; }


.mynetwork-page {
  background-color: #f5f8fc;
  min-height: 100vh;
}

.network-header-top {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -40px;
  margin-bottom: 10px;
}

.network-header-top h1 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  color: #0f172a;
  margin: 0;
}

.wire-fixed-network {
  position: fixed;
  top: 25px;
  left: 64px;
  z-index: 900;
  color: #007bff;
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.mynetwork-container {
  display: flex;
  min-height: 100vh;
  background: #f5f8fc; 
  background-size: 30%;
}

.network-left {
  width: 28%;
  background: #ffffff;
  border-right: 1px solid #e0e0e0;
  padding: 20px;
  overflow-y: auto;
}

.network-right {
  flex: 1 1;
  padding: 20px;
  overflow-y: auto;
}

.network-list {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

.network-item {
  padding: 10px 8px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: background-color 0.2s ease;
}

.network-item:hover {
  background: #f1f5fa;
}

.network-item.active {
  background: #007bff;
  color: #fff;
}

.network-name {
  font-weight: 600;
  font-size: 15px;
}

.network-agency {
  font-size: 13px;
  color: #666;
}

.network-item.active .network-agency {
  color: #e7e7e7;
}

.network-header {
  font-size: 17px;
  margin-bottom: 15px;
  color: #333;
}

.no-following,
.no-selection,
.no-posts {
  color: #777;
  padding-top: 20px;
  font-style: italic;
}

.wire-fixed-network:hover { text-decoration: underline; }

@media (max-width: 500px), (orientation: portrait) {
  /* Fully override any flex behavior */
  .mynetwork-container {
    display: grid !important;
    grid-template-columns: 35% 65%; /* slightly favor right column */
    grid-column-gap: 0 !important;
    column-gap: 0 !important;
    padding: 0;
    width: 100%;              /* ensure grid spans full viewport */
    box-sizing: border-box;
  }

  .network-left {
    all: unset;                /* reset inherited flex + spacing */
    display: block;
    background: #fff;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    height: 100vh; 
  }

  .network-right {
    all: unset;                /* reset inherited flex + spacing */
    display: block;
    padding: 0;
    margin-top: 10px;
    margin-left: 2px;
    margin-right: 20px;
    overflow-y: auto;
    height: 100vh;
  }

  /* optional: remove the vertical divider we added earlier */
  .mynetwork-container::after {
    content: none;
  }

  .network-item {
    padding: 6px 2px;
    border-radius: 6px;
  }

  .network-name {
    font-weight: 600;
    font-size: 15px;
  }

  .network-agency {
    font-size: 13px;
    margin-top: 2px;
  }
}

/* Portrait-only dropdown for followed users (<=480px) */
@media (max-width: 480px) and (orientation: portrait) {
  /* collapse to single column posts area */
  .mynetwork-container {
    display: block !important;
    padding-left: 1px;
    padding-right: 1px;
    width: 100vw;
    box-sizing: border-box;
  }
  .network-left { display: none !important; }
  .network-right { padding: 6px 0; }

  /* Hide duplicated selected user header when dropdown is used */
  .network-right .network-header {
    display: none !important;
  }

  .network-dropdown-bar { margin: 6px 1px; }
  .network-dropdown-toggle {
    width: 70%;
    text-align: left;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    border-radius: 8px;
    padding: 10px 12px;
    font-weight: 600;
  }
  .network-dropdown-toggle .caret { float: right; color: #64748b; }

  .network-dropdown-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 2147483000;
  }
  .network-dropdown-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 70vw;               /* ~half screen width */
    max-width: 320px;
    height: 100vh;             /* full height */
    background: #ffffff;
    box-shadow: 2px 0 12px rgba(0,0,0,0.2);
    padding: 10px;
    overflow-y: auto;
  }
  .network-dropdown-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #334155;
  }
  .network-dropdown-list { list-style: none; padding: 28px 0 8px 0; margin: 0; }
  .network-dropdown-item {
    padding: 10px 8px;
    border-radius: 6px;
    cursor: pointer;
    margin: 2px 0;
  }
  .network-dropdown-item.active { background: #007bff; color: #fff; }
  .network-dropdown-name { display: block; font-weight: 700; }
  .network-dropdown-agency { display: block; font-size: 13px; color: #64748b; }
  .network-dropdown-item.active .network-dropdown-agency { color: #e7e7e7; }
  .network-dropdown-empty { padding: 10px; color: #64748b; }

  .wire-tab-dropdown {
  background: none;
  border: none;
  color: #007bff !important;  /* exact blue from MyActivityPage */
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  margin: 0px 32px 8px;  /* moves button up a bit */
  padding: 4px 8px;
  text-decoration: none;
}

.wire-tab-dropdown:hover {
  color: #0056b3; /* darker blue on hover */
  text-decoration: underline;
}
}


.comment-section {
  margin-top: 16px;
  border-top: 1px solid #e2e8f0;
  padding-top: 12px;
}

.comment-card {
  background: #f8fafc;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 8px;
}

.anonymous-comment {
  background: #f1f5f9;
  border-left: 3px solid #9ca3af;
}

.comment-header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 500;
  font-size: 0.95em;
  color: #475569;
  margin-bottom: 4px;
}

.comment-timestamp {
  margin-left: auto;
  font-weight: 400;
  color: #6b7280;
  font-size: 0.85em;
}

.comment-body {
  font-size: 0.95em;
  color: #1e293b;
}

.comment-form textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px;
  margin-top: 8px;
}

/* Reply input width + button style */
.comment-card form textarea {
  width: 100%;
}

.comment-card form button[type="submit"] {
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  margin-top: 6px;
}

.comment-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  gap: 8px;
}

.comment-options select {
  border-radius: 6px;
  border: 1px solid #ccc;
  padding: 4px;
  max-width: 70%;
  font-size: 0.9em;
}

.comment-options button {
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
}

.reply-block {
  margin-left: 25px;
  padding-left: 10px;
  border-left: 2px solid #ddd;
  background-color: #fafafa;
  border-radius: 6px;
  margin-top: 6px;
}
.reply-button {
  border: none;
  background: none;
  color: #007bff;
  cursor: pointer;
  font-size: 13px;
  margin-top: 4px;
}

.comment-header .identity { display: block; line-height: 1.15; }
.comment-header .identity .name { white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.comment-header .identity .agency { display: block; white-space: nowrap; }
@media (max-width: 480px) { .comment-card { font-size: 1rem; } }

/* Hide comment/reply timestamps on small screens and portrait */
@media (max-width: 500px), (orientation: portrait) {
  .comment-timestamp { display: none; }
}



/* === Outer wrapper / layout width === */
.profile-container {
  max-width: 1100px;   /* 🔧 Adjust this value until it looks good (900–1300 typical) */
  margin: 0 auto;
  padding: 20px;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #222;
}

.profile-avatar {
  display: flex;
  justify-content: center; /* center horizontally */
  margin-bottom: 16px;
}

.profile-title {
  text-align: center;
  margin-bottom: 20px;
}

.profile-data {
  max-width: 800px;   /* keeps content from stretching too wide */
  margin: 0 auto;     /* centers block on large screens */
  text-align: left;   /* force left-align inside */
  display: flex;
  flex-direction: column;
  align-items: center; 
  justify-content: center;
}

.profile-row {
  display: flex;
  margin-bottom: 8px;
}

.profile-row strong {
  width: 140px;
  text-align: right;
  margin-right: 10px;
  font-weight: bold;
}

.profile-row span {
  color: #333;
  font-weight: 500;
}

.profile-row span.joined-date {
  color: #555;
  font-style: italic;
}

.message-button {
  margin-top: 16px;
  margin-left: 150px;
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background-color: #007bff;
  color: #fff;
  font-weight: 600;
  transition: background-color 0.2s ease;
  transform: translateX(-60px);
}

.message-button:disabled {
  background-color: #aaa;
  cursor: not-allowed;
}

.message-button:hover:not(:disabled) {
  background-color: #0056b3;
}

/* === Expand main two-column layout === */
.profile-main-sections {
  display: flex;
  justify-content: center;        /* centers the two columns */
  align-items: flex-start;
  gap: 40px;                      /* space between columns */
  width: 100%;
  max-width: 1500px;              /* gives more breathing room on desktop */
  margin: 25px auto 0;
}

/* Columns */
.left-column {
  flex: 1.9 1;       /* slightly wider */
  display: flex;
  flex-direction: column;
}

.right-column {
  flex: 1.9 1;
  display: flex;
  flex-direction: column;
}

/* Experience and recommendation cards wider */
.experience-card,
.recommendation-card {
  width: 100%;                   /* narrower than column, gives breathing space */
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  align-self: flex-end;         /* makes expansion go leftward */
  transition: width 0.3s ease;  /* optional: smooth visual change */
}



/* Make it responsive on smaller screens */
@media (max-width: 900px) {
  .profile-main-sections {
    flex-direction: column;
  }
  .right-column {
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .profile-info-block {
    transform: translateX(-30px);
  }

.message-button {
  transform: translateX(-80px);
}
}

/* === Full reset to remove top offset === */
html, body, #root {
  margin: 0;
  padding: 0;
  border: 0;
  height: 100%;
}

.thewire-container {
  margin-top: 0 !important;
  padding-top: 0 !important;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #f8fafc;
  color: #1e293b;
}


.thewire-header {
  position: fixed;
  top: 0px;                            
  left: 50%;                            /* start from center */
  transform: translateX(-50%);          /* center horizontally */
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(220,220,220,0.4);
  border-radius: 12px;
  padding: 6px 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  z-index: 100;
  height: 48px;
  width: auto;                          /* auto-size around buttons */
  pointer-events: auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}


.thewire-toggle button {
  margin: 0 4px;
  padding: 6px 12px;
  border: 1px solid #ccc;
  background: #f1f5f9;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}

.wire-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
  padding: 8px 0;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 8px;
  flex-wrap: wrap;
  width: auto;
}

.wire-tab:hover {
  background-color: #e7f1ff;
}

.wire-tab.active {
  background-color: #007bff;
  color: white;
}

.wire-tab {
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 500;
  color: #007bff;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  z-index: 10;
  transition: background-color 0.2s ease;
}

.wire-tab.active {
  background-color: #007bff;
  color: white;
}

.thewire-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* === Separate Latest/Trending toggle below header === */
.thewire-toggle-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  background: #fff;
  border-bottom: 1px solid #ddd;
  position: -webkit-sticky;
  position: sticky;
  top: 56px; /* directly below header height */
  z-index: 20;
}

.thewire-toggle {
  display: flex;
  width: 100%;
  max-width: 480px;
  justify-content: center;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.thewire-toggle button {
  flex: 1 1;
  text-align: center;
  padding: 10px 0;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  background: #f2f4f6;
  color: #444;
}

.thewire-toggle button:first-child {
  border-right: 1px solid #ddd;
}

.thewire-toggle button.active {
  color: #fff;
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.thewire-content.desktop {
  display: flex;
  flex-direction: row;
  gap: 16px;
  padding: 20px 16px 80px;  /* top padding ≈ header height */
}


.column {
  flex: 1 1;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  min-height: 70vh;
}

/* === Column Titles (Latest / Trending) === */
.column > h2 {
  text-align: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: #0f172a;
  margin: 0 0 18px 0;
  background: linear-gradient(90deg, #007bff1a, #007bff33);
  border-radius: 6px;
  padding: 6px 0;
}


.latest-column,
.trending-column {
  flex: 1 1;
}

.post-placeholder {
  background: #f1f5f9;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  color: #64748b;
  text-align: center;
}

.composer-section {
  position: fixed;
  bottom: 0px;              /* slightly above the edge */
  left: 50%;
  transform: translateX(-50%);
  background: transparent;   /* remove white box */
  border: none;
  padding: 0;
  z-index: 99;
}


.composer-placeholder button:disabled {
  background-color: #a1a1a1;
  cursor: not-allowed;
}

/* === Composer Modal === */
.share-button {
  width: auto;               /* shrink to fit text */
  padding: 10px 18px;
  font-size: 15px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 10px;       /* rectanguler shape */
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: background 0.2s ease, transform 0.2s ease;
  margin-bottom: 0px;
  z-index: 10;
}

.share-button:hover {
  background: #005fcc;
  transform: scale(1.05);
}

.composer-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  z-index: 2147483646; /* just beneath the modal */
}

.composer-modal {
  position: fixed;
  top: 50%;                      /* center vertically */
  left: 50%;                     /* center horizontally */
  transform: translate(50%, 0%); /* true centering */
  background: #fff;
  border-radius: 12px;
  width: 92%;
  max-width: 560px;
  padding: 0px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  max-height: 950vh;
  overflow-y: auto;
  z-index: 100;
}

.composer-modal .close-modal {
  position: absolute;
  top: 10px;
  right: 3px;
  background: transparent;
  border: none;
  font-size: 1.3em;
  cursor: pointer;
}

.composer-modal textarea {
  min-height: 188px;   /* default */
  resize: vertical;    /* allow manual resizing */
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #e53935;
  transition: color 0.2s ease;
  z-index: 10;
}

@media (max-width: 900px) {
  .thewire-content.mobile {
    padding: 0px;
    margin: o;
    margin-bottom: 34px;
  }

   .mobile-column {
    background: #fff;
    border-radius: 0;
    padding: 0;
    margin: 0;
    width: 98vw;                /* full viewport width */
    max-width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%); /* center column perfectly */
  }
    .composer-modal {
    transform: translate(20%, -10%);
    width: 95%;
    height: 70vh;
    margin-top: 5vh;
  }

  .composer-modal textarea {
  min-height: 290px;   /* default */
  resize: vertical;    /* allow manual resizing */
  width: 96vw;          /* fill almost the whole viewport width */
  max-width: 96vw; 
}
}

/* 📱 Landscape phones & small tablets (wider but short height) */
@media (min-width: 600px) and (max-width: 900px) and (orientation: landscape) {
  .composer-modal {
    transform: translate(15%, -6%);
    width: 80vw;        /* narrower modal so buttons fit */
    height: 85vh;       /* a bit taller to use vertical space */
    padding: 16px 20px;
  }

   .composer-modal textarea {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    max-height: 180px;     /* ⬅️ cap textarea height */
    min-height: 120px;     /* keep enough space to type comfortably */
  }
}


/* === MOBILE HEADER CLEAN TWO-ROW LAYOUT === */
@media (max-width: 500px) and (orientation: portrait) {
  .composer-modal {
    transform: translate(-1%, 0%);
    width: calc(92% + 33px);   /* extend 3px wider */
    margin-left: 3px;         /* shift right 3px */
    max-height: 92vh;         /* taller for portrait */
  }

  .composer-modal .close-modal {
  position: absolute;
  top: 10px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 1.3em;
  cursor: pointer;
}

.composer-modal textarea {
  min-height: 188px;   /* default */
  resize: vertical;    /* allow manual resizing */
}

  .thewire-header {
    flex-direction: row;          /* all in one row */
    flex-wrap: wrap;              /* allow wrapping if needed */
    justify-content: center;
    align-items: center;
    position: -webkit-sticky;
    position: sticky;             /* instead of fixed so it respects sidebar */
    top: 0;
    left: 70px;
    transform: none;
    width: 90%;
    height: auto;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
    border-radius: 0;
    z-index: 10;                 /* below sidebar trigger */
    padding: 6px 8px;
  }

  /* place toggle below, centered */
  .thewire-header-row {
    width: 100%;
    justify-content: center;
    margin-top: 1px;
  }

  /* tighter buttons so 3 fit side-by-side */
  .wire-tabs {
    flex: 1 1 100%;
    display: flex;
    justify-content: space-evenly;
    gap: 6px;
    border-bottom: none;
    margin-bottom: 4px;
    padding: 1px 1px;
    width: 100%;
  }

  .wire-tab {
    flex: 1 1;
    text-align: center;
    padding: 3px 0;
    font-size: 0.7rem;
  }

  .wire-tab.active {
    color: #007bff;
    border-bottom: 2px solid #007bff;
  }

  /* === Bottom row: Latest / Trending toggle === */
  .thewire-header-row {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .thewire-toggle {
    display: flex;
    width: 100%;
    max-width: 480px; /* keeps it nice on tablets */
    justify-content: center;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  }

  .thewire-toggle button {
    flex: 1 1;
    text-align: center;
    padding: 4px 0;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    background: #f2f4f6;
    color: #444;
    margin-top: 6px;
  }

  .thewire-toggle button:first-child {
    border-right: 1px solid #ddd;
  }

  .thewire-toggle button.active {
    background: #007bff;
    color: #fff;
  }

  /* Push content below header */
  .thewire-content {
    margin-top: 12px !important;
    margin-bottom: 50px!important;
  }

  .share-button {
  width: auto;               /* shrink to fit text */
  padding: 10px 8px;
  font-size: 15px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 10px;       /* rectanguler shape */
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: background 0.2s ease, transform 0.2s ease;
  margin-bottom: 25px;
  z-index: 10;
}
}


/* === Desktop columns equal width and prevent overflow === */
.thewire-content.desktop { overflow-x: hidden; }
.latest-column, .trending-column {
  flex: 1 1;
  max-width: calc(50% - 8px);
  box-sizing: border-box;
}
.posts-list { overflow-x: hidden; }

/* Mobile landscape: show both columns and hide toggle */
@media (max-width: 900px) and (orientation: landscape) {
  .thewire-toggle-wrapper {
    display: none !important;
  }
  .thewire-content.desktop {
    display: flex;
    flex-direction: row;
    gap: 1px;
    padding: 1px 1px 80px;
  }
  .latest-column,
  .trending-column {
    flex: 1 1;
    max-width: none;
  }
}

@media (max-width: 640px) and (orientation: portrait) {
  .composer-section {
    bottom: 32px;
  }

  .share-button {
    margin-bottom: 14px;
  }
}

/* === Fix share button overlap in Capacitor-wrapped app === */
@supports (env(safe-area-inset-bottom)) {
  .composer-section {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 8px) !important;
  }

  .share-button {
    margin-bottom: calc(env(safe-area-inset-bottom, 0px) + 10px) !important;
  }

  @media (max-width: 640px) and (orientation: portrait) {
    .composer-section {
      bottom: calc(env(safe-area-inset-bottom, 0px) + 18px) !important;
    }

    .share-button {
      margin-bottom: calc(env(safe-area-inset-bottom, 0px) + 10px) !important;
    }
  }
}


.composer-inline,
.composer-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 3px;
}

.composer-form textarea {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95em;
  resize: vertical;
}

.composer-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  grid-column-gap: 10px;
  grid-row-gap: 10px;
  align-items: center;
}

.composer-options input[type="text"],
.composer-options input[type="url"],
.composer-options select {
  width: 100%;
  min-width: 140px;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.image-upload {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #f8f9fa;
  cursor: pointer;
  font-size: 0.9em;
}

.image-upload input {
  display: none;
}

.image-name {
  font-size: 0.85em;
  color: #555;
  grid-column: 1 / -1; /* span full width under rows */
}

/* Previews of selected images */
.composer-previews {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.composer-previews .thumb {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}
.composer-previews .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.composer-previews .remove {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 14px;
  cursor: pointer;
}

.post-btn {
  align-self: flex-end;
  padding: 8px 16px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}

.post-btn:hover {
  background: #0056b3;
}

.post-btn:disabled {
  background: #cbd5e1;
  color: #6b7280;
  cursor: not-allowed;
}

/* Mobile modal */
.open-modal-btn {
  width: 100%;
  padding: 10px;
  border: none;
  background: #007bff;
  color: white;
  font-weight: 500;
  border-radius: 6px;
}

.composer-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: flex-start;       /* ⬅️ anchor from top instead of center */
  overflow-y: auto;              /* allow scroll if content exceeds viewport */
  padding-top: 80px;   
  align-items: center;
  z-index: 999;
}

.modal-content {
  background: white;
  width: 92%;
  max-width: 480px;
  border-radius: 10px;
  padding: 20px;
  position: relative;
  max-height: 190vh;              /* taller modal */
  overflow-y: auto;
}

.close-modal {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
}
/* Responsive arrangement:
   - Desktop: two rows -> [topic][link] on first; [images][privacy] on second
   - Small screens/portrait: stack vertically */
@media (min-width: 900px) {
  .composer-options > input[type="text"] { grid-column: 1; }
  .composer-options > input[type="url"] { grid-column: 2; }
  .composer-options > label.image-upload { grid-column: 1; }
  .composer-options > select { grid-column: 2; }
}

@media (max-width: 500px), (orientation: portrait) {
  .composer-options {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .composer-options > * { width: 100%; }
  
    .modal-content {
    width: calc(92% + 3px);   /* extend 3px to right */
    margin-left: 3px;          /* shift modal 3px right */
    max-height: 92vh;          /* allow slightly taller modal on mobile */
  }

  .composer-form textarea {
    min-height: 160px;         /* ensure the text area fits nicely */
  }
}

.incoming-call-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 500000;
  padding: 16px;
}

.incoming-call-container {
  background: #ffffff;
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.incoming-call-title {
  font-size: 1.6rem;
  margin-bottom: 12px;
  font-weight: bold;
}

.incoming-call-user {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.incoming-call-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.decline-button,
.accept-button {
  flex: 1 1;
  padding: 14px 16px;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}

.decline-button {
  background: #e63946;
  color: #fff;
}

.accept-button {
  background: #2a9d8f;
  color: #fff;
}

@media (max-width: 480px) {
  .incoming-call-container {
    padding: 20px;
  }

  .incoming-call-actions {
    gap: 12px;
  }

  .decline-button,
  .accept-button {
    padding: 12px 14px;
  }
}


/*# sourceMappingURL=main.0e8a19aa.css.map*/