/*
Theme Name: NeonTube Analytics
Theme URI: https://ottteleamerica.com/neontube-analytics
Author: Irfan Rasheed
Author URI: https://yourwebsite.com
Description: A custom theme integrating the NeonTube Analytics tool.
Version: 1.0
*/
/* =========================
   GLOBAL STYLES
   ========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #0f0f23;
  color: #fff;
  line-height: 1.4;
}

/* =========================
   HEADER
   ========================= */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: #0f0f23;
}

header .logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 24px;
  color: #ffffff;
}

header nav a {
  margin-left: 20px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

header nav a:hover {
  color: #00ffcc;
}

/* =========================
   BANNER
   ========================= */
.banner {
  background: linear-gradient(90deg, #ff7e5f, #feb47b);
  padding: 80px 20px;
  text-align: center;
  position: relative;
}

.banner-content {
  max-width: 800px;
  margin: 0 auto;
}

.banner h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 3rem;
  margin-bottom: 20px;
  color: #fff;
}

.banner p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #fff;
}

.search-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.search-container input[type="text"] {
  width: 50%;
  min-width: 250px;
  padding: 12px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
}

.search-container button {
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  background-color: #00cc66;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-container button:hover {
  background-color: #00b359;
}

#errorMessage {
  margin-top: 10px;
  color: yellow;
  font-weight: bold;
}

/* =========================
   ANALYTICS SECTION
   ========================= */
.analytics-section {
  padding: 40px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.block {
  background: #1a1a40;
  padding: 20px;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.block:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 255, 204, 0.2);
}

.block h3 {
  margin-top: 0;
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  color: #00ffcc;
}

.block p {
  margin-top: 10px;
  font-size: 16px;
}

/* Revenue Container for alignment */
.revenue-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.revenue-block {
  background-color: #ff4d4d;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  flex: 1 1 300px;
}

/* =========================
   CHARTS SECTION
   ========================= */
.charts-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  color: #000;
}

.chart-container {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-container canvas {
  width: 100%;
  max-width: 400px;
}

/* =========================
   FOOTER
   ========================= */
footer {
  text-align: center;
  padding: 20px;
  background-color: #e0e0e0;
  color: #000;
}

footer a {
  margin: 0 10px;
  color: #000;
  text-decoration: none;
  font-size: 14px;
}

/* =========================
   RESPONSIVE DESIGN
   ========================= */
@media (max-width: 768px) {
  .banner h1 {
    font-size: 2rem;
  }

  .banner p {
    font-size: 1rem;
  }

  .search-container input[type="text"] {
    width: 80%;
  }

  .chart-container {
    padding: 20px;
  }
}
