/*
Theme Name: My Custom Theme
Theme URI: https://scrapetrack.com/
Author: Your Name
Author URI: https://scrapetrack.com/
Description: A custom WordPress theme.
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: my-custom-theme
*/

/* Global box-sizing */
* {
  box-sizing: border-box;
}

/* Base layout */
html, body {
  height: 100%;
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #f4f6f9;
  color: #2c3e50;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
  padding: 80px 20px 40px;
  margin-left: 240px;
  width: calc(100% - 240px);
}

/* Sidebar */
.sidebar {
  width: 240px;
  background: #1e293b;
  color: white;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  padding: 25px 20px;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.sidebar .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0 30px;
}

.sidebar .logo i {
  font-size: 28px;
  margin-right: 10px;
  color: #38bdf8;
}

.sidebar .logo span {
  font-size: 22px;
  font-weight: 600;
  color: #38bdf8;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}

.nav-list li {
  margin: 10px 0;
}

.nav-list a {
  text-decoration: none;
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 8px;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-list a i {
  margin-right: 12px;
  font-size: 16px;
}

.nav-list a:hover {
  background-color: #334155;
  color: white;
}

.nav-list a.active {
  background-color: #3b82f6;
  color: white;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 240px;
  right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 999;
  transition: transform 0.3s ease;
}

.header .site-title {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
}

.header .nav-links {
  margin-left: auto;
  display: flex;
  gap: 28px;
}

.header .nav-links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: #1e293b;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.header .nav-links a:hover {
  background-color: #e2e8f0;
  color: #1d4ed8;
}

/* Sections */
.section {
  background: white;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.section:hover {
  transform: translateY(-4px);
}

.section h3 {
  margin-top: 0;
  font-size: 22px;
  color: #007bff;
}

.section p,
.section ul {
  font-size: 16px;
  line-height: 1.6;
}

h2, h3, h4 {
  margin-top: 0;
}

/* Summary Cards */
.summary-cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.summary-card {
  flex: 1 1 180px;
  background: #e2e8f0;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

/* Charts */
.chart-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin-bottom: 20px;
  padding: 10px;
}

.chart-wrapper * {
  max-width: 100% !important;
  height: auto !important;
}

.vic-chart iframe,
.vic-chart canvas,
.vic-chart svg,
.vic-chart div {
  max-width: 100% !important;
  width: 100% !important;
  display: block;
}

.chart-wrapper {
  max-height: 500px;
  overflow-y: auto;
}

.chart-placeholder {
  background: #eef5ff;
  height: 200px;
  border: 2px dashed #a4c5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  font-size: 16px;
  border-radius: 10px;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th, td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
}

/* Forms */
form input,
form textarea {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
}

form button {
  background-color: #007bff;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

form button:hover {
  background-color: #005dc1;
}

/* Footer */
.footer {
  background-color: #1e3a8a;
  color: #fff;
  text-align: right;
  padding: 20px 40px; /* 40px horizontal padding */
  font-size: 14px;
}


/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

  .header {
    left: 0;
  }

  .main {
    margin-left: 0;
    width: 100%;
    padding: 100px 20px 20px;
  }
}

/* Pricing Toggle */
.toggle-section {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.toggle-label {
  margin-right: 10px;
  font-weight: 500;
}

.switch {
  position: relative;
  width: 50px;
  height: 24px;
  display: inline-block;
  margin-right: 10px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 24px;
  width: 100%;
  height: 100%;
  transition: .4s;
}

.slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  border-radius: 50%;
  transition: .4s;
}

.switch input:checked + .slider {
  background-color: #3b82f6;
}

.switch input:checked + .slider::before {
  transform: translateX(26px);
}

.toggle-values {
  font-size: 14px;
}

body:not(.yearly) .price-yearly,
body.yearly .price-monthly {
  display: none;
}

/* Pricing Cards */
.pricing-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.pricing-card {
  flex: 1;
  min-width: 280px;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.pricing-card.popular {
  border: 2px solid #3b82f6;
}

.pricing-card .ribbon {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #3b82f6;
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
}

.pricing-card h4 {
  font-size: 20px;
  margin-bottom: 10px;
}

.pricing-card .price {
  font-size: 32px;
  margin: 20px 0;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  flex-grow: 1;
}

.pricing-card ul li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.pricing-card ul li:last-child {
  border-bottom: none;
}

.btn-primary, .btn-outline {
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

.btn-primary {
  background: #3b82f6;
  color: white;
}

.btn-outline {
  background: transparent;
  border: 2px solid #3b82f6;
  color: #3b82f6;
}

.btn-primary:hover, .btn-outline:hover {
  opacity: 0.9;
}

/* Discount Banner */
.discount-banner {
  background-color: #fde68a;
  color: #92400e;
  font-weight: 600;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 16px;
}

/* Pricing Text */
.price .old-price {
  text-decoration: line-through;
  color: #9ca3af;
  margin-right: 8px;
  font-size: 30px;
}

.price .new-price {
  color: #16a34a;
  font-weight: 700;
  font-size: 30px;
}

/* Front Page */

