/* ================================================
   Modern Navbar - YTSEO Agency
   ================================================ */

/* Navbar container */
.nav {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: white !important;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.05);
}

/* Nav links container */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white !important;
  transform: translateY(-2px);
}

/* Logout button special styling */
.nav-links a[href="/logout"] {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-left: auto;
}

.nav-links a[href="/logout"]:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Login button */
.nav-login {
  background: white;
  color: #667eea !important;
  font-weight: 600;
  padding: 0.6rem 1.5rem !important;
}

.nav-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* Admin panel badge */
.nav-links a[href="/admin"] {
  background: rgba(255, 193, 7, 0.2);
  border: 1px solid rgba(255, 193, 7, 0.5);
}

.nav-links a[href="/admin"]:hover {
  background: rgba(255, 193, 7, 0.3);
}

/* ================================================
   Reset Link Table Colors (Keep Original)
   ================================================ */

/* Remove custom styling from pagination and table elements */
table button,
table .button,
.links-controls button {
  background: initial !important;
  border: initial !important;
  color: initial !important;
}

/* ================================================
   Footer Styling
   ================================================ */

.footer {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.footer-container p {
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 1px;
  margin: 0;
}

/* ================================================
   Responsive - Mobile Menu
   ================================================ */

@media (max-width: 768px) {
  .nav-container {
    padding: 1rem;
  }

  .nav-logo {
    font-size: 1.2rem;
  }

  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .nav-links a {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }
}

@media (max-width: 576px) {
  .nav-links {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }

  .nav-links a[href="/logout"] {
    margin-left: 0;
  }
}

/* ================================================
   Main Content Adjustments
   ================================================ */

.main-wrapper {
  min-height: calc(100vh - 200px);
}

/* Shortener section */
#shorturl h1 {
  margin-top: 3rem;
}
