/* NukeViet Standard styling for Mockups */
body {
  background-color: #ecf0f5;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #333;
  overflow-x: hidden;
}

/* NukeViet Header / Admin Navbar */
.nv-header {
  background-color: #3c8dbc;
  color: #fff;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}
.nv-header .navbar-brand {
  color: #fff;
  font-weight: bold;
  font-size: 20px;
  width: 250px;
  text-align: center;
  background-color: #367fa9;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}
.nv-header .nav-link {
  color: #fff !important;
}

/* Sidebar Styling (AdminLTE style often used in NukeViet) */
.nv-sidebar {
  background-color: #222d32;
  min-height: calc(100vh - 56px);
  padding: 0;
  position: fixed;
  top: 40px;
  width: 250px;
  overflow-y: auto;
}
.nv-sidebar .nav-header {
  color: #4b646f;
  background: #1a2226;
  padding: 10px 15px;
  font-size: 12px;
  text-transform: uppercase;
}
.nv-sidebar a.nav-link {
  color: #b8c7ce;
  padding: 12px 15px;
  border-left: 3px solid transparent;
}
.nv-sidebar a.nav-link:hover,
.nv-sidebar a.nav-link.active {
  color: #fff;
  background: #1e282c;
  border-left-color: #3c8dbc;
}

/* Main Content */
.nv-content {
  margin-left: 250px;
  padding: 20px;
  min-height: calc(100vh - 56px);
}

/* Box Cards */
.box {
  position: relative;
  border-radius: 3px;
  background: #ffffff;
  border-top: 3px solid #d2d6de;
  margin-bottom: 20px;
  width: 100%;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}
.box.box-primary {
  border-top-color: #3c8dbc;
}
.box.box-success {
  border-top-color: #00a65a;
}
.box.box-warning {
  border-top-color: #f39c12;
}
.box.box-danger {
  border-top-color: #dd4b39;
}
.box.box-info {
  border-top-color: #00c0ef;
}

.box-header {
  color: #444;
  display: block;
  padding: 10px 15px;
  position: relative;
  border-bottom: 1px solid #f4f4f4;
}
.box-title {
  display: inline-block;
  font-size: 18px;
  margin: 0;
  line-height: 1;
}
.box-body {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 3px;
  border-bottom-left-radius: 3px;
  padding: 15px;
}
.box-footer {
  border-top: 1px solid #f4f4f4;
  padding: 10px 15px;
  background-color: #fff;
}

/* Utilities */
.badge-pending {
  background-color: #f39c12;
  color: #fff;
}
.badge-processing {
  background-color: #00c0ef;
  color: #fff;
}
.badge-done {
  background-color: #00a65a;
  color: #fff;
}
.badge-urgent {
  background-color: #dd4b39;
  color: #fff;
}

.small-box {
  border-radius: 2px;
  position: relative;
  display: block;
  margin-bottom: 20px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  color: #fff;
}
.small-box > .inner {
  padding: 10px;
}
.small-box h3 {
  font-size: 38px;
  font-weight: bold;
  margin: 0 0 10px 0;
  white-space: nowrap;
  padding: 0;
}
.small-box p {
  font-size: 15px;
}
.small-box .icon {
  top: -10px;
  right: 10px;
  z-index: 0;
  font-size: 90px;
  color: rgba(0, 0, 0, 0.15);
  position: absolute;
  transition: all 0.3s linear;
}
.small-box-footer {
  position: relative;
  text-align: center;
  padding: 3px 0;
  color: #fff;
  color: rgba(255, 255, 255, 0.8);
  display: block;
  z-index: 10;
  background: rgba(0, 0, 0, 0.1);
  text-decoration: none;
}
.small-box-footer:hover {
  color: #fff;
  background: rgba(0, 0, 0, 0.15);
}

.bg-aqua {
  background-color: #00c0ef !important;
}
.bg-green {
  background-color: #00a65a !important;
}
.bg-yellow {
  background-color: #f39c12 !important;
}
.bg-red {
  background-color: #dd4b39 !important;
}

/* Timeline/Log */
.timeline {
  margin: 0 0 30px 0;
  padding: 0;
  list-style: none;
  position: relative;
}
.timeline:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #ddd;
  left: 31px;
  margin: 0;
  border-radius: 2px;
}
.timeline > li {
  position: relative;
  margin-right: 10px;
  margin-bottom: 15px;
}
.timeline > li:before,
.timeline > li:after {
  content: " ";
  display: table;
}
.timeline > li:after {
  clear: both;
}
.timeline > li > .timeline-item {
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  margin-top: 0;
  background: #fff;
  color: #444;
  margin-left: 60px;
  margin-right: 15px;
  padding: 0;
  position: relative;
}
.timeline > li > .timeline-item > .time {
  color: #999;
  float: right;
  padding: 10px;
  font-size: 12px;
}
.timeline > li > .timeline-item > .timeline-header {
  margin: 0;
  color: #555;
  border-bottom: 1px solid #f4f4f4;
  padding: 10px;
  font-size: 16px;
  line-height: 1.1;
}
.timeline > li > .timeline-item > .timeline-body,
.timeline > li > .timeline-item > .timeline-footer {
  padding: 10px;
}
.timeline > li > .fa {
  width: 30px;
  height: 30px;
  font-size: 15px;
  line-height: 30px;
  position: absolute;
  color: #666;
  background: #d2d6de;
  border-radius: 50%;
  text-align: center;
  left: 18px;
  top: 0;
}

/* User Comments */
.direct-chat-msg {
  margin-bottom: 10px;
}
.direct-chat-info {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
}
.direct-chat-name {
  font-weight: 600;
}
.direct-chat-timestamp {
  color: #999;
}
.direct-chat-img {
  border-radius: 50%;
  float: left;
  width: 40px;
  height: 40px;
}
.direct-chat-text {
  border-radius: 5px;
  position: relative;
  padding: 5px 10px;
  background: #d2d6de;
  border: 1px solid #d2d6de;
  margin: 5px 0 0 50px;
  color: #444;
}

/* Responsive Mobile Optimizations */
@media (max-width: 991px) {
  .nv-sidebar {
    position: fixed;
    top: 56px;
    left: -260px;
    width: 250px;
    height: calc(100vh - 56px);
    overflow-y: auto;
    transition: left 0.3s ease-in-out;
    z-index: 1040;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
  }

  /* Using :has() selector to reveal sidebar when mobile navbar is expanded */
  body:has(.navbar-toggler[aria-expanded="true"]) .nv-sidebar {
    left: 0;
  }

  /* Make content full width */
  .nv-content {
    margin-left: 0;
    padding: 15px 10px;
  }

  /* Center the branding */
  .nv-header .navbar-brand {
    width: auto;
    background-color: transparent;
    margin-left: 10px;
  }

  /* Small box margins */
  .small-box {
    margin-bottom: 15px;
  }

  /* Make forms responsive */
  .form-group.row .col-form-label {
    margin-bottom: 5px;
  }
}

/* Custom 24-column grid */
.col-24-md-1,
.col-24-md-2,
.col-24-md-3,
.col-24-md-4,
.col-24-md-5,
.col-24-md-6,
.col-24-md-7,
.col-24-md-8,
.col-24-md-9,
.col-24-md-10,
.col-24-md-11,
.col-24-md-12,
.col-24-md-13,
.col-24-md-14,
.col-24-md-15,
.col-24-md-16,
.col-24-md-17,
.col-24-md-18,
.col-24-md-19,
.col-24-md-20,
.col-24-md-21,
.col-24-md-22,
.col-24-md-23,
.col-24-md-24 {
  float: left;
  position: relative;
  min-height: 1px;
  padding-left: 15px;
  padding-right: 15px;
}
@media (min-width: 992px) {
  .col-24-md-1 {
    width: 4.166%;
  }
  .col-24-md-2 {
    width: 8.333%;
  }
  .col-24-md-3 {
    width: 12.5%;
  }
  .col-24-md-4 {
    width: 16.666%;
  }
  .col-24-md-5 {
    width: 20.833%;
  }
  .col-24-md-6 {
    width: 25%;
  }
  .col-24-md-7 {
    width: 29.166%;
  }
  .col-24-md-8 {
    width: 33.333%;
  }
  .col-24-md-9 {
    width: 37.5%;
  }
  .col-24-md-10 {
    width: 41.666%;
  }
  .col-24-md-11 {
    width: 45.833%;
  }
  .col-24-md-12 {
    width: 50%;
  }
  .col-24-md-13 {
    width: 54.166%;
  }
  .col-24-md-14 {
    width: 58.333%;
  }
  .col-24-md-15 {
    width: 62.5%;
  }
  .col-24-md-16 {
    width: 66.666%;
  }
  .col-24-md-17 {
    width: 70.833%;
  }
  .col-24-md-18 {
    width: 75%;
  }
  .col-24-md-19 {
    width: 79.166%;
  }
  .col-24-md-20 {
    width: 83.333%;
  }
  .col-24-md-21 {
    width: 87.5%;
  }
  .col-24-md-22 {
    width: 91.666%;
  }
  .col-24-md-23 {
    width: 95.833%;
  }
  .col-24-md-24 {
    width: 100%;
  }
}

/* Header & Notifications Styles */
.nav-link#notificationDropdown {
  position: relative;
}
.nav-link#notificationDropdown .badge {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 10px;
  padding: 3px 5px;
  border-radius: 50%;
}
.dropdown-notifications {
  width: 320px;
  max-height: 400px;
  overflow-y: auto;
}
.notification-header {
  border-bottom: 2px solid #3c8dbc;
  padding-bottom: 10px;
}
.notification-item {
  white-space: normal;
  border-bottom: 1px solid #f4f4f4;
}

/* Component Styles Extracted from Templates */
.alert-centered {
  margin: 50px;
}
.breadcrumb-nav {
    background: transparent;
    margin-top: 30px;
}
.breadcrumb-custom {
  border: 1px solid #ddd;
  background: #fff;
  padding: 8px 15px;
  border-radius: 4px;
}
.section-title {
  font-size: 24px;
  margin-bottom: 20px;
}
.nav-link-item {
  color: #333;
  font-weight: bold;
}
.deadline-label {
  background: #f39c12;
  padding: 3px 8px;
  border-radius: 3px;
  color: #fff;
}
.scrollable-box-body {
  max-height: 400px;
  overflow-y: auto;
}
.report-section {
  background: #f9fbfd;
  padding: 15px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
}
.chat-container {
  height: 400px;
  overflow-y: scroll;
  background-color: #f9fbfd;
  padding: 15px;
}
.chat-avatar-wrapper {
  width: 40px;
  display: inline-block;
  vertical-align: top;
}
.attachment-info {
  margin-top: 10px;
  font-size: 0.9em;
  border-top: 1px dashed #ccc;
  padding-top: 5px;
}
.progress-slim {
  height: 12px;
  border-radius: 4px;
  overflow: hidden;
  background: #ddd;
}
.alert-box {
  background: #fcf8e3;
  border: 1px solid #faebcc;
}
.wrapper-negative {
  margin: -15px;
}
.range-200 {
  width: 200px;
}
.progress-output {
  width: 50px;
  display: inline-block;
  margin-left: 15px;
  font-weight: bold;
  color: #00a65a;
}
.chart-canvas {
  height: 250px;
}
