/* SEO Keyword Analyzer - Custom Styles */

body {
  background-color: #f5f7fa;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ===== Sidebar Layout ===== */

.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  z-index: 1030;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.sidebar {
  position: fixed;
  top: 56px;
  left: 0;
  bottom: 0;
  width: 250px;
  overflow-y: auto;
  z-index: 1020;
  transition: transform 0.3s ease;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
}

.main-content {
  margin-left: 250px;
  margin-top: 56px;
  min-height: calc(100vh - 56px);
}

/* Sidebar Links */
.sidebar-link {
  color: rgba(255, 255, 255, 0.7);
  padding: 10px 20px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.sidebar-link:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.08);
  border-left-color: rgba(255, 255, 255, 0.3);
}

.sidebar-link.active {
  color: #fff;
  background-color: rgba(13, 110, 253, 0.2);
  border-left-color: #0d6efd;
  font-weight: 500;
}

.sidebar-link i {
  width: 22px;
  text-align: center;
  margin-right: 10px;
  font-size: 1rem;
}

/* Sidebar Divider */
.sidebar-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 16px;
}

/* Sidebar scrollbar */
.sidebar::-webkit-scrollbar {
  width: 4px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

/* Mobile: sidebar overlay */
.sidebar-overlay {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1015;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.sidebar-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Responsive: tablet and below */
@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.show {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
  }
}

/* ===== Stat Cards ===== */

.stat-card {
  border: none;
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.stat-card .card-footer {
  background: rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.stat-card .card-footer:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ===== Cards ===== */

.card {
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8ecf0;
}

.card-header {
  font-weight: 600;
  background-color: #fff;
  border-bottom: 2px solid #e8ecf0;
}

/* ===== Tables ===== */

.table th {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table-hover tbody tr:hover {
  background-color: #e8f4fd;
}

/* ===== Badges ===== */

.badge {
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 6px;
}

/* ===== Buttons ===== */

.btn {
  border-radius: 6px;
  font-weight: 500;
}

.btn-sm {
  padding: 4px 10px;
  font-size: 0.8rem;
}

/* ===== Forms ===== */

.form-control:focus,
.form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.15);
}

.form-label {
  font-weight: 500;
  font-size: 0.9rem;
  color: #495057;
}

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

footer {
  border-top: 1px solid #e8ecf0;
  padding: 12px 0;
}
