/* ================= PREMIUM SHADCN & GLASSMORPHISM DESIGN SYSTEM ================= */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg-page: #09090b; /* Zinc 950 */
  --card-bg: rgba(20, 20, 25, 0.65); /* Dark Glass */
  --card-border: rgba(255, 255, 255, 0.08);
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --accent-gradient: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  --text-primary: #f4f4f5; /* Zinc 100 */
  --text-secondary: #a1a1aa; /* Zinc 400 */
  --text-muted: #52525b; /* Zinc 600 */
  --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --glow-cyan: rgba(6, 182, 212, 0.15);
  --glow-purple: rgba(139, 92, 246, 0.15);
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 0% 0%, rgba(6, 182, 212, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.05) 0px, transparent 50%);
  background-attachment: fixed;
}

/* Scrollbar Style */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* App Container */
.app-container {
  display: flex;
  width: 100%;
  position: relative;
}

/* Sidebar */
.sidebar {
  width: 280px;
  border-right: 1px solid var(--card-border);
  background: rgba(10, 10, 12, 0.8);
  backdrop-filter: blur(16px);
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 40;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px var(--glow-cyan);
}

.logo-icon i {
  color: #fff;
  font-size: 18px;
}

.logo-text {
  font-weight: 850;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.03);
  padding-left: 20px;
}

.menu-item.active {
  background: rgba(6, 182, 212, 0.08);
  color: #fff;
  border-color: rgba(6, 182, 212, 0.2);
  box-shadow: inset 0 0 12px rgba(6, 182, 212, 0.05);
}

.menu-item i {
  font-size: 16px;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 280px;
  padding: 40px;
  min-height: 100vh;
}

/* Header */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.title-container h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  background: linear-gradient(to right, #fff, #a1a1aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.title-container p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Premium Glass Cards */
.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-premium);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
}

/* Forms & Inputs */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

.input-dark {
  background: rgba(9, 9, 11, 0.6);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px 16px;
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
}

.input-dark:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.15);
}

.textarea-dark {
  resize: vertical;
  min-height: 100px;
}

/* Select Styling */
.select-dark {
  background: rgba(9, 9, 11, 0.6) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23a1a1aa' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") no-repeat right 12px center;
  background-size: 18px;
  appearance: none;
  padding-right: 40px;
  cursor: pointer;
}

/* Credentials Bar */
.credentials-panel {
  display: grid;
  grid-template-cols: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

/* Buttons */
.btn-cyber {
  background: #fff;
  color: #000;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-cyber:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-cyber:active {
  transform: translateY(0);
}

.btn-cyber.primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 14px var(--glow-cyan);
}

.btn-cyber.primary:hover {
  box-shadow: 0 6px 20px var(--accent-cyan);
}

/* Two Columns Layout for Testing Page */
.test-layout {
  display: grid;
  grid-template-cols: 1.2fr 1fr;
  gap: 30px;
}

/* Console & Code outputs */
.output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 10px;
}

.output-header span {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.console-output {
  background: #09090b;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #a7f3d0; /* Emerald light green */
  white-space: pre-wrap;
  word-break: break-all;
  overflow-y: auto;
  max-height: 500px;
  min-height: 250px;
  line-height: 1.6;
}

.console-output.error {
  color: #fca5a5; /* Red tint */
}

/* Code Highlights Tab */
.code-tab-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 12px;
}

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.tab-btn.active {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--card-border);
  color: #fff;
}

.code-container {
  background: #09090b;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
  position: relative;
}

.code-container pre {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  line-height: 1.6;
  color: #e4e4e7;
}

.btn-copy {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 6px 10px;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.btn-copy:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Status Cards & Grid */
.status-grid {
  display: grid;
  grid-template-cols: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.status-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.status-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(6, 182, 212, 0.06);
  border: 1px solid rgba(6, 182, 212, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

.status-card-info h4 {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.status-card-info p {
  font-size: 18px;
  font-weight: 800;
  margin-top: 2px;
}

/* Responsive */
@media (max-width: 1024px) {
  .test-layout {
    grid-template-cols: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }
  .main-content {
    margin-left: 0;
    padding: 24px;
  }
  .credentials-panel {
    grid-template-cols: 1fr;
  }
}

/* Barcode preview container */
.barcode-preview-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--card-border);
  border-radius: 12px;
  padding: 30px;
  background: rgba(0, 0, 0, 0.2);
  margin-top: 15px;
}

.barcode-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  margin-bottom: 15px;
}

.barcode-download-btn {
  text-decoration: none;
  margin-top: 10px;
}
