
.wrapper {
    display: flex;
    width: 100%;
    min-height: calc(100vh - 56px);
    margin-top: 0;
    position: relative;
}
.ask-button {
    z-index: 1;
    position: relative;
    overflow: hidden !important;
    border: none !important;
    border-radius: 6px;
    line-height: 2rem;
    padding: .375rem .75rem !important;
    border-radius: 6px !important;
    color: white
}

.ask-button:hover {
    color: white;
}

.ask-button::before {
    content: "" !important;
    position: absolute !important;
    top: -3px !important ;
    left: -3px !important;
    right: -3px !important;
    bottom: -3px !important;
    background: linear-gradient(45deg, #ffd800, #ff5520, #750cf2, #0cbcf2) !important;
    z-index: -2;
    border-radius: inherit;
    width: auto !important;
    height: auto !important;
}

.ask-button::after{
    content: "" !important;
    position: absolute !important;
    top: 3px!important ;
    left: 3px !important;
    right: 3px!important;
    bottom: 3px !important;
    background-color: #310599 !important;
    z-index: -1;
    border-radius: 6px;
}

/* Sidebar */
.sidebar {
    width: 80px;
    padding: 10px;
    position: fixed;
    height: 100vh;
    transition: width 0.3s;
    overflow: hidden;
    top: 73px;
    background: none !important;
}

.sidebar:hover {
    width: 200px;
}

.sidebar ul {
    padding: 0;
    list-style: none;
}

.sidebar-item {
    display: flex;
    align-items: center;
    color: black;
    text-decoration: none;
    padding: 15px;
    border-radius: 5px;
    transition: background 0.3s;
    white-space: nowrap;

}

.sidebar-item i {
    font-size: 24px;
    margin-right: 15px;
    color: black;
}

.sidebar-item .sidebar-text {
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar:hover .sidebar-item .sidebar-text {
    opacity: 1;
}

.sidebar-item:hover {
    background: #34495e;
    color: white
}
.sidebar-item:hover i {
    color: white;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 20px;
    margin: 0 auto;
    width: calc(100% - 80px);
    margin-left: 80px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
        overflow: hidden;

    }
    .sidebar:hover {
        width: 60px;
    }

    .main-content {
        width: 100%; 
        margin-left: 60px; 
        padding: 10px; 
    }

    .sidebar-item {
        justify-content: center; 
        padding: 10px;
    }

    .sidebar-item .sidebar-text {
        display: none; 
    }

    .sidebar:hover .sidebar-item .sidebar-text {
        display: none; 
        opacity: 0; 
    }
}

/* Navbar Styles */
nav {
    background-color: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* for Safari */
    position: sticky;
    top: 0;
    z-index: 900;
    padding-top: .5rem !important;
    padding-bottom: .5rem !important;
}

nav {
    transition: background-color 0.3s ease;
}

.nav-link {
    color: black !important;
}

#profile-expander-button{
    color: black !important;
}

li {
    list-style-type: none;
}

/* Dropdown styles */


.dropdown .btn {
    background-color: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
  }
  
  .dropdown .btn:hover {
    color: #007bff;
  }
  
  .dropdown-menu {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    border: none !important;
  }
  
  .dropdown-menu .dropdown-item {
    font-size: 0.9rem;
    color: #333333;
    padding: 0.5rem 1rem;
    transition: background-color 0.2s, color 0.2s;
    border-radius: 12px;
  }
  
  .dropdown-menu .dropdown-item:hover {
    background-color: #e8f2fb;
    color: #007bff;
  }
  
  .dropdown-menu .dropdown-divider {
    border-top: 1px solid #eaeaea;
    margin: 0.5rem 0;
  }
  
  /*Toast Styling */
.custom-toast {
    min-width: 300px;
    color: white;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    border: none;
}
.z-901 {
    z-index: 901 !important;
}

.custom-toast-success {
    background-color: #28a746b9;
}

.custom-toast-error {
    background-color: #dc3545b9;
}

.custom-toast-warning {
    background-color: #ffc107b9;
}

.custom-toast-info {
    background-color: #17a2b8b9;
}

@keyframes toastSlideIn {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastFadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.toast {
    animation: toastSlideIn 0.5s ease-out forwards;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* for Safari */
}

.toast.fade-out {
    animation: toastFadeOut 0.5s ease-out forwards;
}

.fade-text {
    display: inline-block;
    overflow: hidden;
  }
  
  .fade-text span {
    opacity: 0;
    display: inline-block;
    animation: fadeIn 0.05s forwards;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  #post-list {
    display: block;
  }

  #search-bar {
    border-radius: 9999px;
    border: none;
    font-size: 14px;
  }

  #loading-spinner {
    padding: 20px;
    margin-bottom: 20px;
}