*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; }

.desktop {
    background-image: url("images/africa1.jpg");
    width: 100%;
    height: 100vh;
    background-size: cover;
    display: flex;
    padding-top: 40px;
}
.desktop1{
    background-image: url("images/africa1.jpg");
    width: 100%;
    background-size: cover;
    display: flex;
    padding-top: 40px;
}
.login-form{
    background-color: aliceblue;
    padding-left: 60px;
    padding-right: 60px;
    width: 30%;
    height: auto;
    border-radius: 10px;
    margin: 0 auto;
    margin-bottom: 130px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.login-form1{
    background-color: aliceblue;
    padding-left: 60px;
    padding-right: 60px;
    width: 30%;
    height: auto;
    border-radius: 10px;
    margin: 0 auto;
    margin-bottom: 200px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.homepage{
    background-color: aliceblue;
    padding-left: 60px;
    padding-right: 60px;
    padding-bottom: 30px;
    width: 50%;
    height: auto;
    border-radius: 10px;
    margin: 0 auto;
    margin-bottom: 130px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.btn0{
    background-color: darkgray;
    font-size: medium;
    width: 20%;
    height: 40px;
    margin-top: 5px;
    border-radius: 10px;
    color: white;
}
.btn1{
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
    font-size: medium;
    border-radius: 10px;
    width: 20%;
    height: 40px;
    align-self: end;
    box-shadow:0 1px 6px rgba(0,0,0,0.06);
    margin-bottom: 10px;
}
.btn1:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 18px cornflowerblue;
}
@media (max-width: 767px){
    .btn1{
        margin-top: 10px;
        width: 10%;
        align-self: end;
    }
}
.btn6{
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
    font-size: medium;
    border-radius: 10px;
    width: 20%;
    height: 40px;
    align-self: start;
    box-shadow:0 1px 6px rgba(0,0,0,0.06);
}
.btn6:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 18px cornflowerblue;
}
.btn2{
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
    font-size: medium;
    border-radius: 10px;
    width: 30%;
    height: 40px;
    align-self: end;
    margin-bottom: 30px;
}
.btn3{
    display:flex;
    align-items:center;
    justify-content:center;
    padding:12px 10px;
    border:1px solid #e9e9e9;
    background:#fff;
    border-radius:10px;
    box-shadow:0 1px 6px rgba(0,0,0,0.06);
    transition:transform .2s ease, box-shadow .2s ease;
    aspect-ratio:196 / 116;
    text-align:center;
    width: 40%;
    height: auto;
}
.btn3:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 18px darkgrey;
}
.input1{
    border-radius: 5px;
    font-size: medium;
    padding: 0.5rem 0.5rem;
    margin-top: -15px;
}
.title0{
    text-align: center;
}
@media (max-width: 767px){
    .title0{
    font-size:medium;
}
}
.title2{
    text-align: center;
    color: white;
}
.title3{
    text-align: center;
    color: black;
    margin-bottom: -10px;
}
.title4{
    text-align: center;
    color: black;
}
.logo-links{
    background-color: darkgray;
    margin-left: -60px;
    margin-right: -60px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    gap: 10px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 15px;
    padding-top: 10px;
}
.logo-links img{
    margin-right: 190px;
    margin-bottom: -20px;
}
.text0{
    background-color: beige;
    margin-left: -60px;
    margin-right: -60px;
    text-align: center;
    margin-top: 40px;
    padding-bottom: 20px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
.forgot{
    margin-left: 200px;
    text-decoration: none;
}
.title1{
    margin-bottom: -40px;
}
.signup{
    text-decoration: none;
}
.text2{
    margin-bottom: 50px;
    border-radius: 5px;
    font-size: medium;
    padding: 0.5rem 0.5rem;
    margin-top: -15px;
}
.input2{
    align-self: start;
}
.label0{
    margin-left: 30px;
    margin-top: -40px;
}
.star{
    color: red;
}
.top-containers{
    background-color: white;
    display: flex;
    flex-direction: column;
    border: none;
    border-radius: 10px;
    gap: 20px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
}
.center-containers{
    background-color: white;
    display: flex;
    flex-direction: column;
    border: black;
    border-radius: 10px;
    gap: 20px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    padding-bottom: 30px;
    padding-top: 10px;
    justify-content: center;
    border:1px solid #e9e9e9;
    box-shadow:0 1px 6px rgba(0,0,0,0.06);
    transition:transform .2s ease, box-shadow .2s ease;
}
.center-containers:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 18px rgba(0,0,0,0.08);
}
.center-containers1{
    background-color: darkgreen;
    border: darkgreen;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0 auto;
    width: 100%;
    padding: 15px;
    justify-content: center;
}
.center-containers1:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 18px limegreen;
}
.center-containers2{
    background-color: darkred;
    border: darkgreen;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0 auto;
    width: 100%;
    padding: 15px;
    justify-content: center;
}
.center-containers2:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 18px red;
}
.center-containers3{
    background-color: white;
    border-radius: 10px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    justify-content: center;
}
.center-containers3:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 18px white;
}
.chat-container{
    color: white;
    background-color: darkgreen;
    border: darkgreen;
    border-radius: 10px;
    padding: 10px;
    margin-top: -5px;
}
.chat-container:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 18px green;
}
.chat-container0{
    color: white;
    background-color: firebrick;
    border: darkgreen;
    border-radius: 10px;
    padding: 10px;
    margin-top: -5px;
}
.chat-container0:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 18px red;
}

.container0{
    background-color: black;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: black;
    border-radius: 10px;
    gap: 20px;
    margin-bottom: 50px;
}
.img0{
    border-radius: 10px;
    margin-left: -5.5px;
    margin-top: -1px;
}
.center-containersmain{
    display: flex;
    flex-direction: row;
    gap: 20px;
}
.top-containers0{
    display: flex;
    flex-direction: row;
    font-family: sans-serif;
    font-size: medium;
    font-style: italic;
    gap: 190px;
    margin-left: 120px;
    margin-bottom: 10px;
}
.top-containers1{
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
    margin: 0 auto;
    justify-content: center;
}
#filter{
    margin-bottom: 30px;
}
.pos0{
    color: #084298;
    background-color: #cfe2ff;
    border-color: #b6d4fe;
    border-radius: 5px;
    padding: 20px;
    font-size: medium;
    font-family: sans-serif;
}
.pos1{
    color: #084298;
    background-color: #cfe2ff;
    border-color: #b6d4fe;
    border-radius: 5px;
    padding: 10px;
    font-size: medium;
    font-family: sans-serif;
    margin-bottom: 10px;
}
.text3{
    margin-left: 20px;
}
.btn4{
    color: white;
    font-size: medium;
    background-color: #198754;
    border: none;
    padding: 20px;
    border-radius: 5px;
    align-self: center;
}
.btn4:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 18px green;
}
.btn5{
    color: white;
    font-size: medium;
    background-color: brown;
    border: none;
    padding: 20px;
    border-radius: 5px;
    align-self: center;
}
.btn5:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 18px red;
}
.txt1{
    height: 80px;
    font-size: medium;
    font-family: sans-serif;
    padding: 10px;
}
.text4{
    font-style: italic;
    margin-top: -17px;
    font-size: 15px;
    margin-left: 10px;
}
.top-containers2{
    background-color: #cfe2ff;
    border-color: #b6d4fe;
    padding: 10px;
    border-radius: 10px;
}
.top-containers3{
    background-color: white;
    display: flex;
    flex-direction: row;
    border: none;
    border-radius: 10px;
    gap: 20px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
}
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.table th,
.table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}
.table th {
    background-color: #f4f4f4;
}
.top-containers3 a{
    margin-top: 30px;
}
.center-containers4{
    width: 180%;
}
.search-msg { 
    font-size: medium;
    }
.notice {
  margin: 10px 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  display: none;
}
.notice.error {
  display: block;
  color: #8a1f11;
  background: #fdecea;
  border: 1px solid #f5c2c0;
}
.notice.success {
  display: block;
  color: #1b5e20;
  background: #e8f5e9;
  border: 1px solid #b7dfb9;
}
.pw-meter {
  height: 8px;
  background: #eee;
  border-radius: 6px;
  overflow: hidden;
  margin: 6px 0 2px;
}
.pw-meter .pw-bar {
  height: 100%;
  width: 0%;
  background: #d9534f; /* will change via JS */
  transition: width .2s ease, background .2s ease;
}
.pw-help {
  display:block;
  color:#516074;
  margin-top:2px;
  font-size:.9rem;
}
.btn2 { cursor:pointer; }
.logo-links{
  display:flex;
  align-items:center;
  justify-content:space-between; /* pushes name to the right */
  gap:12px;
}
.welcome-user{
  margin-left:auto;           /* safety if justify-content changes */
  font-weight:600;
  font-size:0.95rem;
  color:#333;                 /* match your theme */
  white-space:nowrap;
  max-width:40ch;             /* avoid overflow on long names */
  text-overflow:ellipsis;
  overflow:hidden;
}
.logo-links{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}

.user-menu{ position:relative; margin-left:auto; }
.user-menu__button{
  display:flex; align-items:center; gap:6px;
  padding:8px 10px; border:1px solid #e3e7ee; border-radius:8px;
  background:#fff; cursor:pointer; font-weight:600;
}
.user-menu__button:focus{ outline:2px solid #7aa2ff; outline-offset:2px; }

.user-menu__list{
  position:absolute; right:0; top:calc(100% + 6px);
  min-width:160px; background:#fff; border:1px solid #e3e7ee; border-radius:10px;
  box-shadow:0 10px 24px rgba(16,24,40,.08); padding:6px; display:none; z-index:50;
}
.user-menu__item{
  display:block; padding:10px 12px; border-radius:8px; color:#222; text-decoration:none;
}
.user-menu__item:hover{ background:#f5f7fb; }

.user-menu--open .user-menu__list{ display:block; }
.user-menu--open .chev{ transform:rotate(180deg); }

.chev{ transition:transform .15s ease; fill:#444; }

.title5{
        text-align: start;
    }





/* ===== Base responsive helpers ===== */
img, video { max-width: 100%; height: auto; }
.table { width: 100%; overflow-x: auto; display: block; }
html, body { -webkit-text-size-adjust: 100%; }

/* Use dynamic viewport so mobile browser bars don't cut height */
.desktop, .desktop1 {
  min-height: 100dvh;
  background-position: center;
}

/* Replace rigid spacing on the header/logo area */
.logo-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-left: 20px;
  padding-right: 20px;
}
.logo-links img {
  margin-right: 0;   /* undo big fixed margin */
  margin-bottom: 0;  /* avoid shifting */
  height: auto;
  max-height: 56px;  /* keep it neat on mobile */
}

/* Avoid overflowing content blocks */
.center-containersmain,
.top-containers1,
.top-containers3 {
  flex-wrap: wrap;
}

/* That 180% width will overflow on small screens — make it fluid */
.center-containers4 {
  width: 100%;
  max-width: 100%;
}

/* Buttons: smooth tap targets by default (can be tightened on desktop if needed) */
.btn0, .btn1, .btn2, .btn6, .btn3 {
  max-width: 100%;
}

/* ====== Tablet (≤ 1024px) ====== */
@media (max-width: 1024px) {
  .login-form,
  .login-form1 { width: 55%; padding-left: 32px; padding-right: 32px; }

  .homepage { width: 70%; padding-left: 32px; padding-right: 32px; }

  .btn1, .btn2, .btn6 { width: 40%; }
  .btn3 { width: 60%; }

  .top-containers0 { gap: 40px; margin-left: 0; }
  .top-containers1 { gap: 16px; }
  .top-containers3 { gap: 16px; }

  .title2 { font-size: 1.6rem; }
}

/* ====== Mobile landscape & small tablets (≤ 768px) ====== */
@media (max-width: 768px) {
  /* Make main panels full-width stacked */
  .login-form,
  .login-form1,
  .homepage {
    width: 94%;
    margin: 0 auto 32px;
    padding: 20px 16px 24px;
    gap: 16px;
  }

  /* Reduce reliance on left/right “fake” full-bleed via negative margins */
  .logo-links,
  .text0 {
    margin-left: 0;
    margin-right: 0;
  }

  .forgot { margin-left: 0; display: inline-block; }

  .label0 { margin-left: 0; }

  /* Inputs: larger, easier to tap */
  .input1, .text2, .txt1 { font-size: 1rem; padding: 10px 12px; }

  /* Buttons fill line for easy tapping */
  .btn0, .btn1, .btn2, .btn6 { width: 100%; align-self: stretch; }
  .btn3 { width: 100%; aspect-ratio: auto; }

  /* Cards & rows stack */
  .center-containersmain,
  .top-containers1,
  .top-containers3 {
    flex-direction: column;
  }

  /* Prevent horizontal scroll from big gaps/margins */
  .top-containers0 {
    gap: 16px;
    margin-left: 0;
    flex-wrap: wrap;
  }

  .img0 { margin-left: 0; margin-top: 0; width: 100%; }

  /* Titles */
  .title2, .title3, .title4, .title5 { text-align: center; }

  /* Chat/info boxes padding */
  .chat-container, .chat-container0 { padding: 12px; }

  /* Tables: readable on small screens */
  .table th, .table td { padding: 8px; font-size: 0.95rem; }
}

/* ====== Small phones (≤ 480px) ====== */
@media (max-width: 480px) {
  .desktop, .desktop1 {
    padding-top: 20px; /* less dead space top */
    background-size: cover;
  }

  .title2 { font-size: 1.25rem; }
  .search-msg { font-size: 0.95rem; }

  /* Tighten paddings for tiny screens */
  .top-containers,
  .center-containers,
  .center-containers1,
  .center-containers2,
  .center-containers3,
  .container0 {
    padding: 12px;
  }

  /* Buttons spacing */
  .btn4, .btn5 { width: 100%; padding: 14px; }

  /* Notices and helper text sizing */
  .notice, .pw-help { font-size: .9rem; }
}

/* ===== Touch-friendly :hover fallbacks on mobile ===== */
@media (hover: none) {
  .btn1:hover, .btn3:hover, .btn4:hover, .btn5:hover,
  .center-containers:hover,
  .center-containers1:hover,
  .center-containers2:hover,
  .center-containers3:hover,
  .chat-container:hover,
  .chat-container0:hover {
    transform: none;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  }
}

/* ===== Optional: utility to create a full-bleed section safely ===== */
/* Wrap content in a container and use .full-bleed on elements that should stretch */
.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
}
.full-bleed {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

/* ===== LOGIN: mobile/tablet tweaks only ===== */
@media (max-width: 1024px){
  form.login-form{ --card-xpad:32px; padding:0 var(--card-xpad); overflow:hidden; border-radius:10px; }
  form.login-form .logo-links{
    margin:0 calc(var(--card-xpad)*-1);
    padding:12px var(--card-xpad);
    background:#d3d3d3;
    border-top-left-radius:10px; border-top-right-radius:10px;
  }
  form.login-form .text0{
    margin:28px calc(var(--card-xpad)*-1) 0;
    padding:16px var(--card-xpad) 18px;
    background:#fff7d6;
    border-bottom-left-radius:10px; border-bottom-right-radius:10px;
  }
  form.login-form .title1{ display:block; margin:12px 0 4px; font-weight:600; }
  form.login-form .forgot{ display:block; text-align:right; margin:0 0 6px; }
}
@media (max-width: 768px){
  form.login-form{ --card-xpad:16px; }
}








@media (max-width:480px){
  #filterForm .btn1{ width:100% !important; }
  #filterForm .btn1 + .btn1{ margin-top:8px; } /* space between stacked buttons */
}
body{ font-size:15px; }
h1{ font-size:1.9rem; } h2{ font-size:1.4rem; } h3{ font-size:1.15rem; }
@media (max-width:768px){
  body{ font-size:14.5px; }
  .container0 + .center-containers h2{ font-size:1.8rem; }
}




.chat-container,
.chat-container0 {
  margin-bottom: 12px;      /* space between reports */
  padding: 8px 10px;        /* optional: breathing room */
  border-radius: 8px;       /* keep your look tidy */
}
.chat-container:last-child,
.chat-container0:last-child {
  margin-bottom: 0;         /* no extra space at the end */
}

/* If your content is inside <a> tags, make them block so spacing/padding works nicely */
.chat-container > a,
.chat-container0 > a {
  display: block;
  line-height: 1.4;
}








/* Uniform tile size for wallet + flag */
.btn3{
  width: 230px;
  height: 150px;
  padding: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
}
.btn3 img{
  width: 100%;
  height: 100%;
  object-fit: contain; /* use 'cover' if you prefer edge-to-edge */
  display: block;
}

/* Grid holding the two tiles */
.tiles-grid{
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 12px 16px;
  align-items: start;
}

/* Tile wrapper: button on top, caption under */
.tile{
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tile-label .title3{
  display: block;
  margin-top: 6px;
  text-align: center;
}

/* Mobile: still two columns; tiles scale to cell width */
@media (max-width: 480px){
  .tiles-grid{ grid-template-columns: repeat(2, 1fr); }
  .btn3{ width: 100%; height: 100px; }
}


/* Desktop-only: place Positive & Negative side-by-side */
@media (min-width: 1024px){
  .center-containersmain{
    display: flex;
    gap: 16px;            /* space between the two tiles */
    align-items: stretch; /* equal height look */
  }
  .center-containers1,
  .center-containers2{
    flex: 1 1 0;
    min-width: 0;
    cursor: pointer;
  }
}

/* Default (desktop/tablet): stack normally */
.btn-row-mobile{
  display: block;     /* or whatever your default was */
}
.btn-row-mobile .btn1{
  width: auto;        /* prevent 50/50 carryover from other rules */
  flex: 0 0 auto;
}


.exp { white-space: pre-wrap; max-width: 520px; }
table { table-layout: auto; }












