﻿/* %%%%%%%%%%%%%%%%%%%% styling for Dashboard %%%%%%%%%%%%%%%%%%%% */

/* %%%%%%%%%%%%%%%%%%%% CSS for search icon %%%%%%%%%%%%%%%%%%%% */
*{ outline: none; }

.tb{ display: table; width: 100%; }
.Q_td{ display: table-cell; vertical-align: top; }

input, #Q_btn{
  color: #99FFFF;
  font-family: Nunito;
  padding-left: 5px;
  padding-bottom: 3px;
  padding-top: 0px;
  border: 0;
  background-color: transparent;
}

#cover{
  width: 350px;
  background-color: #FFFF99;
  border-radius: 30px;
  transform: scale(0.6);
}
.Q_form{ height: 30px; }

input[type="text"]{
  width: 100%;
  height: 30px;
  font-size: 29px;
  line-height: 1;
  padding-top: 0px;
  color: #000000;
}
input[type="text"]::placeholder{ color: #990000; }

#s-cover{ width: 1px; padding-left: 35px; }

#Q_btn{
  position: relative;
  display: block;
  width: 43px;
  height: 28px;
  cursor: pointer;
}

#s-circle{
  position: relative;
  top: -3px;
  left: 0;
  width: 15px;
  height: 15px;
  margin-top: 0;
  border: 4px solid #0000FF;
  background-color: transparent;
  border-radius: 50%;
  transition: 0.3s ease all;
}

#Q_btn span{
  position: absolute;
  top: 15px;
  left: 20px;
  display: block;
  color: #0000FF;
  width: 20px;
  height: 10px;
  background-color: transparent;
  border-radius: 10px;
  transform: rotateZ(45deg);
  transition: 0.5s ease all;
}
#Q_btn span:before, #Q_btn span:after{
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 18px;
  height: 5px;
  background-color: #0000FF;
  border-radius: 5px;
  transition: 0.2s ease all;
}

#s-cover:hover #s-circle{
  top: -1px;
  width: 35px;
  height: 5px;
  border-width: 0;
  background-color: #0000FF;
  border-radius: 10px;
}
#s-cover:hover span{
  top: 50%;
  left: 25px;
  width: 20px;
  margin-top: -9px;
  transform: rotateZ(0);
}
#s-cover:hover #Q_btn span:before{ bottom: 5px; transform: rotateZ(52deg); }
#s-cover:hover #Q_btn span:after{ bottom: -5px; transform: rotateZ(-52deg); }
#s-cover:hover #Q_btn span:before,
#s-cover:hover #Q_btn span:after{
  right: -1px;
  width: 20px;
  background-color: #0000FF;
}

/* %%%%%%%%%%%%%%%%%%%% CSS for profile and quick links %%%%%%%%%%%%%%%%%%%% */
.site-name{
  width: 50px;
  font-family: "Baskerville Old Face";
  font-weight: bold;
}

.profile-icon{
  border-radius: 50%;
  width: 30px;
  height: 30px;
}
.vajra-icon{
  border-radius: 50%;
  width: 30px;
  height: 30px;
}
.icon-profile{
  border-radius: 50%;
  width: 30px;
  height: 30px;
  background-color: #FFFF00;
}

/* ✅ Dashboard MUST sit above map/image */
.dashboard{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #000000;
  z-index: 999999;     /* ✅ applied correctly now */
}

/* remove default browser gaps */
html, body{ margin: 0; padding: 0; }

/* Keep table tight */
.dashboard table{ border-collapse: collapse; }
.dashboard td{ padding: 0; vertical-align: middle; }

/* UL that contains icons */
.dash-icon{
  list-style-type: none;
  margin: 0;
  padding: 0;
  background-color: #000000;

  /* ✅ IMPORTANT: do NOT clip dropdowns */
  overflow: visible;
}

/* Each dropdown item must be a positioning context */
.icon-dropdown{
  float: left;
  display: inline-block;
  position: relative; /* ✅ dropdown anchors here */
}

.icon-dropdown a, .icon-icon{
  display: inline-block;
  text-align: center;
  padding: 2px 2px;
  text-decoration: none;
}


/* Dropdown itself */
.icon-content{
  display: none;
  position: absolute;
  top: 100%;
  left: 0;

  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);

 background: rgba(14,34,48,.96);
  border: 1px solid rgba(242,211,106,.35);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);





  z-index: 1000000;   /* ✅ above dashboard and map */
}

.icon-content a{
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}



.icon-dropdown:hover .icon-content{ display: block; }

.center{
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ✅ Logo dropdown align under logo */
.logo-dropdown .icon-content{
  left: 0;
  right: auto;
}

/* %%%%%%%%%%%%%%%%%%%% shopping cart badge %%%%%%%%%%%%%%%%%%%% */
.wrapper{ position: relative; }

.tot_item{
  border-radius: 50%;
  width: 15px;
  height: 15px;
  font-family: "Copperplate Gothic Bold";
  color: #ffffff;
  background-color: #ff00ff;
  right: -2px;
  vertical-align: text-top;
  text-decoration: none;
}

/* ========================================================= */
/* =================== MOBILE RESPONSIVE =================== */
/* ========================================================= */

@media (max-width: 768px){
  .dashboard{
    overflow-x: auto;
    white-space: nowrap;
  }

  .dashboard table{
    width: max-content;
  }

  .site-name font{ font-size: 12px !important; }
  #userNm font{ font-size: 14px !important; }

  .profile-icon,
  .icon-profile,
  .vajra-icon{
    width: 26px;
    height: 26px;
  }

  .icon-content{
    left: auto;
    right: 0;
    max-width: 90vw;
  }
}

@media (max-width: 480px){
  #userNm{ display: none; }
  .site-name font{ font-size: 10px !important; }

  .icon-content{
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0;
  }
}


/* ==============================
   REGAL DROPDOWNS (dashboard)
   - keeps existing HTML structure
   - upgrades look without breaking layout
   - Clean, glassy, noble aesthetic
============================== */

/* Ensure dashboard always sits above the map */
.dashboard{
  z-index: 1000;
}


.icon-content{
  background: rgba(14,34,48,.96);
  border: 1px solid rgba(242,211,106,.35);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  padding: 8px;
  z-index: 1100;

  max-height: min(70vh, 420px);
  overflow-y: auto;
}

.icon-content a{
  display: block;
  padding: 10px 14px;
  border-radius: 12px;

  color: rgba(242,211,106,.95);   /* Regal gold */
  font-family: "Baskerville Old Face","Baskerville","Garamond","Times New Roman",serif;
  font-size: 14px;
  letter-spacing: .04em;

  text-decoration: none;
  transition: background .2s ease, transform .15s ease;
}

.icon-content a:hover{
  background: rgba(255,255,255,.06);
  transform: translateX(2px);
}

/* Subtle divider option if needed later */
.icon-content .sep{
  height: 1px;
  margin: 6px 4px;
  background: rgba(242,211,106,.18);
}

/* =========================================
   IMPERIAL + SACRED DROPDOWNS (FINAL)
   - ❖ glyph header
   - soft fade-in + lift
   - subtle gold glow on open
   - tiered styling: citizen vs company
========================================= */

/* --- Base dropdown shell --- */
.icon-content{
  background: rgba(14,34,48,.965);
  border: 1px solid rgba(242,211,106,.35);
  border-radius: 16px;
  box-shadow: 0 22px 60px rgba(0,0,0,.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  padding: 8px;
  z-index: 1100;

  max-height: min(70vh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;

  /* animation: hidden by default (because display:none until hover) */
  opacity: 0;
  transform: translateY(-6px) scale(.99);
  transform-origin: top left;
  transition: opacity .18s ease, transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* When dropdown is actually shown (your CSS uses :hover to display:block) */
.icon-dropdown:hover > .icon-content,
.icon-dropdown:focus-within > .icon-content{
  opacity: 1;
  transform: translateY(0) scale(1);

  /* subtle imperial glow */
  border-color: rgba(242,211,106,.55);
  box-shadow:
    0 26px 70px rgba(0,0,0,.72),
    0 0 0 1px rgba(242,211,106,.10),
    0 0 22px rgba(242,211,106,.16);
}

/* --- ❖ glyph header --- */
.icon-content::before{
  content: "❖";
  display: block;
  text-align: center;

  margin: 2px 0 6px;
  padding: 6px 0;

  color: rgba(242,211,106,.88);
  font-size: 14px;
  letter-spacing: .22em;
  line-height: 1;

  /* sacred divider */
  border-bottom: 1px solid rgba(242,211,106,.18);
}

/* --- Menu items --- */
.icon-content a{
  display: block;
  padding: 10px 14px;
  border-radius: 12px;

  color: rgba(242,211,106,.95);
  font-family: "Baskerville Old Face","Baskerville","Garamond","Times New Roman",serif;
  font-size: 14px;
  letter-spacing: .04em;

  text-decoration: none;
  transition: background .18s ease, transform .14s ease, box-shadow .18s ease;
}

/* Hover: sacred shimmer */
.icon-content a:hover{
  background: rgba(255,255,255,.06);
  transform: translateX(2px);
  box-shadow: inset 0 0 0 1px rgba(242,211,106,.12);
}

/* --- Tiered styling --- */
/* Default (citizen) */
.icon-content{
  --tierBorder: rgba(242,211,106,.35);
  --tierText: rgba(242,211,106,.95);
  --tierGlow: rgba(242,211,106,.16);
}
.icon-content a{ color: var(--tierText); }

/* Company tier: deeper imperial gold, slightly stronger glow
   Apply by adding class "tier-company" to the li.icon-dropdown (recommended):
   <li class="icon-dropdown tier-company"> ... */
.icon-dropdown.tier-company > .icon-content{
  border-color: rgba(242,211,106,.55);
  box-shadow: 0 26px 70px rgba(0,0,0,.74), 0 0 26px rgba(242,211,106,.22);
}
.icon-dropdown.tier-company > .icon-content::before{
  color: rgba(255,221,120,.95);
  border-bottom-color: rgba(242,211,106,.24);
}
.icon-dropdown.tier-company > .icon-content a{
  color: rgba(255,221,120,.98);
}
.icon-dropdown.tier-company > .icon-content a:hover{
  box-shadow: inset 0 0 0 1px rgba(242,211,106,.18);
}

/* Optional: compact on very small phones so it feels “imperial” not bulky */
@media (max-width: 480px){
  .icon-content a{ padding: 9px 12px; font-size: 13px; }
  .icon-content{ border-radius: 14px; }
}
