/* 🌈 Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

:root {
  --primary: #00e676;
  /* Bright Green */
  --bg: #0f172a;
  /* Deep Blue/Dark */
  --card: rgba(30, 41, 59, 0.7);
  --text: #f8fafc;
  --text-dim: #94a3b8;
}

body {
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* 🔝 Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  padding: 20px 8%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

#loginBtn {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

#loginBtn:hover {
  background: var(--primary);
  color: #000;
}

/* 🌌 Hero Section */
.hero {
  text-align: center;
  padding: 50px 5%;
  background: radial-gradient(circle at top, #1e293b 0%, #0f172a 100%);
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
}

.hero p {
  color: var(--text-dim);
  font-size: 1.1rem;
}

/* 🎯 Container & Filter */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 5%;
}

.filter-wrapper {
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 15px;
}

select {
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--card);
  color: white;
  border: 1px solid rgba(255,255,255,0.1);
  outline: none;
  cursor: pointer;
}

/* 📦 Notes Grid & Cards */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.cards {
  background: var(--card);
  padding: 25px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cards:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.cards h3 {
  color: var(--primary);
  margin-bottom: 8px;
}

.cards p {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 15px;
}

.cards button {
  background: var(--primary);
  color: #000;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}

/* ⏳ States */
.loader, .empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px;
  color: var(--text-dim);
}

/*Net Status*/
#net-status {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  font-size: 12px;
  text-align: center;
  padding: 2px;
  color: #fff;
  background: #111;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 9999;
}

/* Visible */
#net-status.online,
#net-status.offline {
  transform: translateY(0);
  opacity: 1;
}

/* Colors */
#net-status.online {
  background: #2e7d32;
  /* YouTube green-ish */
}

#net-status.offline {
  background: #111;
  /* YouTube dark */
}
#about {
  position: fixed;
  bottom: 20px;
  right: 15px;
  padding: 10px 14px;
  font-size: 12px;
  border: none;
  border-radius: 20px;
  background: rgba(200, 100, 200, 0.5);
  color: white;
  backdrop-filter: blur(10px);
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s;
}

#about:hover {
  background: rgba(100, 100, 100, 0.9);
}

#gptBtn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  font-size: 30px;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
  z-index: 1000;
}

#gptBox {
  position: fixed;
  bottom: 60px;
  left: 10px;
  backdrop-filter: blur(5px);
  background: rgba(0, 0, 0, 0.4);
  padding: 20px;
  border-radius: 20px 20px 20px 0;
  display: none;
  transform: translateX(30px);
}

#gptInput{
  border: 1px solid black;
  border-radius: 10px;
  height: 30px;
  width: 75vw;
  padding: 5px;
}

#gptInput:focus{
  outline: none;
  box-shadow: inset 0 0 10px blue;
}
/* 📱 Mobile Responsive */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }
  .navbar {
    padding: 15px 5%;
  }
}