/* =General Structure */
.wrapper, .bg-dark {
  background: #000 !important;
}
.content {
  padding: 0;
}

/* =Login */
.loginCard, .loginCard .card-body {
  background: transparent;
}
.leadMachineForm .row {
    border-bottom: solid 1px #ddd;
}
.leadMachineForm label {
    font-size: .9em;
    font-weight: bold;
    color: #555;
}
.leadMachineForm .form-control {
    border: 0;
    border-bottom: solid 1px #eee;
    background: transparent;
    border-radius: 0;
    margin-bottom: 5px;
    padding: 15px 0 5px 5px;
    color: #eee;
    font-size: 1.2em;
}
.leadMachineForm .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5); /* Bootstrap’s $gray-600 at 70% opacity */
  opacity: 1;
}
.leadMachineForm button, .lm-login {
    padding: 15px;
    border-radius: .25rem;
}

/* =Modal */
.modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 1050 !important;
  display: none;
  overflow: hidden;
  outline: 0;
}
.modal.show {
  display: block !important;
}
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: 100vw;
  height: 100vh;
  background-color: #000;
  opacity: 0.5;
}

/* =Sidebar */
.sidebar.collapsed {
  width: 0;
  overflow: hidden;
  transition: width 0.3s ease;
}
.main {
  transition: margin-left 0.3s ease;
}
.sidebar.collapsed + .main {
  margin-left: 0 !important;
}
.sidebar-content, .sidebar-link, a.sidebar-link, .sidebar-item.active .sidebar-link:hover, .sidebar-item.active>.sidebar-link {
  background: transparent;
}

/* =General Structure */
.section-header {
  font-weight: bold;
}

footer.footer {
  background: #000;
}

/* =Leads Page */
.not-active {
  background: #eee;
}

/* =Lead Details */
#leadDetailsForm .form-label {
  font-weight: bold;
  margin-bottom: 5px;
  color: #343a40;
}
.siri-border-wrapper {
  position: relative;
  border-radius: .25rem;
  padding: 2px; /* space between glow and card */
  z-index: 0;
}
.siri-border-wrapper::before,
.siri-border-wrapper::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  background: conic-gradient(from var(--angle, 0deg), #00ffea, #ff00ea, #00ffea);
  z-index: -2;
  animation: rotate 3s linear infinite;
}
.siri-border-wrapper::after {
  filter: blur(10px);
  opacity: 0.6;
}
@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@keyframes rotate {
  to { --angle: 360deg; }
}

.ai-suggestion-value {
  display: inline-block;
  max-width: 150px; /* adjust width as needed */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

/* =Company pages */
.status-card {
  display:grid;
  grid-template-columns: 25px 1fr;
  gap: 12px 16px;
  padding: 16px;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  background: #fff;
}
.status-order{
  display:flex;
  flex-direction:column;
  gap:5px;
  align-items:center;
  justify-content:flex-start;
}
.status-order .btn{
  width:25px;
  height:25px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.status-body{
  display:flex;
  flex-direction:column;
  gap:5px;
}
.status-row{
  display:grid;
  grid-template-columns: 1fr auto;
  gap:5px;
  align-items:end;
}
.status-field{
  min-width: 0;
}
.status-active-wrap{
  text-align:center;
}
.status-active-wrap .form-check{
  display:flex;
  justify-content:center;
}
.status-actions{
  display:flex;
  gap:5px;
  align-items:end;
  justify-content:flex-end;
}
.status-card .form-label{
  font-weight:600;
  font-size: .9em;
  color:#495057;
}

/* compact color input */
.status-card .form-control-color{
}


/* =Comapny Page */
.company-summary-card .company-avatar { width:72px; }
.company-summary-card .company-avatar > img { object-fit:cover; }
@media (min-width: 992px) { .company-summary-card .company-avatar { width:88px; } }
.nav-underline .nav-link { padding:.75rem 1rem; }
.status-card { display:flex; gap:.75rem; }
.status-order { display:flex; flex-direction:column; gap:.25rem; }
.status-body { flex:1; }
.status-row { display:flex; align-items:end; gap:1rem; }
.status-field { flex:1; }
.status-actions { display:flex; gap:.5rem; margin-left:auto; }

.statCard {
  background: #f5f5f5;
  margin-bottom: 1em;
}
.statCard .card-header, .statCard .card-footer {
  background: #f5f5f5;
}

.full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}


@media (min-width: 992px) {
    .right-rail > :first-child { margin-top: 20px !important; }
  }

/* Notification Bell Highlighting */
.nav-icon.has-notifications {
  color: #ffc107 !important; /* Warning yellow */
  animation: bellShake 0.5s ease-in-out;
}

.nav-icon.has-notifications i {
  color: #ffc107 !important;
}

@keyframes bellShake {
  0%, 100% { transform: rotate(0deg); }
  10%, 30%, 50%, 70%, 90% { transform: rotate(-10deg); }
  20%, 40%, 60%, 80% { transform: rotate(10deg); }
}

/* =Navbar Dropdowns (Notifications, Tasks) */
.navbar .dropdown-menu-lg {
  width: 280px;
  max-width: 280px;
  min-width: 280px;
}

/* Ensure task items respect dropdown width */
#navbarTaskList .task-item,
#navbarTaskList .list-group-item {
  max-width: 100%;
  overflow: hidden;
}

/* Task title truncation */
#navbarTaskList .task-title {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

/* Mobile adjustments */
@media (max-width: 576px) {
  .navbar .dropdown-menu-lg {
    width: 260px;
    max-width: calc(100vw - 40px);
    min-width: auto;
  }

  #navbarTaskList .task-title {
    max-width: 170px;
  }
}
