/* Windows 7 Aero Theme */
@font-face {
  font-family: 'Segoe UI';
  src: local('Segoe UI');
}

:root {
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shine: rgba(255, 255, 255, 0.3);
  --sidebar-bg: #dfe9f5;
  --content-bg: #ffffff;
  --text: #1e1e1e;
  --link: #0066cc;
  --btn-grad-1: #f2f7fc;
  --btn-border: #8ba0b9;
}

html,
body,
.page,
.chrome {
  height: 100%;
  overflow: hidden;
}

html {
  height: 100%;
  overflow: hidden;
}

body {
  height: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  /* Subtle animated gradient background */
  background:
    radial-gradient(circle at 50% 20%, #e9eef5, #cfd6df);
  background-attachment: fixed;
  font: 12px/1.4 'Segoe UI', Tahoma, sans-serif;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Very faint noise texture */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Light blue aero glow */
  background: radial-gradient(circle at 30% 30%, rgba(135, 206, 250, 0.1), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(135, 206, 250, 0.1), transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: aeroGlow 15s infinite alternate ease-in-out;
}

@keyframes aeroGlow {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* The Window */
.page {
  width: min(1000px, 90vw);
  height: min(700px, 85vh);
  margin: 0;
  background-color: rgba(24, 40, 60, 0.4);
  z-index: 5;
  border: 1px solid rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  box-shadow:
    0 0 20px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  position: relative;
  backdrop-filter: blur(15px);
}

/* App Previews */
.preview-img {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 900px;
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  z-index: 1;
  opacity: 0.9;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
  transition: all 0.3s ease;
}

.preview-img.left {
  left: calc(50% - 1250px);
}

.preview-img.right {
  right: calc(50% - 1250px);
}

@media (max-width: 1900px) {
  .preview-img {
    width: 600px;
  }

  .preview-img.left {
    left: calc(50% - 900px);
  }

  .preview-img.right {
    right: calc(50% - 900px);
  }
}

@media (max-width: 1300px) {
  .preview-img {
    display: none;
  }
}

/* End of App Previews */

/* Glass Header / Titlebar */
.topbar {
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: url('../images/header-bg.png') no-repeat top center;
  background-size: cover;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  color: #fff;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.logo {
  font-size: 14px;
  color: black;
  text-shadow: 0 0 5px #fff;
  display: flex;
  align-items: center;
  font-weight: normal;
}

/* Layout */
.chrome {
  display: flex;
  flex: 1;
  background: #f0f0f0;
  /* Inner window bg */
  margin: 0 8px 8px 8px;
  /* Inset from glass frame */
  border: 1px solid #7a7a7a;
  box-shadow: inset 0 0 0 1px #fff;
}

.sidebar {
  width: 220px;
  background: linear-gradient(to right, #f0f4fa, #deebf7);
  border-right: 1px solid #aebcd0;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.content {
  flex: 1;
  background: #fff;
  padding: 20px;
  overflow-y: auto;
}

/* Panels (now just grouping) */
.panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  margin-bottom: 0;
}

.panel-title {
  display: none;
  /* Hide old panel titles in sidebar? Or style them as headers */
}

.sidebar .panel-title {
  display: block;
  background: none;
  border: 0;
  padding: 4px 8px;
  font-weight: normal;
  color: #1e395b;
  font-size: 13px;
  margin-bottom: 2px;
}

/* Nav Buttons */
.navlink {
  display: block;
  padding: 6px 12px;
  margin: 1px 0;
  background: transparent;
  border: 1px solid transparent;
  color: #1e1e1e;
  text-decoration: none;
  border-radius: 2px;
}

.navlink:hover {
  background: rgba(255, 255, 255, 0.4);
  border-color: #f6f9fc;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
}

.navlink.active {
  background: linear-gradient(to bottom, #f2f7fd, #c2dcf7 50%, #b2d3f5 50%, #cce1f7);
  border: 1px solid #7da2ce;
  border-radius: 3px;
  box-shadow: inset 0 0 1px #fff;
}

.navlink::before {
  content: "#";
  display: inline-block;
  width: 14px;
  color: #1e395b;
  opacity: 0.7;
}

/* Hero Section */
.hero-inner {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.hero-left {
  flex: 1;
}

.hero-right {
  width: 280px;
}

.h1 {
  font-size: 20px;
  color: #003399;
  font-weight: normal;
  margin-bottom: 10px;
}

.sub {
  font-size: 13px;
  color: #444;
  margin-bottom: 20px;
}

/* Buttons (Aero Style) */
.btn {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid #707070;
  border-radius: 3px;
  background: linear-gradient(to bottom, #f2f2f2, #ebebeb 50%, #dddddd 50%, #cfcfcf);
  color: #000;
  text-decoration: none;
  font-size: 12px;
  margin-right: 8px;
  box-shadow: inset 0 0 1px #fff;
  min-width: 80px;
  text-align: center;
}

.btn:hover {
  background: linear-gradient(to bottom, #eaf6fd, #d9f0fc 50%, #bee6fd 50%, #a7d9f5);
  border-color: #3c7fb1;
  box-shadow:
    inset 0 0 1px #fff,
    0 0 3px #bbdaf7;
}

/* Primary Button (Download) */
.btn.primary {
  font-weight: normal;
  padding: 8px 24px;
  font-size: 14px;
}

/* Footer & small text */
.footer {
  display: none;
}

.small {
  margin-top: 10px;
  color: #666;
  font-size: 11px;
}

/* Status Box */
.statusbox {
  background: #fbfcfe;
  border: 1px solid #d9d9d9;
  padding: 10px;
  border-radius: 3px;
}

.status-title {
  color: #003399;
  margin-bottom: 5px;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  padding: 5px;
  border-bottom: 1px solid #d9d9d9;
  color: #003399;
}

td {
  padding: 5px;
  border-bottom: 1px solid #f0f0f0;
}

/* Quick Links Grid */
.grid2 {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.box {
  flex: 1;
  background: #fff;
}

.box-title {
  color: #003399;
  margin-bottom: 5px;
  font-weight: bold;
}

.box-body {
  color: #444;
}

/* Responsiveness */
@media (max-width: 800px) {
  .page {
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: 0;
  }

  .chrome {
    flex-direction: column;
    margin: 0;
    border: 0;
  }

  .sidebar {
    width: auto;
    border-right: 0;
    border-bottom: 1px solid #ccc;
    flex: 0 0 auto;
  }

  .hero-inner {
    flex-direction: column;
  }

  .hero-right {
    width: auto;
  }
}

/* Feature list with icons */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 15px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafd;
  border: 1px solid #e1e7f0;
  padding: 8px 12px;
  border-radius: 4px;
}

.feature-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  image-rendering: pixelated;
}

/* Testimonials */
.testimonial-box {
  border-left: 3px solid #003399;
  background: #f3f6fa;
  padding: 10px 15px;
  margin-top: 10px;
  font-style: italic;
  color: #445;
  border-radius: 0 4px 4px 0;
}

.testimonial-author {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  opacity: 0.8;
  font-style: normal;
  color: #666;
}

/* System Tray Widget */
.tray-widget {
  position: fixed;
  bottom: 0px;
  right: 15px;
  background: linear-gradient(to bottom, #fcfdfe, #e8f0f8);
  border: 1px solid #7da2ce;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2), inset 0 1px 0 #fff;
  padding: 5px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 100;
  font-size: 11px;
  color: #1e395b;
  cursor: default;
  user-select: none;
}

.tray-icon {
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
}

.tray-badge {
  color: #2e7d32;
  font-weight: bold;
}

/* Pixel Icons */
.pixel-icon {
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
  vertical-align: middle;
  margin-right: 4px;
}

/* Blinking Tag */
.blink-tag {
  background: #ff0000;
  color: #fff;
  padding: 1px 4px;
  font-size: 10px;
  font-weight: bold;
  border-radius: 2px;
  margin-left: 8px;
  animation: blink 1.5s infinite;
  text-transform: uppercase;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Requirements Box */
.req-list {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  font-size: 11px;
}

.req-item {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

/* Comparison Grid */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 10px;
}

.comp-box {
  background: #f8fafd;
  border: 1px solid #d9e2f0;
  padding: 10px;
  border-radius: 4px;
}

.comp-title {
  font-weight: bold;
  color: #003399;
  margin-bottom: 5px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.comp-list {
  padding-left: 20px;
  margin: 0;
  font-size: 11px;
}

.comp-list li {
  margin-bottom: 3px;
}

/* Visitor Counter */
.visitor-counter {
  position: fixed;
  bottom: 0px;
  left: 15px;
  background: linear-gradient(to bottom, #fcfdfe, #e8f0f8);
  border: 1px solid #7da2ce;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 4px 10px;
  font-size: 11px;
  color: #1e395b;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 6px;
}

.counter-num {
  font-family: 'Courier New', Courier, monospace;
  background: #000;
  color: #00ff00;
  padding: 0 4px;
  border-radius: 2px;
  font-weight: bold;
}

/* Panel Titles with Icons */
.sidebar .panel-title,
.content .panel-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Download Stats Widget */
.download-stats-widget {
  margin-top: 10px;
  padding: 8px;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 3px;
  font-size: 11px;
}

.stats-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Rolling Numbers (Slot Machine style) */
.odometer {
  display: inline-flex;
  gap: 1px;
  vertical-align: middle;
}

.digit-container {
  width: 14px;
  height: 20px;
  background: #000;
  color: #00ff00;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

.digit-strip {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
}

.digit {
  height: 20px;
}

/* Specific styling for the visitor counter */
.visitor-counter .digit-container {
  background: #222;
  border: 1px solid #444;
  box-shadow: inset 0 0 5px rgba(0, 255, 0, 0.2);
}

/* Specific styling for download stats */
.download-stats-widget .digit-container {
  height: 18px;
  width: 12px;
  font-size: 12px;
  line-height: 18px;
  background: #f0f0f0;
  color: #333;
  border: 1px solid #ccc;
}

.download-stats-widget .digit {
  height: 18px;
}


/* Download Progress Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.download-dialog {
  width: 380px;
  background: #f0f0f0;
  border: 1px solid #666;
  border-radius: 3px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  padding: 1px;
  overflow: hidden;
}

.dialog-header {
  height: 30px;
  background: linear-gradient(to bottom, #fcfdfe, #e8f0f8);
  border-bottom: 1px solid #ccc;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 11px;
  color: #1e395b;
}

.dialog-body {
  padding: 20px;
  background: #f0f0f0;
}

.dialog-text {
  margin-bottom: 15px;
  font-size: 11px;
}

.progress-container {
  height: 20px;
  background: #e6e6e6;
  border: 1px solid #bcbcbc;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(to bottom, #b4e391 0%, #61c419 50%, #b4e391 100%);
  box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.5);
}

/* Shimmer effect for progress bar */
.progress-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.3) 50%,
      rgba(255, 255, 255, 0) 100%);
  background-size: 100px 100%;
  background-repeat: repeat-x;
  animation: progressShimmer 1s infinite linear;
}

@keyframes progressShimmer {
  0% {
    transform: translateX(-100px);
  }

  100% {
    transform: translateX(380px);
  }
}

.dialog-footer {
  padding: 10px;
  display: flex;
  justify-content: flex-end;
  background: #f0f0f0;
  border-top: 1px solid #dfdfdf;
}