/* static/css/override.css */

/* Center and size the logo */
.login-logo {
  display: block;
  margin: 2rem auto 1.5rem;
  max-width: 200px;
}

/* Custom curved-edge button */
.btn-custom {
  background-color: #000;
  color: #fff;
  border: 2px solid #000;
  border-radius: 50px;
  padding: 0.5rem 2rem;
  transition: background-color 0.2s, color 0.2s;
}

/* Hover flips bg & text */
.btn-custom:hover {
  background-color: #fff;
  border: 2px solid #000;
  color: #000;
  text-decoration: none;
}

/* indicate required fields in admin forms with a red star */
.required label:after {
  content: " *";
  color: red;
}


/* Edit button: green */
.btn-edit {
  background-color: #28a745;
  color: #fff;
  border: 2px solid #28a745;
}
.btn-edit:hover {
  background-color: #fff;
  color: #28a745;
  border: 2px solid #28a745;
}

/* Delete button: red */
.btn-delete {
  background-color: #dc3545;
  color: #fff;
  border: 2px solid #dc3545;
}
.btn-delete:hover {
  background-color: #fff;
  color: #dc3545;
  border: 2px solid #dc3545;
}

/* cart hover-fade */
.cart-img-wrapper .hover-img,
.navbar .hover-img {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
.navbar .nav-item a:hover .hover-img {
  opacity: 1;
}


/* ─── Icon‐button (cart & logout) ───────────────── */
.icon-btn {
  width: 40px;
  height: 40px;
  background-color: #000;
  border-radius: 50%;
  border: 2px solid #000;       /* ← real border */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition:
    background-color 0.2s,
    border-color     0.2s;
  overflow: hidden;
  text-decoration: none;         /* remove underline */
}

.icon-btn .base-img,
.icon-btn .hover-img {
  width: 60%;
  height: auto;
  display: block;
}

.icon-btn .hover-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s;
}

.icon-btn:hover {
  background-color: #fff;
  border-color: #000;           /* keeps the outline */
}

.icon-btn:hover .hover-img {
  opacity: 1;
}

.icon-btn:hover .base-img {
  opacity: 0;
}

/* ─── Mobile fixed top nav ───────────────────── */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #fff;
  border-bottom: 1px solid #ddd;
  z-index: 1030;
}

/* Push content down on mobile so it’s not hidden */
@media (max-width: 991px) {
  body {
    padding-top: 56px;
  }
}



/* Hover fade for any other hover-img use */
.hover-img {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
a.position-relative:hover .hover-img {
  opacity: 1;
}


/* make all card images square & cover */
.square-img {
  width: 100%;
  height: 200px;        /* adjust height to taste */
  object-fit: cover;
}

/* small spinner indicator next to each input */
[class^="indicator-"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* red delete “×” button */
.btn-item-delete {
  background: transparent;
  border: none;
  color: #dc3545;       /* bootstrap “danger” */
  font-size: 1.2rem;
  line-height: 1;
  padding: 0;
  position: absolute;
  top: 8px;
  right: 8px;
}

/* qty‐input styling */
.qty-input {
  width: 4rem;
  text-align: center;
}

/* spinner styling (you already have bootstrap loaded) */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.15em;
}

@media (max-width: 576px) {
  /* targets all FullCalendar toolbar buttons */
  .fc .fc-button {
    padding: 0.25rem 0.75rem;  /* tighter padding */
    font-size: 0.85rem;        /* smaller text */
  }
  /* optionally shrink your custom curved buttons too */
  .btn-custom {
    padding: 0.25rem 0.75rem;
  }
}

