/* styles.css */

/* initial state: invisible and slightly down */
.animated-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* final state: visible and in-place */
.animated-card.visible {
    opacity: 1;
    transform: translateY(0);
}

body {
  font-family: 'Open Sans', sans-serif;
  background: #f0f4f8;
  color: #333;
}

/* make those first three buttons a fixed 120px wide */
.btn-fixed {
    width: 120px;
}

.navbar {
  background-color: #002a50;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.navbar-logo {
  width: 100px;
  height: auto;
}
.navbar-brand {
  color: #ffb703;
  font-weight: 300;
  font-size: 1.5rem;
}
.navbar-brand:hover { color: #fff; }
.btn-outline-light { border-color: #ffd200; color: #ffd200; }
.btn-outline-light:hover { background-color: #ffd200; color: #002a50; }
.card-link { text-decoration: none; }
.card {
  border: none;
  border-left: 4px solid transparent;
  transition: border-left-color .3s ease, transform .2s ease;
  background-color: #fff;
}
.card:hover {
  transform: translateY(-4px);
  border-left-color: #ffd200;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.netbox-card { border-top: 3px solid #ffd200; }
.card.disabled { pointer-events: none; opacity: 0.5; }
/* size and spacing for your badge icons */

/* ensure the card is the containing block */
.card.position-relative {
  overflow: visible; /* in case your badges extend beyond */
}

/* pin the badge top-right */
.site-badge {
  position: absolute;
  top: 0.75rem;    /* adjust as needed */
  right: 0.75rem;  /* adjust as needed */
  width: 32px;     /* or whatever size fits */
  height: auto;
  /* optional: add a subtle background circle, border, etc */
  /* background: rgba(255,255,255,0.8); border-radius: 50%; padding: 2px; */
}

/* Tool-card styling */
.tool-card {
  transition: transform .2s ease, box-shadow .2s ease;
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* Icon sizing */
.tool-icon {
  font-size: 2.5rem;   /* for Bootstrap Icons */
  width: 48px;         /* for image icons */
  height: auto;
  color: var(--bs-primary);
  right: 1.25rem;
}

.status-indicator .bi {
  font-size: 1rem;   /* base size */
  vertical-align: middle;
}

.status-indicator.up    .bi { color: #28a745; } /* green */
.status-indicator.down  .bi { color: #dc3545; } /* red */
.status-indicator.checking .bi { color: #6c757d; } /* gray */

/* 1) Allow the popover to size to its content */
.popover {
  /* disable the default max-width so it grows to fit your table */
  max-width: none;
  /* optional: set a sensible minimum width */
  min-width: 300px;
  /* or a fixed width if you prefer:
     width: 400px; 
  */
}

/* Make the arrow match the header background */
.popover.bs-popover-top .popover-arrow::before,
.popover[data-popper-placement^="top"] .popover-arrow::before {
    border-bottom-color: #002a50; /* same as .popover-header bg */
}


/* Style the header */
.popover-header {
  background-color: #002a50; /* your navbar/brand dark teal */
  color: #ffd200;            /* your accent gold */
  font-weight: 600;
  font-size: 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.1);
    margin-top: 0.25rem;  /* arrow’s border‐width (default .4rem) */
    border-bottom: none;  /* optional if you want no header/body border */
}

/* 3) (Optional) tweak body padding so it matches nicely */
.popover-body {
  padding: 0.75rem 1rem;
}

.popover-body table td.notes-col {
    min-width: 200px;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Pin the module icon into the top-right of each card */
.module-icon {
  position: absolute;
  top: 0.75rem;    /* tweak for your padding */
  right: 0.75rem;  /* tweak as needed */
  width: 48px;     /* or whatever size you prefer */
  height: auto;
  pointer-events: none; /* so clicks pass through to card */
}

/* Dim & disable pointer on disabled tool cards */
.tool-card.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Ensure the card‐body still uses full height */
.tool-card.disabled .card-body {
  cursor: not-allowed;
}

/* If you want to override hover effects */
.tool-card.disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* OS badge icons */
.os-badges {
  display: flex;
  gap: 0.5rem;
}
.os-icon {
  width: 24px;
  height: auto;
}

/* A simple backdrop behind popovers */
.popover-backdrop {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: rgba(0,0,0,0.3);
    z-index: 1050; /* popover default is 1060 */
}
/* ── Ensure all Select2 boxes in the table are at least 200px wide ── */
#interfaces-table .select2-container {
    width: 200px !important;
    min-width: 200px !important;
}
#interfaces-table .select2-container--default .select2-selection--single {
    width: 200px !important;
    min-width: 200px !important;
}

#interfaces-table.table-sm td,
#interfaces-table.table-sm th {
    padding: 0.15rem 0.3rem;
    line-height: 1.2;
    vertical-align: middle;
}

/* also make the inputs a bit more compact */
#interfaces-table .form-control {
    padding: 0.2rem 0.4rem;
    height: auto;
    line-height: 1.2;
    font-size: 0.875rem; /* optional: shrink font too */
}

/* And ensure the Select2 container inherits that width */
.select2-container--default .select2-selection--single {
    width: 180px !important;
}

#form .card { border-left: 4px solid #ffd200; }
#login-btn {
  background-color: #ffd200;
  color: #002a50;
  font-weight: 600;
}
#login-btn:hover { background-color: #e6c800; }
