/* ============================================
   NikLabs - Custom Theme
   ============================================ */

/* ---------- Navbar ---------- */
.md-header {
  background: #0d1117 !important;
  border-bottom: 1px solid #21262d;
  box-shadow: 0 1px 20px rgba(0,0,0,0.4);
}

/* Site title */
.md-header__title {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em;
  color: #ffffff !important;
}

/* Logo */
.md-header__button.md-logo {
  color: #448aff !important;
}

/* Nav tabs bar */
.md-tabs {
  background: #0d1117 !important;
  border-bottom: 1px solid #21262d;
}

/* Nav tab links */
.md-tabs__link {
  color: #8b949e !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

/* Nav tab hover */
.md-tabs__link:hover {
  color: #ffffff !important;
}

/* Active nav tab */
.md-tabs__link--active {
  color: #448aff !important;
  border-bottom: 2px solid #448aff;
}

/* Search bar */
.md-search__form {
  background: #21262d !important;
  border: 1px solid #30363d !important;
  border-radius: 6px !important;
}

.md-search__input {
  color: #c9d1d9 !important;
}

.md-search__input::placeholder {
  color: #8b949e !important;
}

/* ---------- Sidebar ---------- */
.md-nav__title {
  color: #448aff !important;
  font-weight: 600 !important;
}

.md-nav__link {
  color: #8b949e !important;
  transition: color 0.2s ease;
}

.md-nav__link:hover {
  color: #ffffff !important;
}

.md-nav__link--active {
  color: #448aff !important;
  font-weight: 600 !important;
}

/* ---------- Page content ---------- */
.md-content {
  background: #0d1117;
}

/* Headings */
.md-typeset h1 {
  color: #ffffff !important;
  font-weight: 700;
  border-bottom: 1px solid #21262d;
  padding-bottom: 0.5rem;
}

.md-typeset h2 {
  color: #c9d1d9 !important;
  font-weight: 600;
}

.md-typeset h3 {
  color: #8b949e !important;
}

/* ---------- Code blocks ---------- */
.md-typeset code {
  background: #161b22 !important;
  color: #79c0ff !important;
  border: 1px solid #21262d;
  border-radius: 4px;
}

.md-typeset pre {
  background: #161b22 !important;
  border: 1px solid #21262d;
  border-radius: 8px;
}

/* ---------- Tables ---------- */
.md-typeset table:not([class]) {
  border: 1px solid #21262d;
  border-radius: 8px;
  overflow: hidden;
}

.md-typeset table:not([class]) th {
  background: #161b22 !important;
  color: #448aff !important;
  font-weight: 600;
  border-bottom: 1px solid #21262d;
}

.md-typeset table:not([class]) tr:hover {
  background: #161b22 !important;
}

.md-typeset table:not([class]) td {
  border-top: 1px solid #21262d;
}

/* ---------- Admonition boxes ---------- */
.md-typeset .admonition {
  border-radius: 8px !important;
  border-left-width: 3px !important;
}

/* ---------- Buttons ---------- */
.md-button {
  border-radius: 6px !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  padding: 0.5rem 1.2rem !important;
  transition: all 0.2s ease !important;
}

.md-button--primary {
  background: #448aff !important;
  border-color: #448aff !important;
  color: #ffffff !important;
}

.md-button--primary:hover {
  background: #2979ff !important;
  border-color: #2979ff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(68,138,255,0.3);
}

.md-button:not(.md-button--primary) {
  border: 1px solid #30363d !important;
  color: #c9d1d9 !important;
}

.md-button:not(.md-button--primary):hover {
  border-color: #448aff !important;
  color: #448aff !important;
  transform: translateY(-1px);
}

/* ---------- Footer ---------- */
.md-footer {
  background: #0d1117 !important;
  border-top: 1px solid #21262d;
}

.md-footer-meta {
  background: #0d1117 !important;
}

/* Social icons */
.md-social__link svg {
  fill: #8b949e;
  transition: fill 0.2s ease;
}

.md-social__link:hover svg {
  fill: #448aff;
}

/* ---------- Skill / info cards ---------- */
div[style*="border: 1px solid #448aff"] {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

div[style*="border: 1px solid #448aff"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(68,138,255,0.15);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #0d1117;
}

::-webkit-scrollbar-thumb {
  background: #21262d;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #448aff;
}

/* ---------- Selection highlight ---------- */
::selection {
  background: rgba(68,138,255,0.3);
  color: #ffffff;
}
