@import url('https://fonts.googleapis.com/css2?family=Kode+Mono&display=swap');
html {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Ensure h2 uses modern styling with higher specificity */
.tools-page h2,
.page-content.tools-page h2,
h2 {
  color: var(--text-color) !important;
  font-weight: 400 !important;
}

.tools-page {
  padding: 1rem;
}

.page-content.tools-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  width: 100%;
}

.tools-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.tools-list li {
  background-color: var(--card-bg-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--card-shadow);
}



.tool-download {
  text-align: center;
  font-family: inherit;
  text-transform: uppercase;
  font-size: 0.9rem;
  align-items: center;
  width: 220px;
  height: 55px;
  padding: 5px 10px;
  border-radius: 10px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  margin: 0;
  transition: 1s ease all;
  box-shadow: 0 5px 40px rgba(101, 93, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: relative;
}

.tool-download:hover {
  transform: scale(1.02);
  color: var(--text-color);
  background: var(--surface-bg);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  border: solid 1px var(--primary-color);
  border-radius: 10px;
}

.tool-download::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2310b981'%3E%3Cpath d='M12 0L14.82 9.18L24 12L14.82 14.82L12 24L9.18 14.82L0 12L9.18 9.18z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.4));
  margin-right: 5px;
}

.tool-download:hover::before {
  filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.6));
}

.primary-button {
  text-align: center;
  font-family: inherit;
  text-transform: uppercase;
  font-size: 0.9rem;
  align-items: center;
  width: 220px;
  height: 55px;
  padding: 5px 10px;
  border-radius: 10px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  margin: 0;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: relative;
}

.primary-button:hover {
  transform: scale(1.02);
  color: var(--text-color);
  background: var(--surface-bg);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  border: solid 1px var(--primary-color);
  border-radius: 10px;
}


.coming-soon {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--button-text-color);
  border-radius: var(--border-radius-sm);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  text-decoration: none;
  opacity: 0.7;
  cursor: not-allowed;
}

.coming-soon:hover {
  cursor: not-allowed;
}

/* Stats Generator Styles */
.stats-generator {
  background-color: transparent;
  border-radius: 0;
  margin-bottom: 2rem;
  box-shadow: none;
  padding: 0;
  width: 100%;
  max-width: 100%;
}
.calendar-container {
  width: 100%;
  max-width: 100%;;
}

.credentials-section {
  margin-bottom: 1.5rem;
  width: 100%;
  padding: 0;
}

.credentials-section h3 {
  margin-top: 0;
  color: var(--primary-color);
  padding: 0;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--text-color, #fff);
}

/* Shared button styling for fetch and download buttons - matching About page style */
.tools-page .fetch-button,
.tools-page .download-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  background: none !important;
  border: none !important;
  color: var(--primary-color) !important;
  background-color: var(--primary-light) !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  padding: 0.5rem 1rem !important;
  border-radius: var(--border-radius) !important;
  transition: all 0.2s ease !important;
  position: relative !important;
  text-decoration: none !important;
  text-transform: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.tools-page .fetch-button:hover,
.tools-page .download-button:hover {
  background-color: var(--primary-color) !important;
  color: white !important;
  transform: none !important;
  box-shadow: none !important;
  border: none !important;
}

.tools-page .fetch-button:disabled,
.tools-page .download-button:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  background-color: var(--bg-muted) !important;
  color: var(--text-muted) !important;
  transform: none !important;
}

.error-message {
  color: var(--error-color);
  margin-top: 1rem;
  padding: 0.5rem;
  background-color: rgba(255, 0, 0, 0.1);
  border-radius: var(--border-radius-sm);
}
.download-button {
  margin-top: 1.5rem;
  margin-bottom: 0;
}



/* Stats Card Styles */
.stats-preview {
  margin-top: 2rem;
}

.stats-card {
  background-color: #121212;
  color: #eee;
  border-radius: 8px;
  padding: 0.5rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.stats-header {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 1.5rem;
  flex-wrap: nowrap;
}

.stats-header .home-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1rem;
  margin-right: 1.5rem;
  cursor: pointer;
}

.stats-header .wifi-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  filter: none !important;
  animation: none !important;
  transition: none !important;
  padding: 0.5rem;
}

.stats-header .wifi-icon-fa {
  font-size: 40px;
  animation: none !important;
  filter: none !important;
}

.stats-header .wigle-text {
  font-weight: bold;
  font-size: 18px;
  color: #fff;
  margin-top: 8px;
}

.user-info {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.user-info h3 {
  margin: 0 1.5rem 0 0;
  font-size: 2rem;
  color: #fff;
  white-space: nowrap;
}

.stats-highlights {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: nowrap;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: bold;
  color: #0CC400;
}

.stat-label {
  font-size: 0.9rem;
  color: #aaa;
}

/* Activity Calendar Styles */
.activity-calendar {
  margin-top: 1.5rem;
  width: 100%;
  overflow: hidden;
}

.calendar-container {
  
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.day-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 1.5rem;
  
  margin-right: 0.25rem;
  font-size: 0.6rem;
  color: #888;
  height: 96px;
}

.day-label-top {
  position: absolute;
  top: 1.5rem;
}

.day-label-middle:nth-of-type(2) {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.day-label-middle:nth-of-type(3) {
  position: absolute;
  top: 75%;
  transform: translateY(-50%);
}

.day-label-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
}

.day-labels span {
  height: 12px;
  display: flex;
  align-items: center;
}

.months-grid {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  justify-content: space-between;
}

.month-column {
  margin-right: 0.25rem;
  flex: 1;
}

.month-label {
  text-align: center;
  font-size: 0.7rem;
  color: #888;
  margin-bottom: 0.25rem;
}

.weeks-container {
  display: flex;
}

.week-row {
  display: flex;
  flex-direction: column;
  margin-right: 1px;
}

.day-cell {
  width: 12px;
  height: 12px;
  margin: 1px;
  border-radius: 2px;
  position: relative;
}

.day-cell.empty {
  background-color: #1c1c1c;
}

.day-cell.intensity-0 {
  background-color: #1c1c1c;
}

.day-cell.intensity-1 {
  background-color: rgba(12, 196, 0, 0.2);
}

.day-cell.intensity-2 {
  background-color: rgba(12, 196, 0, 0.4);
}

.day-cell.intensity-3 {
  background-color: rgba(12, 196, 0, 0.6);
}

.day-cell.intensity-4 {
  background-color: rgba(12, 196, 0, 0.9);
}

.intensity-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.75rem;
  font-size: 0.7rem;
  color: #888;
}

.legend-cells {
  display: flex;
  margin: 0 0.5rem;
}

.stats-footer {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: #666;
}

/* Specific margin adjustments */
.tools-page .fetch-button {
  margin: 1rem auto 0 auto;
  display: block !important;
}

.tools-page .download-button {
  margin: 1.5rem auto 0 auto;
  display: block !important;
}

.fetch-button {
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .tools-page {
    padding: 1rem 1rem;
  }
  
  .page-content.tools-page {
    padding: 1rem 1rem;
  }
  
  .stats-generator {
    padding: 1rem 0.75rem;
  }
  
  .stats-card {
    padding: 1rem;
  }
  
  .stats-header {
    flex-direction: column;
    align-items: center;
  }
  
  .stats-header .home-link {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .user-info {
    flex-direction: column;
    margin-bottom: 1rem;
  }
  
  .user-info h3 {
    margin: 0 0 1rem 0;
  }
  
  .stats-highlights {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .day-cell {
    width: 10px;
    height: 10px;
  }
  
  .input-group {
    width: 100%;
  }
  
  .input-group input {
    width: 100%;
    max-width: none;
  }
  
  .credentials-section {
    padding: 0;
  }
}

@media (max-width: 480px) {
  .tools-page {
    padding: 0.75rem 0.75rem;
  }
  
  .page-content.tools-page {
    padding: 0.75rem 0.75rem;
  }
  
  .input-group input {
    font-size: 0.95rem;
  }
  
  .day-cell {
    width: 8px;
    height: 8px;
  }
  
  .day-labels {
    height: 80px;
  }
}

.stats-header .home-link:hover .wifi-icon-container {
  filter: none !important;
  transform: none !important;
  animation: none !important;
} 

.stats-header {
    justify-content: center;
  }

  .wifi-icon-fa {
    color: #0CC400;
  }

/* Only adjust the Wednesday and Friday labels */
.day-labels span:nth-child(1) {
  /* Monday - keep as is */
  position: relative;
}

.day-labels span:nth-child(2) {
  /* Wednesday - keep as is (already adjusted by -5px) */
  position: relative;
  top: -5px;
}

.day-labels span:nth-child(3) {
  /* Friday - move down by 3px from previous position */
  position: relative;
  top: -7px; /* Changed from -10px to -7px */
}

/* Radar Chart Styles */
.generate-radar-section {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.radar-visualization {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: #121212;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.visualization-container {
  margin-top: 1.5rem;
  width: 100%;
}

.radar-chart-container {
  background-color: #1e1e1e;
  border-radius: 8px;
  padding: 1.5rem;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Remove milestone timeline styles or comment them out */
/* 
.milestone-timeline {
  ...
}
*/

/* Update responsive adjustments */
@media (min-width: 768px) {
  .radar-chart-container {
    min-height: 500px;
  }
}

.stats-card.radar-visualization {
  padding-bottom: 1.5rem;
}

/* Add styles for the download button container */
.download-button-container {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Download button styling handled by shared .download-button rule above */

/* Digital Badge Styles - Bigger text */
.wigle-digital-badge {
  background: #121212;
  border-radius: 8px;
  padding: 0.4rem 1.25rem;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  min-width: 600px;
  display: flex;
  flex-direction: column;
}

.digital-badge-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.2rem;
  padding-bottom: 0.2rem;
  gap: 0.5rem;
}

.digital-badge-logo {
  font-size: 1rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.wifi-icon-large {
  font-size: 1rem;
  margin-right: 0.3rem;
  color: var(--primary-color) !important;
}

.digital-badge-user {
  text-align: right;
  flex: 1;
}

.digital-badge-user h2 {
  font-size: 1.5rem;
  margin: 0;
  line-height: 1;
  font-weight: 700;
  color: var(--text-color);
}

.digital-badge-stats-container {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  gap: 1rem;
  margin: 0.2rem 0;
  align-items: center;
  padding: 0 0.5rem;
}

.digital-badge-stat {
  display: flex;
  align-items: center;
  background: var(--surface-bg);
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  flex: 1;
}

.digital-badge-stat-icon {
  margin-right: 0.4rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  opacity: 0.9;
}

.digital-badge-stat-icon svg {
  width: 22px !important;
  height: 22px !important;
}

.digital-badge-stat-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.digital-badge-stat-value {
  font-size: 1.6rem;
  line-height: 1;
  font-weight: bold;
}

.digital-badge-stat-label {
  font-size: 0.9rem;
  color: #999;
  line-height: 1;
  opacity: 0.9;
}

.digital-badge-footer {
  display: flex;
  justify-content: space-between;
  color: #666;
  font-size: 0.7rem;
  padding-top: 0.2rem;
  margin-top: 0.2rem;
  opacity: 0.7;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .wigle-digital-badge {
    min-width: 300px;
    padding: 0.5rem 0.75rem;
    margin: 0 auto;
    width: 95%; /* Ensure some margin on mobile */
  }

  .digital-badge-stats-container {
    flex-direction: row; /* Keep horizontal layout */
    gap: 0.5rem;
  }

  .digital-badge-stat {
    padding: 0.25rem 0.4rem;
  }

  /* Adjust font sizes for mobile */
  .digital-badge-logo {
    font-size: 1rem;
  }

  .digital-badge-user h2 {
    font-size: 1.4rem;
  }

  .digital-badge-stat-value {
    font-size: 1.1rem;
  }

  .digital-badge-stat-label {
    font-size: 0.65rem;
    white-space: nowrap;
  }

  .digital-badge-stat-icon svg {
    width: 18px !important;
    height: 18px !important;
  }
}

/* iOS-specific fixes */
@supports (-webkit-touch-callout: none) {
  .wigle-digital-badge {
    /* Prevent iOS Safari issues */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
}

.wigle-logo-img {
  width: 32px;
  height: 32px;
  margin-right: 0.5rem;
}

.toggle-button {
  display: inline-block;
  margin: 20px;
}

/* Info icon button styling */
.instructions-header {
 
  align-items: center;
 
  margin-bottom: 0.5rem;
}

.info-icon-button {
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  padding: 0.25rem;
 
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.wigle-digital-badge.screenshot-mode {
  background: #121212 !important;   /* dark gray badge background */
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;      /* Important: force square corners for the screenshot */
  padding: 5px !important;
  overflow: hidden !important;      /* Prevent any content from spilling out */
}
.wigle-digital-badge.screenshot-mode .digital-badge-stat-icon svg {
  display: none !important;
}
.wigle-digital-badge.screenshot-mode .digital-badge-stat-icon .emoji-fallback {
  display: inline !important;
}
.wigle-digital-badge.screenshot-mode .digital-badge-stat-label {
  font-size: 0.65rem !important;
  white-space: nowrap !important;
}
.wigle-digital-badge.screenshot-mode .digital-badge-stat-value {
  font-size: 1.1rem !important;
}
.digital-badge-stat-icon .emoji-fallback {
  display: none;
}

