
#noty_user{
    margin:1em 0em;
}

#noty_user .notification_bell{
    background: #fff;
    border-radius:2em;
    height:3.2em;
    width:3.2em;
}

#noty_user .notification_bell img{
    transform: translateX(2%) translateY(2%);
}


#noty_user .user_show{
    background: #fff;
    padding:0.5em 1em;
    border-radius:2em;
    height: 3.5em;
    width:clamp(50%, 15em, 100%);
    /* margin-right: 0.5em; */
}

#noty_user .user_show i{
    font-size:0.6em;
}

#noty_user .user_show .circle, header.mini .circle{
    background: var(--color-secondary);
    color:var(--color-primary);
    border-radius:2em;
    height:2em;
    width:2em;
    font-weight:800;
}

#noty_user .user_details{
    font-size:0.85em;
}

#noty_user .user_details b{
    width: clamp(50%, 8em, 100%);
    overflow:clip;
    white-space:nowrap;
    text-overflow: ellipsis;
}

#noty_user .user_details small{
    margin:-0.3em 0;
    color: var(--text-secondary);
    font-weight:600;
}


#noty_user .user_show:not(.open) .extras{
  display:none;
}

#noty_user .user_show.open{
  height:auto;
}

#noty_user .user_show.open .extras{
  padding-left:0.5em;
  padding-bottom:0.2em;
  font-size:0.8em;
  color:var(--text-secondary);
}

#noty_user .user_show.open .extras i{
  font-size:1em;
}



/* Relative pop */
.relative_pop{
    background: #fff;
    border-radius:2em;
    font-size:0.9em;
}

.relative_pop > div:first-child{
    background: var(--color-secondary-light);
    color: var(--color-secondary-dark);
    padding:1.2em 2em;
    border-radius: 2em 2em 0 0;
}

.relative_pop > div:last-child{
    padding:0.5em 2em 1.5em;
    border-radius: 0 0 2em 2em;
    font-weight:600;
    color:var(--text-secondary);
}


#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-family: 'Poppins', sans-serif;
  }
  
  .toast {
    display: flex;
    align-items: center;
    min-width: 260px;
    max-width: 350px;
    padding: 14px 18px;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.4s ease, fadeOut 0.4s ease 3s forwards;
    position: relative;
    overflow: hidden;
  }
  
  .toast::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: rgba(255, 255, 255, 0.3);
    animation: shrinkBar 3s linear forwards;
  }
  
  .toast.success {
    background-color: #4BB543;
    color:#c1e9be;
  }
  
  .toast.error {
    background-color: #D93025;
  }
  
  .toast.info {
    background-color: #1E88E5;
  }
  
  .toast.warning {
    background-color: #FFA000;
  }
  
  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateX(100%);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  @keyframes fadeOut {
    to {
      opacity: 0;
      transform: translateX(100%);
    }
  }
  
  @keyframes shrinkBar {
    to {
      width: 0%;
    }
  }
  

/* Forms */
.admin-form-group {
  margin-bottom: 1.5em;
}

.admin-form-label {
  display: block;
  margin-bottom: 0.5em;
  font-weight: 500;
  color: var(--admin-text);
}

.admin-form-control {
  width: 100%;
  padding: 0.8em 1em;
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  font-size: 1em;
  transition: border-color 0.2s ease;
}

.admin-form-control:focus {
  outline: none;
  border-color: var(--admin-primary);
  box-shadow: 0 0 0 3px rgba(57, 89, 80, 0.1);
}

.admin-form-row {
  display: flex;
  gap: 1.5em;
  margin-bottom: 1.5em;
}

.admin-form-col {
  flex: 1;
}

/* Buttons */
.admin-btn {
  padding: 0.7em 1.5em;
  border-radius: 6px;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.admin-btn.primary {
  background: var(--admin-primary);
  color: white;
}

.admin-btn.primary:hover {
  background: #304a42;
}

.admin-btn.secondary {
  background: var(--admin-secondary);
  color: var(--admin-primary);
}

.admin-btn.secondary:hover {
  background: #e8bc76;
}

.admin-btn.outline {
  background: transparent;
  border: 1px solid var(--admin-border);
  color: var(--admin-text);
}

.admin-btn.outline:hover {
  background: var(--admin-hover-bg);
}

.admin-btn-group {
  display: flex;
  gap: 1em;
}
  
/* Modals */
#modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#modal-container.modal-open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 600px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

#modal-container.modal-open .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5em;
  border-bottom: 1px solid var(--admin-border);
}

.modal-title {
  margin: 0;
  color: var(--admin-text);
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: var(--text-secondary);
}

.modal-body {
  padding: 1.5em;
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1em;
  padding: 1.5em;
  border-top: 1px solid var(--admin-border);
}

header.mini{
  display:none;
  background:#fff;
  box-shadow:1px 0 2px 1px #0001;
  position:relative;
}

header.mini:not(.open) .extras{
  display:none;
}

header.mini .extras{
  position:absolute;
  background:#fff;
  right:0;
  top:100%;
  z-index:2;
  padding:1em;
  border-radius:0 0 0 0.5em;
  font-weight:700;
  /* color:var(--color-secondary); */
  box-shadow:-2px 2px 2px 1px #00000011;
}


header.mini .menu-bar{
  border-right:1px solid #ddd;
  padding-right:1em;
  height:100%;
}

@media (max-width:768px){
  header.mini{
    display:flex;
    padding:0em 1em;
    height:3.5em;
  }
  #search{
    width:100% !important;
  }
  #search input {
    padding-left:20% !important;
  }

  /* .user-bar{
    flex-direction:column-reverse;
    gap:0.5em !important;
  } */

  #noty_user{
    display:none;
  }
}

.overlay-css{
  height:100%;
  width:100%;
  position:fixed;
  z-index:4;
  background:#0002;
  backdrop-filter:blur(2px);
  top:0;
  left:0;
}