﻿/* Site-specific styles layered on top of the local bootstrap subset */
.section {
  padding: 20px 0 40px;
}
.page-header {
  margin-top: 0;
  margin-bottom: 10px;
}
.page-header h1,
.page-header h2,
.page-header h3 {
  margin-bottom: 0;
}
.section-alt {
  background: #f7f9fb;
  border-top: 1px solid #eef2f5;
  border-bottom: 1px solid #eef2f5;
}
.hero-tag {
  display: inline-block;
  margin-bottom: 10px;
}
.feature-icon {
  font-size: 28px;
  margin-bottom: 10px;
  color: #337ab7;
}
.card-note {
  margin-top: 10px;
}
.navbar-brand strong {
  color: #337ab7;
}
.alert-slot {
  min-height: 0;
  margin-bottom: 0;
}
.code-pill {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid #d9e2ec;
  border-radius: 999px;
  background: #fff;
  color: #486581;
  font-size: 12px;
  margin-right: 6px;
  margin-bottom: 6px;
}
/* Sticky footer: keep footer pinned to the bottom on short pages */
html, body {
  height: 100%;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1 0 auto;
}
.footer {
  margin-top: auto;
  padding: 5px 0;
}

/* Dark header + logo brand */
.navbar.navbar-default {
  background-color: #111;
  border-color: #000;
}
.navbar.navbar-default .navbar-brand {
  color: #f5f5f5;
  padding: 8px 15px;
}
.navbar.navbar-default .navbar-brand img {
  height: 34px;
  width: auto;
  display: block;
}
.navbar.navbar-default .navbar-nav > li > a {
  color: #ddd;
}
.navbar.navbar-default .navbar-nav > li > a:hover,
.navbar.navbar-default .navbar-nav > li > a:focus {
  color: #fff;
}
.navbar.navbar-default .navbar-user > a {
  color: #9ad0ff;
  font-weight: 600;
}
.navbar.navbar-default .navbar-user > a:hover,
.navbar.navbar-default .navbar-user > a:focus {
  color: #cfe9ff;
  text-decoration: none;
}
.navbar.navbar-default .navbar-toggle {
  border-color: #333;
}
.navbar.navbar-default .navbar-toggle .icon-bar {
  background-color: #ddd;
}

/* Tree navigation button + menu */
.navbar.navbar-default .navbar-brand {
  display: block;
}
.navbar.navbar-default .navbar-header .nav-tree {
  display: inline-block;
  margin-right: 15px;
  margin-top: 6px;
  position: relative;
}
.navbar.navbar-default .navbar-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.navbar.navbar-default .navbar-brand {
  margin-left: auto;
}
.nav-tree-toggle {
  width: 34px;
  height: 28px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid #333;
  border-radius: 4px;
  cursor: pointer;
}
.nav-tree-toggle:hover,
.nav-tree-toggle:focus {
  border-color: #4a4a4a;
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}
.nav-tree-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #e5e5e5;
}
.nav-tree-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  display: none;
  min-width: 240px;
  background: #111;
  border: 1px solid #222;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  padding: 10px 12px;
  z-index: 2100;
}
.nav-tree:hover .nav-tree-menu,
.nav-tree.is-open .nav-tree-menu {
  display: block;
}
.nav-tree-list,
.nav-tree-sub {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-tree-node + .nav-tree-node {
  margin-top: 8px;
}
.nav-tree-label {
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 4px;
}
.nav-tree-sub {
  padding-left: 8px;
}
.nav-tree-leaf a {
  display: block;
  padding: 4px 8px;
  color: #e5e7eb;
  text-decoration: none;
  border-radius: 3px;
}
.nav-tree-leaf a:hover,
.nav-tree-leaf a:focus {
  background: #1f2937;
  color: #fff;
  text-decoration: none;
}
.nav-tree-leaf.active a {
  background: #337ab7;
  color: #fff;
}

/* Rodjendani urgency colors (Bootstrap 3 palette) */
.rodjendani-urgent {
  color: #d9534f;
  font-weight: 700;
}
.rodjendani-soon {
  color: #f0ad4e;
  font-weight: 700;
}
.rodjendani-upcoming {
  color: #5cb85c;
  font-weight: 600;
}

/* Utility alignment used by custom pages */
.text-right {
  text-align: right;
}

.pull-right {
  float: right;
}

.btn-xs {
  padding: 2px 6px;
  font-size: 12px;
  border-radius: 3px;
  line-height: 1.4;
}
.btn-success {
  color: #fff;
  background-color: #5cb85c;
  border-color: #4cae4c;
}
.btn-success:hover,
.btn-success:focus {
  background-color: #449d44;
  border-color: #398439;
}
.btn-danger {
  color: #fff;
  background-color: #d9534f;
  border-color: #d43f3a;
}
.btn-danger:hover,
.btn-danger:focus {
  background-color: #c9302c;
  border-color: #ac2925;
}
.btn-secondary {
  color: #fff;
  background-color: #6c757d;
  border-color: #6c757d;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background-color: #5a6268;
  border-color: #545b62;
}

/* Minimal local glyphicon support for the icons we use */
.glyphicon {
  position: relative;
  top: 1px;
  display: inline-block;
  font-style: normal;
  line-height: 1;
}
.glyphicon-plus::before {
  content: "+";
  font-weight: 700;
}
.glyphicon-pencil::before {
  content: "\270E";
}

/* Minimal modal styles (local-only) */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 15px;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2000;
}
.modal.is-open {
  display: flex;
}
.modal-dialog {
  width: 100%;
  max-width: 520px;
}
.modal-content {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.modal-header,
.modal-body,
.modal-footer {
  padding: 12px 15px;
}
.modal-header {
  border-bottom: 1px solid #eee;
}
.modal-footer {
  border-top: 1px solid #eee;
  text-align: right;
}
.modal-title {
  margin: 0;
  font-size: 18px;
}
.close {
  float: right;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: #000;
  opacity: 0.4;
  background: none;
  border: 0;
  cursor: pointer;
}
.close:hover,
.close:focus {
  opacity: 0.7;
}
