* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Montserrat', sans-serif;
-webkit-tap-highlight-color: transparent;
}

html, body {
  min-height: 100%;
}

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top, #2a004f, #22053F);
}

.container {
width: 100%;
padding: 0px; 
}

.login-wrapper {
padding: 20px;
min-height: 100svh;
display: flex;
align-items: center;
justify-content: center;
}

#login-card {
width: 100%;
max-width: 380px;
margin: auto;
padding: 30px 22px;
border-radius: 20px;
background: rgba(40, 10, 70, 0.6);
backdrop-filter: blur(14px);
box-shadow: 0 0 35px rgba(160, 80, 255, 0.45);
text-align: center;
animation: pop 0.8s ease;
}

@keyframes pop {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

#login-card h1 {
color: #fff;
font-size: 22px;
margin-bottom: 6px;
}

#login-card p {
color: #cbb6ff;
font-size: 13px;
margin-bottom: 25px;
}

.input-box {
position: relative;
margin-bottom: 18px;
}

.input-box i {
position: absolute;
top: 50%;
left: 16px;
transform: translateY(-50%);
color: #c084fc;
font-size: 16px;
}

.input-box input {
width: 100%;
height: 52px;
padding: 0 14px 0 44px;
background: rgba(0, 0, 0, 0.15);
border: 1px solid #7c3aed;
border-radius: 14px;
color: #ffffff;
font-size: 15px;
outline: none;
}

.input-box input::placeholder {
color: #a78bfa;
}

.input-box input:focus {
border-color: #a855f7;
box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
background: rgba(0, 0, 0, 0.2);
}

.input-box.input-disabled input {
  background: rgba(0, 0, 0, 0.15);
  border-color: rgba(124, 58, 237, 0.35);
  color: #c4b5fd;
  cursor: not-allowed;
  box-shadow: none;
}

.input-box.input-disabled input:focus {
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: none;
}

.input-box.input-disabled i {
  color: rgba(192, 132, 252, 0.45);
}

.input-box.input-disabled input::placeholder {
  color: rgba(167, 139, 250, 0.5);
}

button {
width: 100%;
padding: 14px;
border-radius: 16px;
border: none;
background: linear-gradient(135deg, #7c3aed, #a855f7);
color: white;
font-weight: 700;
letter-spacing: 1px;
font-size: 14px;
box-shadow: 0 0 20px rgba(168,85,247,0.7);
transition: 0.3s;
margin-top: 5px;
}

button:active {
transform: scale(0.96);
}

.footer {
display: block;
margin-top: 14px;
font-size: 12px;
color: #cbb6ff;
}

#app-header {
position: sticky;
top: 0;
left: 0;
width: 100%;
height: 56px;
background: rgba(30, 8, 60, 0.9);
backdrop-filter: blur(12px);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 16px;
color: #fff;
z-index: 1000;
box-shadow: 0 2px 15px rgba(0,0,0,0.4);
background: rgba(42, 0, 79, 0.85);
backdrop-filter: blur(10px);
border-bottom: 1px solid rgba(157, 77, 255, 0.25);
flex-shrink: 0;
}

#app-header i {
font-size: 22px;
color: #d8b4fe;
}

#seller_app_header {
    position: sticky;
    top: 0;
    width: 100%;
    height: 56px;
    background: rgba(42, 0, 79, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    color: #fff;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.4);
    border-bottom: 1px solid rgba(157, 77, 255, 0.25);
}

#seller_app_header i {
    font-size: 22px;
    color: #d8b4fe;
    flex-shrink: 0;
}

/* LEFT TEXT */
.seller-info {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    min-width: 0;
    margin-left: 10px;
}

.welcome-label {
    font-size: 13px;
    color: #c4b5fd;
    letter-spacing: 0.4px;
}

.seller-name {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

/* RIGHT BALANCES */
.balance-wrap {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.balance-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #e9d5ff;
}

.balance-item i {
    font-size: 15px;
    color: #c084fc;
}

.balance-item b {
    font-weight: 600;
    color: #fff;
}


.drawer {
position: fixed;
top: 0;
left: -260px;
width: 260px;
height: 100%;
background: rgba(35, 10, 65, 0.95);
backdrop-filter: blur(16px);
box-shadow: 4px 0 20px rgba(0,0,0,0.6);
z-index: 1100;
transition: 0.3s ease;
}

.drawer.open {
left: 0;
}

.drawer-header {
height: 56px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 16px;
color: #fff;
font-weight: 600;
border-bottom: 0.5px solid rgba(255,255,255,0.1);
}

.drawer-menu {
list-style: none;
padding: 10px 0;
}

.drawer-menu li {
padding: 14px 20px;
color: #e9d5ff;
display: flex;
align-items: center;
gap: 14px;
font-size: 14px;
}

.drawer-menu li:hover {
background: rgba(124,58,237,0.2);
}

.overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.5);
z-index: 1050;
opacity: 0;
visibility: hidden;
transition: 0.3s;
}

.overlay.show {
opacity: 1;
visibility: visible;
}

.app-content {
flex: 1;
padding: 22px 22px;
width: 100%;
overflow-y: auto;  
}

.page {
display: none;
color: #fff;
width: 100%;
height: 100%;
}

.page.active {
display: block;
}

.dash-title {
color: #fff;
margin-bottom: 16px;
font-size: 20px;
font-weight: 600;
}

.dashboard-cards {
display: flex;
flex-direction: column;
gap: 18px;
padding: 0;
}

.dash-card {
position: relative;
background: rgba(40, 10, 70, 0.6);
backdrop-filter: blur(12px);
border-radius: 14px;
padding: 22px;
overflow: hidden;
box-shadow: 0 0 20px rgba(160, 80, 255, 0.45);
animation: pop 0.8s ease;
}

.glow-line {
position: absolute;
top: 0;
left: -40%;
width: 40%;
height: 3px;
background: linear-gradient(
90deg,
transparent,
#9d4dff,
transparent
);
animation: moveGlow 3s linear infinite;
}

@keyframes moveGlow {
0% {
left: -40%;
}
100% {
left: 100%;
}
}

.dash-card h3 {
color: #cdb7ff;
font-size: 14px;
margin-bottom: 6px;
}

.dash-card p {
color: #fff;
font-size: 22px;
font-weight: 600;
}

.gen-card {
width: 100%;
max-width: 380px;
margin: auto;
padding: 30px 22px;
border-radius: 20px;
background: rgba(40, 10, 70, 0.6);
backdrop-filter: blur(14px);
box-shadow: 0 0 30px rgba(160, 80, 255, 0.45);
text-align: center;
animation: pop 0.8s ease;
}

.label-input {
display: flex;
align-items: start;
margin-bottom: 5px;
margin-top: 2px;
color: #cbb6ff;
}


.selectable-box {
position: relative;
margin-bottom: 18px;
}

.selectable-box .left-icon {
position: absolute;
top: 50%;
left: 16px;
transform: translateY(-50%);
color: #c084fc;
font-size: 16px;
pointer-events: none;
}

.selectable-box select {
width: 100%;
height: 52px;
padding: 0 44px 0 44px;
padding: 0 52px 0 44px;
background: rgba(0, 0, 0, 0.15);
border: 1px solid #7c3aed;
border-radius: 14px;
color: #ffffff;
font-size: 15px;
outline: none;
appearance: none;
cursor: pointer;
}

.selectable-box select option[value=""] {
color: #a78bfa;
}

.selectable-box select:focus {
border-color: #a855f7;
box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
background: rgba(0, 0, 0, 0.2);
}

.select-arrow {
position: absolute;
top: 50%;
right: 16px;
transform: translateY(-50%);
color: #c084fc;
pointer-events: none;
font-size: 14px;
}

.select-arrow > i {
color: #c084fc;
font-size: 14px;
}

.selectable-box select:focus + .select-arrow i {
transform: rotate(180deg);
transition: 0.3s ease;
}

.selectable-box select option {
background: #22053F;
color: #ffffff;
}

.date-input {
width: 100%;
height: 52px;
padding: 0 52px 0 44px;
background: rgba(0, 0, 0, 0.15);
border: 1px solid #7c3aed;
border-radius: 14px;
color: #ffffff;
font-size: 15px;
outline: none;
cursor: pointer;
appearance: none;
-webkit-appearance: none;
}

.date-input:focus {
border-color: #a855f7;
box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
background: rgba(0, 0, 0, 0.2);
}

.date-input:focus + .select-arrow i {
transform: rotate(180deg);
transition: 0.3s ease;
}

#toast-container {
  position: fixed;
  top: 40px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.toast {
  min-width: 260px;
  max-width: 320px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(40, 10, 70, 0.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 0 25px rgba(160, 80, 255, 0.45);
  color: #fff;
  display: flex;
  gap: 12px;
  align-items: center;
  animation: toastIn 0.4s ease forwards;
  position: relative;
  overflow: hidden;
}

.toast i {
  font-size: 20px;
}

.toast-content h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.toast-content p {
  font-size: 12px;
  color: #e9d5ff;
}

.toast::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: rgba(255,255,255,0.3);
  animation: toastProgress 3s linear forwards;
}

.toast.success { border-left: 4px solid #22c55e; }
.toast.error,
.toast.failed { border-left: 4px solid #ef4444; }
.toast.warning { border-left: 4px solid #f59e0b; }

.toast.success i { color: #22c55e; }
.toast.error i,
.toast.failed i { color: #ef4444; }
.toast.warning i { color: #f59e0b; }

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateX(40px) scale(0.9);
  }
}

@keyframes toastProgress {
  to {
    width: 0%;
  }
}

.users-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.user-card {
  background: rgba(40, 10, 70, 0.6);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 0 25px rgba(160, 80, 255, 0.4);
  color: #fff;
  animation: pop 0.5s ease;
}

.seller-card {
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.35);
}

.user-card:hover {
  box-shadow: 0 0 35px rgba(180, 120, 255, 0.6);
}

.user-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.username {
  font-size: 16px;
  font-weight: 600;
}

.game {
  font-size: 12px;
  color: #cbb6ff;
}

.seller-card .game {
  color: #86efac;
  font-weight: 500;
}

.user-info {
  margin-top: 12px;
  font-size: 13px;
  color: #e9d5ff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.info-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.info-right {
  white-space: nowrap;
}

.password-row {
  display: flex;
  flex-direction: row;
  gap: 6px;
}

.password-value {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.password-text {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toggle-password {
  cursor: pointer;
  font-size: 10px;
  color: #c084fc;
}

.toggle-password:hover {
  color: #e9d5ff;
  transform: scale(1.1);
}

.user-info .validity,
.user-info .seller {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.user-info .usage {
  justify-self: end;
  white-space: nowrap;
}

.user-info b {
  color: #d8b4fe;
  font-weight: 500;
}

.user-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

.user-actions i {
  font-size: 18px;
  cursor: pointer;
  transition: 0.2s;
}

.user-actions i:hover {
  transform: scale(1.15);
}

.user-actions .edit {
  color: #38bdf8;
}

.user-actions .reset {
  color: #facc15;
}

.user-actions .delete {
  color: #f87171;
}

.confirm-dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9998;
  animation: fadeIn 0.2s ease;
}

.confirm-dialog {
  background: rgba(40,10,70,0.8);
  backdrop-filter: blur(14px);
  color: #fff;
  padding: 24px 20px;
  border-radius: 20px;
  width: 320px;
  max-width: 90%;
  box-shadow: 0 0 30px rgba(160,80,255,0.5);
  display: flex;
  flex-direction: column;
  text-align: left;
  transform: translateY(-20px);
  animation: slideIn 0.25s ease forwards;
  font-family: 'Montserrat', sans-serif;
}

.confirm-dialog h3 {
  margin: 0 0 10px 0;
  font-size: 18px;
  font-weight: 600;
  color: #d8b4fe;
}

.confirm-dialog p {
  margin: 0 0 20px 0;
  font-size: 14px;
  color: #cbb6ff;
}

.confirm-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.confirm-buttons button {
  border: none;
  border-radius: 14px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Montserrat', sans-serif;
  min-width: 80px;
}

.confirm-buttons .cancel-btn {
  background: rgba(0,0,0,0.15);
  color: #cbb6ff;
  box-shadow: 0 0 10px rgba(124,58,237,0.4);
}

.confirm-buttons .cancel-btn:hover {
  background: rgba(124,58,237,0.25);
}

.confirm-buttons .ok-btn {
  background: linear-gradient(135deg,#7c3aed,#a855f7);
  color: #fff;
  box-shadow: 0 0 20px rgba(168,85,247,0.6);
}

.confirm-buttons .ok-btn:hover {
  filter: brightness(1.1);
}

@keyframes slideIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}