* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

body {
  background-color: #12141d;
  color: #e2e8f0;
  overflow-x: hidden;
}

.pos-container {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* SIDEBAR STYLES */
.sidebar {
  width: 300px;
  background-color: #1e2130;
  border-right: 1px solid #2d3248;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid #2d3248;
}

.sidebar-header h2 {
  font-size: 18px;
  color: #38bdf8;
  font-weight: 700;
}

.user-role {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
}

.sidebar-menu {
  flex: 1;
  padding: 15px 10px;
  overflow-y: auto;
}

.menu-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  margin: 15px 10px 8px 10px;
  letter-spacing: 1px;
}

/* BUTTONS */
.nav-btn, .submenu-btn, .nested-btn {
  text-decoration: none;
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  padding: 12px 14px;
  border-radius: 8px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
  transition: all 0.25s ease;
}

.hover-effect:hover {
  background-color: rgba(2, 132, 199, 0.12);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateX(4px);
}

.submenu-btn { padding-left: 36px; font-size: 13px; }
.nested-btn { padding-left: 48px; font-size: 13px; }

.submenu-container, .nested-menu {
  display: none;
  background-color: #151722;
  border-radius: 8px;
  margin: 4px 0 8px 0;
  padding: 4px;
  border: 1px solid #232738;
}

.arrow-icon { margin-left: auto; font-size: 11px; transition: transform 0.3s; }

.sidebar-footer {
  padding: 15px 20px;
  border-top: 1px solid #2d3248;
  font-size: 13px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* MAIN CONTENT AREA */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background-color: #0f111a;
  scroll-behavior: smooth;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: #1e2130;
  border-bottom: 1px solid #2d3248;
}

.search-box {
  display: flex;
  align-items: center;
  background-color: #12141d;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid #2d3248;
  width: 320px;
}

.search-box input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  margin-left: 10px;
  width: 100%;
}

.status-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  margin-right: 6px;
  box-shadow: 0 0 8px #22c55e;
}

.system-status { font-size: 13px; color: #94a3b8; }

.dashboard-body { padding: 30px; }

/* ABOUT ME PROFILE CARD */
.profile-card {
  background: linear-gradient(135deg, #1e2130 0%, #151722 100%);
  border: 1px solid #2d3248;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 25px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.profile-avatar {
  width: 54px;
  height: 54px;
  background-color: rgba(56, 189, 248, 0.15);
  border: 1px solid #38bdf8;
  color: #38bdf8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.profile-header h2 { font-size: 22px; color: #f8fafc; }
.profile-tagline { font-size: 13px; color: #38bdf8; margin-top: 2px; }

.profile-details {
  display: flex;
  gap: 20px;
  border-top: 1px solid #2d3248;
  padding-top: 15px;
  flex-wrap: wrap;
}

.detail-item {
  font-size: 13px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-item i { color: #38bdf8; }

/* DYNAMIC VIEWER BOX */
.info-viewer {
  background-color: #181b29;
  border: 1px solid #38bdf8;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
  animation: fadeIn 0.3s ease-in-out;
}

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

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

.viewer-header h3 { font-size: 18px; color: #38bdf8; }

.close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
}

.close-btn:hover { color: #fff; }

#viewer-desc { font-size: 14px; color: #cbd5e1; line-height: 1.6; margin-bottom: 15px; }

.external-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #0284c7;
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s;
}

.external-link-btn:hover { background-color: #0369a1; }

.section-title {
  font-size: 18px;
  color: #f1f5f9;
  margin-bottom: 15px;
}

/* CARDS GRID */
.pos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.pos-card {
  background-color: #1e2130;
  border: 1px solid #2d3248;
  padding: 24px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.hover-card:hover {
  transform: translateY(-5px);
  border-color: #38bdf8;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.highlight-card {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.4) !important;
  transform: scale(1.02);
}

.card-icon {
  width: 44px;
  height: 44px;
  background-color: rgba(2, 132, 199, 0.15);
  color: #38bdf8;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 15px;
}

.pos-card h3 { font-size: 18px; margin-bottom: 15px; color: #f1f5f9; }

.code-list { list-style: none; }

.code-list li {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 10px;
  padding-left: 15px;
  position: relative;
}

.code-list li::before {
  content: "•";
  color: #38bdf8;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.code-list li strong { color: #e2e8f0; }


/* PASSWORD AUTHENTICATION OVERLAY */
.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #0f111a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.auth-card {
  background-color: #1e2130;
  border: 1px solid #2d3248;
  padding: 35px;
  border-radius: 16px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.auth-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid #38bdf8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 20px auto;
}

.auth-card h2 {
  font-size: 20px;
  color: #f8fafc;
  margin-bottom: 8px;
}

.auth-card p {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 24px;
}

.auth-input-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-input-group input {
  background-color: #12141d;
  border: 1px solid #2d3248;
  padding: 12px 16px;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  outline: none;
  text-align: center;
  letter-spacing: 2px;
}

.auth-input-group input:focus {
  border-color: #38bdf8;
}

.auth-input-group button {
  background-color: #0284c7;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
}

.auth-input-group button:hover {
  background-color: #0369a1;
}

.auth-error {
  color: #ef4444 !important;
  font-size: 12px;
  margin-top: 12px;
  margin-bottom: 0 !important;
}