:root {
  --primary-color: #00a884; /* WhatsApp Green */
  --secondary-color: #128c7e;
  --bg-color: #f0f2f5;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1; 
}
::-webkit-scrollbar-thumb {
  background: #ccc; 
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #aaa; 
}

/* Navbar overrides */
.navbar-dark.bg-primary {
  background-color: var(--secondary-color) !important;
}

/* Tabs */
.nav-pills .nav-link {
  color: #555;
  border-radius: 20px;
  margin: 0 4px;
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-pills .nav-link.active {
  background-color: #e7fce3;
  color: var(--secondary-color);
  font-weight: 700;
}
.nav-pills .nav-link i {
  display: block;
  font-size: 1.2rem;
  margin-bottom: -2px;
}
@media (min-width: 768px) {
  .nav-pills .nav-link i {
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 0;
    font-size: 1rem;
  }
}

/* Cards */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Lists */
.groups-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 8px;
}

.logs {
  max-height: 250px;
  overflow-y: auto;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 8px;
  font-family: monospace;
  font-size: 0.85rem;
}

/* Footer */
footer {
  z-index: 1030;
}

/* Enhanced Buttons */
.btn-primary, .btn-success {
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  font-weight: 500;
  transition: all 0.2s;
}
.btn-primary:hover, .btn-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

/* Loader */
.qr-box img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Mobile Tweaks */
@media (max-width: 576px) {
  .nav-pills .nav-link {
    font-size: 0.7rem;
    padding: 8px 4px;
  }
  .container-fluid {
    padding-left: 10px;
    padding-right: 10px;
  }
}