@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Share+Tech+Mono&family=JetBrains+Mono:wght@300;400;500;600&display=swap');

:root {
  --primary: #00ff41;
  --primary-dark: #00cc33;
  --primary-light: #33ff66;
  --secondary: #6c63ff;
  --accent: #ff4d8d;
  --dark-bg: #0a0a0f;
  --darker-bg: #050508;
  --card-bg: rgba(18, 18, 26, 0.9);
  --card-border: rgba(0, 255, 65, 0.2);
  --text: #e0e0e0;
  --text-light: #ffffff;
  --text-dark: #888888;
  --input-bg: rgba(30, 30, 40, 0.8);
  --border: rgba(255, 255, 255, 0.1);
  --success: #00ff41;
  --warning: #ffcc00;
  --error: #ff3333;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --glow: 0 0 15px rgba(0, 255, 65, 0.5);
}

[data-theme="light"] {
  --primary: #0066cc;
  --primary-dark: #0052a3;
  --primary-light: #0080ff;
  --dark-bg: #f0f2f5;
  --darker-bg: #ffffff;
  --card-bg: rgba(255, 255, 255, 0.95);
  --card-border: rgba(0, 102, 204, 0.2);
  --text: #333333;
  --text-light: #000000;
  --text-dark: #666666;
  --input-bg: rgba(240, 242, 245, 0.8);
  --border: rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--dark-bg);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.3s ease;
}

.matrix-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
  z-index: -1;
}

.matrix-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 80%, rgba(0, 255, 65, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(108, 99, 255, 0.05) 0%, transparent 50%);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.hexagon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rotate 10s linear infinite;
}

.hexagon i {
  font-size: 24px;
  color: white;
}

.logo-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-controls {
  display: flex;
  gap: 15px;
}

.btn-icon {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text);
  width: 45px;
  height: 45px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 18px;
}

.btn-icon:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

/* Title Section */
.title-section {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.glitch {
  font-family: 'Orbitron', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  text-transform: uppercase;
  position: relative;
  color: var(--primary);
  margin-bottom: 15px;
  letter-spacing: 2px;
  text-shadow:
    0.05em 0 0 rgba(255, 0, 0, 0.75),
    -0.025em -0.05em 0 rgba(0, 255, 0, 0.75),
    0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
  animation: glitch 500ms infinite;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  animation: glitch-2 650ms infinite;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  transform: translate(-0.025em, -0.0125em);
  opacity: 0.8;
}

.glitch::after {
  animation: glitch-3 375ms infinite;
  clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
  transform: translate(0.0125em, 0.025em);
  opacity: 0.8;
}

.subtitle {
  font-size: 1.2rem;
  margin-bottom: 20px;
  opacity: 0.8;
}

.cyber-text {
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 255, 65, 0.1);
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid rgba(0, 255, 65, 0.3);
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}

.pulse-dot.active {
  background: var(--success);
}

/* Cards */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

.card-header i {
  font-size: 24px;
  color: var(--primary);
}

.card-header h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  flex: 1;
}

/* Input Group */
.input-group {
  margin-bottom: 30px;
}

.input-with-icon {
  position: relative;
  margin-bottom: 10px;
}

.input-with-icon i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 18px;
}

#combinedInput {
  width: 100%;
  padding: 20px 60px;
  background: var(--input-bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  color: var(--text-light);
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  outline: none;
  transition: all 0.3s ease;
}

#combinedInput:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 255, 65, 0.2);
}

.input-hint {
  font-size: 0.9rem;
  color: var(--text-dark);
  padding-left: 10px;
}

/* Results Grid */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.result-card {
  background: linear-gradient(145deg, rgba(30, 30, 40, 0.8), rgba(20, 20, 30, 0.8));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.result-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.result-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--glow);
}

.result-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.result-header i {
  font-size: 20px;
  color: var(--primary);
}

.result-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  flex: 1;
}

.btn-copy {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 35px;
  height: 35px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-copy:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.result-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 5px;
  word-break: break-all;
  padding: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px dashed rgba(0, 255, 65, 0.3);
}

.result-value.binary {
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.result-value.hex {
  color: var(--secondary);
}

.result-label {
  font-size: 0.9rem;
  color: var(--text-dark);
}

/* QR Controls */
.qr-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.control-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.slider-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

#qrSize {
  flex: 1;
  height: 8px;
  -webkit-appearance: none;
  background: linear-gradient(to right, var(--text-dark), var(--primary));
  border-radius: 4px;
  outline: none;
}

#qrSize::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#qrSizeValue {
  min-width: 60px;
  text-align: center;
  font-weight: 600;
  color: var(--primary);
}

input[type="color"] {
  width: 60px;
  height: 40px;
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
}

.toggle-switch {
  position: relative;
  width: 60px;
  height: 30px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch label {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--text-dark);
  border-radius: 15px;
  cursor: pointer;
  transition: .4s;
}

.toggle-switch label:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  border-radius: 50%;
  transition: .4s;
}

.toggle-switch input:checked + label {
  background-color: var(--primary);
}

.toggle-switch input:checked + label:before {
  transform: translateX(30px);
}

/* QR Area */
.qr-area {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  margin-bottom: 30px;
}

.qrcode-container {
  background: white;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  border: 2px dashed var(--border);
  overflow: hidden;
}

.qr-placeholder {
  text-align: center;
  color: var(--text-dark);
}

.qr-placeholder i {
  font-size: 80px;
  color: var(--border);
  margin-bottom: 20px;
}

.qr-info {
  background: var(--input-bg);
  border-radius: 12px;
  padding: 25px;
  border: 1px solid var(--border);
}

.qr-stats {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.stat:last-child {
  border-bottom: none;
}

.stat-label {
  color: var(--text-dark);
}

.stat-value {
  font-weight: 600;
  color: var(--primary);
  font-family: 'Orbitron', sans-serif;
}

/* Export Panel */
.export-panel {
  background: linear-gradient(145deg, rgba(30, 30, 40, 0.8), rgba(20, 20, 30, 0.8));
  border-radius: 12px;
  padding: 25px;
  border: 1px solid var(--border);
}

.export-title {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.export-title i {
  font-size: 24px;
  color: var(--primary);
}

.export-title h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
}

.export-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

.export-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 15px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.export-btn i {
  font-size: 24px;
}

.export-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow);
}

.export-btn.png:hover { border-color: #ff4d8d; color: #ff4d8d; }
.export-btn.svg:hover { border-color: #6c63ff; color: #6c63ff; }
.export-btn.pdf:hover { border-color: #ff3333; color: #ff3333; }
.export-btn.print:hover { border-color: #00cc33; color: #00cc33; }
.export-btn.share:hover { border-color: #ffcc00; color: #ffcc00; }
.export-btn.clipboard:hover { border-color: #33ff66; color: #33ff66; }

.batch-export {
  text-align: center;
}

.btn-secondary {
  padding: 15px 30px;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  border: none;
  border-radius: 10px;
  color: white;
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 255, 65, 0.3);
}

/* History */
.history-card .card-header {
  position: relative;
}

.btn-clear-history {
  padding: 8px 20px;
  background: rgba(255, 77, 141, 0.1);
  border: 1px solid rgba(255, 77, 141, 0.3);
  border-radius: 8px;
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-clear-history:hover {
  background: rgba(255, 77, 141, 0.2);
  border-color: var(--accent);
}

.history-list {
  min-height: 200px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
}

.history-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: var(--text-dark);
}

.history-empty i {
  font-size: 50px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.history-item {
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.history-item:hover {
  border-color: var(--primary);
  transform: translateX(5px);
}

.history-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.history-time {
  font-size: 0.8rem;
  color: var(--text-dark);
}

.history-actions {
  display: flex;
  gap: 10px;
}

/* Footer */
.footer {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.footer-tech {
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-top: 10px;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-link i {
  width: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-dark);
}

.system-info {
  display: flex;
  gap: 20px;
  align-items: center;
}

.version {
  background: rgba(0, 255, 65, 0.1);
  padding: 5px 15px;
  border-radius: 15px;
  color: var(--primary);
  font-weight: 600;
}

.uptime {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 15px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  animation: modalSlide 0.3s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  font-family: 'Orbitron', sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 28px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(255, 77, 141, 0.1);
  color: var(--accent);
}

.modal-body {
  padding: 25px;
}

.modal-body h3 {
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 20px;
  color: var(--primary);
}

.modal-body p {
  margin-bottom: 25px;
  line-height: 1.6;
}

.features {
  background: var(--input-bg);
  border-radius: 10px;
  padding: 20px;
  border: 1px solid var(--border);
}

.features h4 {
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.features ul {
  list-style: none;
  padding-left: 0;
}

.features li {
  padding: 8px 0;
  padding-left: 30px;
  position: relative;
}

.features li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* Animations */
@keyframes glitch {
  0% { text-shadow: 0.05em 0 0 rgba(255,0,0,0.75), -0.025em -0.05em 0 rgba(0,255,0,0.75), 0.025em 0.05em 0 rgba(0,0,255,0.75); }
  14% { text-shadow: 0.05em 0 0 rgba(255,0,0,0.75), -0.025em -0.05em 0 rgba(0,255,0,0.75), 0.025em 0.05em 0 rgba(0,0,255,0.75); }
  15% { text-shadow: -0.05em -0.025em 0 rgba(255,0,0,0.75), 0.025em 0.025em 0 rgba(0,255,0,0.75), -0.05em -0.05em 0 rgba(0,0,255,0.75); }
  49% { text-shadow: -0.05em -0.025em 0 rgba(255,0,0,0.75), 0.025em 0.025em 0 rgba(0,255,0,0.75), -0.05em -0.05em 0 rgba(0,0,255,0.75); }
  50% { text-shadow: 0.025em 0.05em 0 rgba(255,0,0,0.75), 0.05em 0 0 rgba(0,255,0,0.75), 0 -0.05em 0 rgba(0,0,255,0.75); }
  99% { text-shadow: 0.025em 0.05em 0 rgba(255,0,0,0.75), 0.05em 0 0 rgba(0,255,0,0.75), 0 -0.05em 0 rgba(0,0,255,0.75); }
  100% { text-shadow: -0.025em 0 0 rgba(255,0,0,0.75), -0.025em -0.025em 0 rgba(0,255,0,0.75), -0.025em -0.05em 0 rgba(0,0,255,0.75); }
}

@keyframes glitch-2 {
  0% { clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%); }
  100% { clip-path: polygon(0 15%, 100% 15%, 100% 45%, 0 45%); }
}

@keyframes glitch-3 {
  0% { clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%); }
  100% { clip-path: polygon(0 70%, 100% 70%, 100% 100%, 0 100%); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes modalSlide {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--input-bg);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, var(--primary-light), var(--secondary));
}

/* Responsive */
@media (max-width: 1200px) {
  .qr-area {
    grid-template-columns: 1fr;
  }
  .qr-info {
    order: -1;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 10px;
  }
  .glitch {
    font-size: 2.5rem;
  }
  .card {
    padding: 20px;
  }
  .results-grid {
    grid-template-columns: 1fr;
  }
  .qr-controls {
    grid-template-columns: 1fr;
  }
  .export-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-content {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .glitch {
    font-size: 2rem;
  }
  .header {
    flex-direction: column;
    gap: 20px;
  }
  .export-buttons {
    grid-template-columns: 1fr;
  }
}

/* Дополнительные стили для истории */
.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.history-header strong {
  font-size: 1.1rem;
  color: var(--primary);
}

.history-time {
  font-size: 0.8rem;
  color: var(--text-dark);
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 8px;
  border-radius: 10px;
}

.history-details {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-light);
  margin-bottom: 5px;
}

.history-date {
  font-size: 0.8rem;
  color: var(--text-dark);
}

/* QR контейнер */
.qrcode-container {
  background: white !important; /* Белый фон для QR всегда */
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  border: 2px dashed var(--border);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}