.apl-alert-container {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  z-index: 9999;
  pointer-events: none;
  display: flex;
  justify-content: center;
}

.apl-alert {
  pointer-events: auto;
  position: relative;
  min-width: 320px;
  max-width: 90vw;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  color: #fff !important;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 12px 50px 12px 25px;
  overflow: hidden;
  backdrop-filter: blur(5px);
}

.apl-alert-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  z-index: 2;
}

.icon-wrapper {
  font-size: 1.8rem;
  animation: animate__pulse infinite 2s;
}

.apl-alert-message {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #fff !important;
}

.apl-alert-close {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 1) !important;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 3;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.apl-alert-close:hover {
  background: rgba(0,0,0,0.15);
  color: #fff !important;
  transform: translateY(-50%) rotate(90deg);
}

.apl-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  width: 100%;
  animation: aplProgress 5s linear forwards;
}

@keyframes aplProgress {
  from { width: 100%; }
  to { width: 0%; }
}

/* Base/Mobile styling */
.desktop-sidebar {
    background: rgba(0,0,0,0);
    margin-bottom: 0;
    margin-top: 0;
    padding-bottom: 15px;
    padding-top: 15px;
    border-bottom: 0px solid var(--dark);
    transition: all 0.3s ease;
}

@media (min-width: 1200px) {
    /* Desktop Sidebar styling */
    .desktop-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 260px;
        flex-direction: column;
        align-items: flex-start;
        background: #0e1216; /* Darker, sleek background */
        box-shadow: 4px 0 15px rgba(0,0,0,0.3);
        padding: 30px 20px;
        z-index: 1040;
        border-right: 1px solid rgba(255,255,255,0.03);
    }

    .desktop-sidebar .container-fluid {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        height: 100%;
        display: flex;
    }

    .desktop-sidebar .navbar-brand {
        width: 100%;
        text-align: center;
        margin-bottom: 40px;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        margin-right: 0;
    }

    .desktop-sidebar .navbar-brand img {
        height: 40px;
        transition: transform 0.3s ease;
    }
    
    .desktop-sidebar .navbar-brand:hover img {
        transform: scale(1.05);
    }

    .desktop-sidebar .navbar-collapse {
        width: 100%;
        flex-grow: 1;
        align-items: flex-start !important;
        display: flex !important;
        flex-direction: column;
    }
    
    .desktop-sidebar .navbar-nav {
        flex-direction: column;
        width: 100%;
        height: 100%;
        gap: 8px;
    }

    .desktop-sidebar .nav-item {
        width: 100%;
    }

    .desktop-sidebar .nav-link {
        padding: 14px 20px !important;
        border-radius: 10px;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        font-weight: 500;
        color: rgba(255,255,255,0.6) !important;
        letter-spacing: 0.3px;
    }
    
    .desktop-sidebar .nav-link:hover {
        background: rgba(255,255,255,0.08);
        color: #fff !important;
        transform: translateX(4px);
    }
    
    .desktop-sidebar .nav-link.active {
        background: rgba(33,150,243,0.15);
        color: #2196f3 !important;
        box-shadow: inset 3px 0 0 #2196f3;
    }

    .desktop-sidebar .nav-icon {
        margin-right: 14px;
        width: 22px;
        text-align: center;
        font-size: 1.1em;
        opacity: 0.8;
    }
    
    .desktop-sidebar .nav-logout {
        background: rgba(255, 71, 87, 0.1);
        color: #ff4757 !important;
    }
    
    .desktop-sidebar .nav-logout:hover {
        background: rgba(255, 71, 87, 0.2);
        color: #ff6b81 !important;
    }
}

@media (max-width: 1199px) {
    .desktop-sidebar .nav-icon {
      float: left;
        /*display: none; Hide icons on top navbar to keep original look */
    }

    .desktop-sidebar .nav-text-right {
      float: right;
    }
}