
:root{
  /* ဒီ variable များသည် dark/light theme ၏ အရောင်နှင့် layout တန်ဖိုးများ ဖြစ်သည်။ */
  --bg:#0b1724;
  --bg-deep:#07111d;
  --surface:rgba(17,31,48,.78);
  --surface-solid:#101f30;
  --surface-soft:#13283a;
  --primary:#69def6;
  --secondary:#b596ff;
  --text:#f6f8ff;
  --muted:#9ba9bf;
  --line:rgba(255,255,255,.09);
  --green:#4fe0aa;
  --warning:#ffd166;
  --danger:#ff8181;
  --shadow:0 26px 70px rgba(0,0,0,.30);
  --radius:22px;
}

*{
  box-sizing:border-box;
}

html{
  color-scheme:dark;
}

body{
  margin:0;
  min-height:100vh;

  color:var(--text);

  font-family:
    Inter,
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;

  background:
    radial-gradient(
      circle at 8% 18%,
      rgba(105,222,246,.10),
      transparent 27%
    ),
    radial-gradient(
      circle at 88% 10%,
      rgba(181,150,255,.08),
      transparent 24%
    ),
    var(--bg);
}

body.light{
  --bg:#edf5ff;
  --bg-deep:#e2edf9;
  --surface:rgba(255,255,255,.82);
  --surface-solid:#ffffff;
  --surface-soft:#f2f7ff;
  --text:#101b2c;
  --muted:#607089;
  --line:rgba(15,28,48,.11);
  --shadow:0 22px 55px rgba(34,58,88,.12);
}

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

button,
input,
textarea,
select{
  font:inherit;
}


/* ============================================================
 * Background Decoration
 * ============================================================
 */

.page-noise{
  position:fixed;
  inset:0;
  z-index:0;

  pointer-events:none;

  opacity:.025;

  background-image:
    linear-gradient(
      rgba(255,255,255,.75) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255,255,255,.75) 1px,
      transparent 1px
    );

  background-size:44px 44px;
}

.cursor-glow{
  position:fixed;

  width:360px;
  height:360px;

  border-radius:50%;

  background:
    rgba(105,222,246,.045);

  filter:blur(25px);

  pointer-events:none;

  transform:
    translate(-50%,-50%);

  z-index:0;
}


/* ============================================================
 * App Layout
 * ============================================================
 */

.app-shell{
  position:relative;
  z-index:1;

  min-height:100vh;
}


/* ============================================================
 * PORTFOLIO STYLE NAV
 * ============================================================
 */

.site-nav{
  position:sticky;
  top:0;
  z-index:1000;

  background:
    rgba(6,17,29,.93);

  backdrop-filter:
    blur(22px);

  border-bottom:
    1px solid var(--line);
}

body.light .site-nav{
  background:
    rgba(241,247,255,.92);
}

.nav-inner{
  min-height:112px;

  max-width:1500px;

  margin:0 auto;

  padding:
    0 28px;

  display:flex;

  align-items:center;

  gap:26px;
}


/* Portfolio Logo / Name */

.portfolio-brand{
  display:flex;

  align-items:center;

  gap:14px;

  flex-shrink:0;
}

.portfolio-brand-avatar{
  width:54px;
  height:54px;

  border-radius:17px;

  display:grid;
  place-items:center;

  color:#08131f;

  font-size:21px;
  font-weight:1000;

  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--secondary)
    );

  box-shadow:
    0 14px 34px
    rgba(105,222,246,.18);
}

.portfolio-brand-name{
  display:flex;

  align-items:center;

  gap:9px;

  font-size:20px;

  letter-spacing:.17em;
}

.portfolio-brand-name span{
  color:var(--primary);

  font-weight:900;
}

.portfolio-brand-name strong{
  font-weight:450;
}


/* Desktop nav */

.desktop-nav{
  margin-left:auto;

  display:flex;

  align-items:center;

  justify-content:flex-end;

  gap:4px;

  flex-wrap:wrap;
}

.desktop-nav a{
  position:relative;

  padding:
    10px 9px;

  border-radius:10px;

  color:var(--muted);

  font-size:11px;

  font-weight:750;

  transition:
    .18s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active{
  color:var(--text);

  background:
    rgba(105,222,246,.07);
}

.desktop-nav a.active::after{
  content:"";

  position:absolute;

  left:10px;
  right:10px;
  bottom:3px;

  height:2px;

  border-radius:999px;

  background:
    linear-gradient(
      90deg,
      var(--primary),
      var(--secondary)
    );
}


/* Right actions */

.nav-actions{
  display:flex;

  align-items:center;

  gap:12px;
}

.theme-btn{
  width:42px;
  height:42px;

  border:
    1px solid var(--line);

  border-radius:14px;

  background:
    rgba(255,255,255,.035);

  color:var(--text);

  cursor:pointer;
}


/* ============================================================
 * Portfolio Hamburger
 * ============================================================
 */

.menu-toggle{
  display:none;

  width:58px;
  min-height:66px;

  padding:8px 7px 4px;

  border:0;

  background:
    transparent;

  color:var(--text);

  cursor:pointer;

  flex-direction:column;

  align-items:center;

  justify-content:center;

  gap:5px;
}

.menu-toggle span{
  display:block;

  width:38px;
  height:3px;

  background:
    var(--text);

  border-radius:4px;

  transition:
    .22s ease;
}

.menu-toggle small{
  margin-top:1px;

  color:var(--muted);

  font-size:12px;
}


/* Open animation */

.menu-toggle.open span:nth-child(1){
  transform:
    translateY(8px)
    rotate(45deg);
}

.menu-toggle.open span:nth-child(2){
  opacity:0;
}

.menu-toggle.open span:nth-child(3){
  transform:
    translateY(-8px)
    rotate(-45deg);
}


/* ============================================================
 * Mobile Menu
 * ============================================================
 */

.mobile-menu{
  display:none;

  max-height:0;

  overflow:hidden;

  border-top:
    1px solid transparent;

  background:
    rgba(7,18,31,.98);

  transition:
    max-height .32s ease;
}

body.light .mobile-menu{
  background:
    rgba(244,249,255,.98);
}

.mobile-menu.open{
  max-height:
    calc(100vh - 96px);

  overflow:auto;

  border-top-color:
    var(--line);
}

.mobile-menu-header{
  display:flex;

  align-items:center;

  justify-content:space-between;

  gap:18px;

  padding:
    22px 24px;

  border-bottom:
    1px solid var(--line);
}

.mobile-menu-header strong{
  display:block;

  margin-top:5px;
}

.admin-online{
  display:inline-flex;

  align-items:center;

  gap:7px;

  padding:
    7px 10px;

  border:
    1px solid var(--line);

  border-radius:999px;

  color:var(--muted);

  font-size:10px;

  font-weight:900;
}

.admin-online i{
  width:8px;
  height:8px;

  border-radius:50%;

  background:
    var(--green);
}

.mobile-menu-links{
  display:grid;

  padding:
    12px 18px;
}

.mobile-menu-links a{
  display:flex;

  align-items:center;

  justify-content:space-between;

  min-height:53px;

  padding:
    0 12px;

  border-bottom:
    1px solid var(--line);

  color:var(--muted);

  font-size:14px;

  font-weight:700;
}

.mobile-menu-links a b{
  color:var(--primary);
}

.mobile-menu-links a.active{
  color:var(--text);
}

.mobile-menu-links a.active span{
  color:var(--primary);
}

.mobile-menu-footer{
  padding:
    18px 24px 25px;
}

.mobile-logout{
  color:var(--danger);

  font-weight:850;
}


/* ============================================================
 * Main content
 * ============================================================
 */

.main{
  width:min(1500px,100%);

  margin:
    0 auto;

  padding:
    34px 32px;
}

.page-heading{
  display:flex;

  align-items:flex-end;

  justify-content:space-between;

  gap:18px;

  margin-bottom:26px;
}

.page-heading h1{
  margin:
    5px 0 0;

  font-size:
    clamp(2rem,3vw,3rem);

  line-height:1;

  letter-spacing:-.045em;
}

.eyebrow,
.small-muted{
  color:var(--muted);

  font-size:10px;

  letter-spacing:.10em;
}

.admin-pill{
  padding:
    9px 12px;

  border:
    1px solid var(--line);

  border-radius:999px;

  background:
    var(--surface);

  color:var(--muted);

  font-size:10px;

  font-weight:900;
}

.admin-pill span{
  display:inline-block;

  width:8px;
  height:8px;

  margin-right:7px;

  border-radius:50%;

  background:
    var(--green);
}


/* ============================================================
 * Existing Admin UI
 * ============================================================
 */

.grid{
  display:grid;

  grid-template-columns:
    repeat(4,minmax(0,1fr));

  gap:18px;
}

.card,
.stat,
.table-wrap,
.detail,
.login-card{
  border:
    1px solid var(--line);

  background:
    var(--surface);

  backdrop-filter:
    blur(18px);

  box-shadow:
    var(--shadow);
}

.card{
  padding:22px;

  border-radius:
    var(--radius);
}

.menu-card{
  position:relative;

  min-height:185px;

  display:flex;

  flex-direction:column;

  overflow:hidden;

  transition:
    transform .22s ease,
    border-color .22s ease;
}

.menu-card::after{
  content:"";

  position:absolute;

  width:150px;
  height:150px;

  right:-80px;
  top:-80px;

  border-radius:50%;

  background:
    radial-gradient(
      circle,
      rgba(105,222,246,.14),
      transparent 70%
    );
}

.menu-card:hover{
  transform:
    translateY(-5px);

  border-color:
    rgba(105,222,246,.28);
}

.menu-icon{
  width:50px;
  height:50px;

  display:grid;
  place-items:center;

  border:
    1px solid var(--line);

  border-radius:16px;

  background:
    linear-gradient(
      135deg,
      rgba(105,222,246,.13),
      rgba(181,150,255,.12)
    );

  font-size:23px;
}

.card h3{
  margin:
    18px 0 7px;
}

.card p{
  margin:0;

  color:var(--muted);

  line-height:1.55;
}

.manage{
  margin-top:auto;

  padding-top:18px;

  color:var(--primary);

  font-size:10px;

  font-weight:900;

  letter-spacing:.1em;
}


.stats{
  display:grid;

  grid-template-columns:
    repeat(4,minmax(0,1fr));

  gap:16px;

  margin-bottom:20px;
}

.stat{
  padding:20px;

  border-radius:20px;
}

.stat .value{
  font-size:
    clamp(1.7rem,3vw,2.35rem);

  font-weight:950;

  background:
    linear-gradient(
      135deg,
      var(--primary),
      #ffffff 50%,
      var(--secondary)
    );

  -webkit-background-clip:text;

  background-clip:text;

  color:transparent;
}

.stat .label{
  margin-top:5px;

  color:var(--muted);

  font-size:10px;

  letter-spacing:.08em;
}


.page-actions{
  display:flex;

  align-items:center;

  justify-content:space-between;

  gap:12px;

  flex-wrap:wrap;

  margin-bottom:18px;
}

.actions{
  display:flex;

  align-items:center;

  gap:8px;

  flex-wrap:wrap;
}


.btn{
  display:inline-flex;

  align-items:center;

  justify-content:center;

  padding:
    10px 15px;

  border:
    1px solid var(--line);

  border-radius:999px;

  background:
    rgba(255,255,255,.035);

  color:var(--text);

  font-size:11px;

  font-weight:850;

  cursor:pointer;
}

.btn-primary{
  border:0;

  color:#08131f;

  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--secondary)
    );
}

.btn-success{
  color:#9ef0c7;

  background:
    rgba(79,224,170,.09);
}

.btn-warning{
  color:#ffe19a;

  background:
    rgba(255,209,102,.09);
}

.btn-danger{
  color:#ffb7b7;

  background:
    rgba(255,129,129,.09);
}

.btn-sm{
  padding:
    7px 10px;

  font-size:9px;
}


.table-wrap{
  overflow:auto;

  border-radius:22px;
}

table{
  width:100%;

  border-collapse:collapse;
}

th,
td{
  padding:
    13px 14px;

  border-bottom:
    1px solid var(--line);

  text-align:left;

  white-space:nowrap;
}

th{
  color:var(--muted);

  font-size:9px;

  letter-spacing:.10em;
}

td{
  font-size:12px;
}

tbody tr:hover{
  background:
    rgba(105,222,246,.025);
}


.badge{
  display:inline-block;

  padding:
    5px 8px;

  border-radius:999px;

  font-size:9px;

  font-weight:900;
}

.badge-success{
  color:#96ebbf;

  background:
    rgba(79,224,170,.10);
}

.badge-warning{
  color:#ffdf88;

  background:
    rgba(255,209,102,.10);
}

.badge-danger{
  color:#ffb4b4;

  background:
    rgba(255,129,129,.10);
}

.badge-muted{
  color:var(--muted);

  background:
    rgba(255,255,255,.06);
}


.form-card{
  max-width:920px;
}

.form-grid{
  display:grid;

  grid-template-columns:
    1fr 1fr;

  gap:16px;
}

.field{
  display:grid;

  gap:7px;
}

.field.full{
  grid-column:
    1 / -1;
}

label{
  color:var(--muted);

  font-size:10px;

  font-weight:750;
}

input,
textarea,
select{
  width:100%;

  padding:
    12px 13px;

  border:
    1px solid var(--line);

  border-radius:14px;

  background:
    rgba(255,255,255,.035);

  color:var(--text);

  outline:none;
}

input:focus,
textarea:focus,
select:focus{
  border-color:
    var(--primary);

  box-shadow:
    0 0 0 4px
    rgba(105,222,246,.08);
}

textarea{
  min-height:120px;

  resize:vertical;
}

.checkbox{
  display:flex;

  align-items:center;

  gap:9px;
}

.checkbox input{
  width:auto;
}


.flash{
  margin-bottom:18px;

  padding:
    13px 15px;

  border:
    1px solid var(--line);

  border-radius:14px;
}

.flash-success{
  color:#a6f0c9;

  background:
    rgba(79,224,170,.08);
}

.flash-error{
  color:#ffb7b7;

  background:
    rgba(255,129,129,.08);
}

.flash-warning{
  color:#ffe08c;

  background:
    rgba(255,209,102,.08);
}


.filters{
  display:flex;

  align-items:flex-end;

  gap:10px;

  flex-wrap:wrap;

  margin-bottom:16px;
}

.filters .field{
  min-width:150px;
}


.section-title{
  display:flex;

  align-items:center;

  justify-content:space-between;

  margin:
    26px 0 13px;
}

.section-title h2{
  margin:0;

  font-size:1.1rem;
}


.detail-grid{
  display:grid;

  grid-template-columns:
    repeat(3,minmax(0,1fr));

  gap:14px;
}

.detail{
  padding:16px;

  border-radius:18px;
}

.detail .k{
  margin-bottom:6px;

  color:var(--muted);

  font-size:9px;

  letter-spacing:.08em;
}

.detail .v{
  font-weight:750;
}


.map{
  height:480px;

  margin-bottom:18px;

  overflow:hidden;

  border:
    1px solid var(--line);

  border-radius:24px;

  background:#10151b;

  box-shadow:
    var(--shadow);
}


.empty{
  padding:36px;

  text-align:center;

  color:var(--muted);
}


.footer{
  margin-top:28px;

  padding-top:18px;

  border-top:
    1px solid var(--line);

  color:var(--muted);

  font-size:10px;
}


code{
  padding:
    3px 6px;

  border-radius:7px;

  background:
    rgba(255,255,255,.05);
}


/* ============================================================
 * Login Page
 * ============================================================
 */

.login-wrap{
  position:relative;
  z-index:1;

  min-height:100vh;

  padding:20px;

  display:grid;

  place-items:center;
}

.login-card{
  width:
    min(470px,100%);

  padding:32px;

  border-radius:28px;
}

.login-card h1{
  margin:
    7px 0 7px;

  font-size:2rem;
}

.login-logo{
  width:58px;
  height:58px;

  margin-bottom:20px;

  display:grid;
  place-items:center;

  border-radius:18px;

  color:#08131f;

  font-size:24px;

  font-weight:1000;

  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--secondary)
    );
}

.login-subtitle{
  margin:
    0 0 22px;

  color:var(--muted);
}


/* ============================================================
 * Responsive
 * ============================================================
 */

@media (max-width:1250px){

  .desktop-nav{
    display:none;
  }

  .menu-toggle{
    display:flex;
  }

  .nav-actions{
    margin-left:auto;
  }

  .mobile-menu{
    display:block;
  }

}


@media (max-width:1100px){

  .grid,
  .stats{
    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }

  .detail-grid{
    grid-template-columns:
      repeat(2,1fr);
  }

}


@media (max-width:780px){

  .nav-inner{
    min-height:115px;

    padding:
      0 26px;
  }

  .portfolio-brand-avatar{
    width:58px;
    height:58px;

    border-radius:18px;
  }

  .portfolio-brand-name{
    font-size:20px;

    gap:10px;
  }

  .theme-btn{
    display:none;
  }

  .main{
    padding:
      28px 20px;
  }

  .page-heading{
    align-items:flex-start;
  }

  .page-heading h1{
    font-size:
      clamp(2rem,10vw,2.7rem);
  }

  .admin-pill{
    display:none;
  }

  .grid,
  .stats,
  .form-grid,
  .detail-grid{
    grid-template-columns:
      1fr;
  }

  .field.full{
    grid-column:auto;
  }

  .map{
    height:380px;
  }

}


@media (max-width:480px){

  .nav-inner{
    padding:
      0 18px;
  }

  .portfolio-brand-avatar{
    width:52px;
    height:52px;
  }

  .portfolio-brand-name{
    font-size:18px;

    letter-spacing:.13em;
  }

  .menu-toggle span{
    width:36px;
  }

  .mobile-menu-header{
    padding:
      18px;
  }

  .mobile-menu-links{
    padding:
      10px 12px;
  }

  .main{
    padding:
      24px 14px 30px;
  }

}


/* ============================================================
 * USER AVATAR
 * ============================================================
 *
 * Portfolio Navbar လို User Photo ကို rounded image အဖြစ်ပြမည်။
 * Avatar မရှိရင် gradient initial fallback ပြမည်။
 */

.user-avatar-shell{
  position:relative;
  overflow:hidden;
  padding:0;
  flex-shrink:0;
}

.portfolio-user-avatar{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

.portfolio-avatar-fallback{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;

  color:#08131f;
  font-size:18px;
  font-weight:1000;

  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--secondary)
    );
}

.portfolio-brand-avatar.user-avatar-shell{
  background:
    var(--surface-soft);

  border:
    2px solid
    rgba(105,222,246,.25);

  box-shadow:
    0 14px 34px
    rgba(105,222,246,.18);
}

.mobile-admin-profile{
  display:flex;
  align-items:center;
  gap:12px;
}

.mobile-admin-avatar{
  width:46px;
  height:46px;
  border-radius:14px;

  border:
    1px solid var(--line);

  background:
    var(--surface-soft);
}

.users-table-avatar{
  width:42px;
  height:42px;

  border-radius:13px;

  border:
    1px solid var(--line);

  background:
    var(--surface-soft);

  box-shadow:
    0 8px 20px
    rgba(0,0,0,.18);
}

.users-table-avatar .portfolio-avatar-fallback{
  font-size:14px;
}

.user-name-cell{
  display:grid;
  gap:3px;
}

.user-name-cell span{
  color:var(--muted);
  font-size:10px;
}
