:root {
  --dc-blue: rgb(0, 102, 255);
  --dc-red: #dc3545;
}



.header {
  background: #fff;
  padding: 12px 40px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 40px;
}

.nav {
  display: flex;
  gap: 40px;
  position: relative;
}

.nav-item {
  position: relative;
  margin-left: 10px;
}

.nav-item > a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-item > a:hover {
  color: rgb(0, 102, 255);
}

.dropdown-menu {
  display: none;
  position: absolute;
  left: -200px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  min-width: 300px;
  padding: 10px 0;
  flex-direction: column;
}

.dropdown-menu a {
  margin: 5px;
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: #333;
  font-size: 15px;
  transition: background 0.3s, color 0.3s;
}

.dropdown-menu a:hover {
    border-radius: 5px;
    background: rgb(0 102 255 / 36%);
}

.dropdown:hover .dropdown-menu {
  display: flex;
  border: none;
}




.track-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 40px;
}

.track-box {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  max-width: 700px;
}

/* Textarea */
.input-track {
  width: 100%;
  min-height: 50px;
  max-height: 200px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  resize: none; /* Không cho resize thủ công */
  font-size: 15px;
  line-height: 1.4;
  color: #000;
  background-color: #fff;
  box-sizing: border-box;

  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  transition: border-color 0.3s, box-shadow 0.3s;
}

.input-track:focus {
  outline: none;
  border-color: rgb(0, 102, 255);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.2);
}

/* Nút Track */
.btn-primary {
  background: rgb(0, 102, 255);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0 20px;
  height: 50px;
  cursor: pointer;
  transition: background 0.3s;
  height: 64px;
}


.btn-primary {
  background-color: rgb(0, 102, 255);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-loading {
  position: relative;
  pointer-events: none;
}

.btn-loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  position: absolute;
  right: 15px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


modal-body text-center


.product-image:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease-in-out;
  box-shadow: 0 0 6px rgba(255,255,255,0.4);
}

.modal-content {
  border-radius: 12px;
  overflow: hidden;
}

.btn-outline-light:disabled {
  opacity: 0.4;
  pointer-events: none;
}

.truncate {
    
}

/* css home */
/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", sans-serif;
    color: #000000;
    background-color: #ffffff;
    line-height: 1.6;
}

/* Header */
.header {
    background: #ffffff;
    border-bottom: 2px solid rgb(0, 102, 255);
    padding: 15px 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 50px;
}

.nav a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: rgb(0, 0, 0);
}

/* Hero */
.hero {
    background: url('images/costEstimateBg.webp') center/cover no-repeat;
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    font-size: 2.5rem;
    color: rgb(255, 255, 255);
    margin-bottom: 20px;
}

.hero p {
    color: #ffffff;
    max-width: 600px;
    margin: 0 auto 30px;
}

.btn-primary {
    background: rgb(255, 255, 255);
    color: #000000;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover {
    background: rgba(49, 130, 252, 0.76);
    color: #ffffff;
}

/* Features */
.features {
    background: #ffffff;
    padding: 60px 20px;
    text-align: center;
}

.features h2 {
    color: rgb(0, 0, 0);
    margin-bottom: 40px;
}

.feature-list {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.feature-item {
    background: #ffffff;
    border: 1px solid #222;
    padding: 25px;
    border-radius: 10px;
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item h3 {
    color: rgb(0, 0, 0);
    margin-bottom: 10px;
}

/* Footer */
.footer {
    background: #ffffff;
    border-top: 2px solid rgb(0, 102, 255);
    padding-top: 40px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    text-align: center;
    gap: 20px;
    padding-bottom: 30px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 10px;
}

.footer-contact h4 {
    color: rgb(0, 0, 0);
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid #222;
    font-size: 14px;
    color: #000000;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.95rem;
    }
}


/* Menu toggle checkbox */
.menu-checkbox {
  display: none;
}

/* Menu toggle button */
.menu-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1001;
  background: white;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 4px;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dc-blue);
  text-align: center;
  line-height: 1;
}

/* Sidebar styling */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 250px;
  background: white;
  z-index: 1000;
  border-right: 1px solid rgba(0,0,0,0.1);
  transition: transform 0.3s ease-in-out;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}

.close-menu {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dc-blue);
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

.sidebar .navbar-brand {
  color: var(--dc-blue);
  font-size: 1.25rem;
  text-decoration: none;
  font-weight: bold;
}

.sidebar .nav-link {
  color: #555;
  padding: 0.825rem 1.5rem;
  display: block;
  text-decoration: none;
  transition: all 0.2s;
  border-radius: 0;
  margin: 2px 0;
}

.sidebar .nav-link:hover {
  color: var(--dc-blue);
  background: rgba(0,102,255,0.05);
}

.sidebar .nav-link.active {
  color: var(--dc-blue);
  background: rgba(0,102,255,0.1);
  font-weight: 500;
}

/* Main content area */
.main-content {
  margin-left: 250px;
  padding: 2rem;
}

.btn-track { 
  background-color: var(--dc-red); 
  border-color: var(--dc-red); 
}
.btn-track:hover { 
  background-color: #bb2d3b; 
  border-color: #b02a37; 
}

.timeline {
  position: relative;
  margin: 15px 0 0 0;
}
.timeline-line-full {
  height: 4px;
  background: #28a745;
  position: relative;
  margin: -13px 50px;
}
.timeline-line-half {
    height: 4px;
    position: relative;
    margin: -13px 50px;
    background: linear-gradient(to right, #28a745 50%, #ddd 50%);
}
.timeline-points {
  display: flex;
  justify-content: space-between;
  margin: 0 20px;
}
.timeline-point {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  border: 2px solid #dee2e6;
  margin-top: -13px;
  position: relative;
  z-index: 1;
}
.timeline-point.active span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  color: #fff;
}

.timeline-point span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  color: #777777;
}

.list-points {
    margin-right: 35px;
    margin-left: 35px;
}
.timeline-point.active {
  background: #28a745;
  border-color: #28a745;
}
.card-body {
  padding: 2px;
}
.timeline-label {
  width: 80px;
  font-weight: bold;
  text-align: center;
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: 5px;
}

.img-thumb-small { max-width: 64px; max-height: 64px; object-fit: cover; }

/* small helpers */
.small-muted { color: #6c757d; font-size: 0.9rem; }

/* Product images scroll */
.product-images-scroll {
  width: 100%;
  overflow-x: auto;
  padding: 10px 0;
}

.product-images-scroll .d-flex {
  width: max-content;
}

.product-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

/* Timeline adjustments */
.timeline {
  padding-top: 43px;
  height: 90px;
  display: flex;
  flex-direction: column;
}

/* Mobile styles */
@media (max-width: 1000px) {
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .menu-checkbox:checked ~ .menu-toggle {
    display: none;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .menu-checkbox:checked ~ .sidebar {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    padding: 1rem;
    padding-top: 4rem;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .close-menu {
    display: block;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .menu-checkbox:checked ~ .sidebar {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    padding: 1rem;
    padding-top: 4rem;
  }

  /* Add overlay when menu is open */
  .menu-checkbox:checked ~ .main-content::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }
}
