/* Sidebar Layout for PC Theme Toggle */

/* Responsive display utilities */
.pc-only {
  display: none;
}

@media (min-width: 768px) {
  .pc-only {
    display: block;
  }
}

/* Theme transition animations */
.btn,
.card,
.list-group-item {
  transition: all 0.2s ease;
}

/* No animation class for theme switching */
.no-ani * {
  transition: none !important;
}

/* Mobile styles - keep original footer at bottom */
@media (max-width: 1023px) {
  #footer-bar {
    /* Keep original bottom positioning for mobile */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 8px;
    width: 97%;
    height: 65px;
    flex-direction: row;
    padding: 0;
    justify-content: center;
    align-items: center;
  }
  
  .page-content {
    margin-left: 0;
    width: 100%;
    padding-bottom: 80px; /* Space for bottom footer */
  }
  
  .header-bar {
    margin-left: 0;
    width: 100%;
  }
  
  /* Hide theme toggle on mobile initially */
  #footer-bar .theme-toggle-container {
    display: none;
  }
}

/* PC Sidebar styles */
@media (min-width: 1023px) {
  /* Main layout with sidebar */
  body {
    display: block;
    min-height: 100vh;
    margin: 15px;
  }
  
  /* Sidebar positioning for PC */
  #footer-bar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: auto;
    right: auto;
    width: 120px;
    height: 100vh;
    flex-direction: column;
    border-radius: 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    justify-content: flex-start;
    align-items: stretch;
  }
  
  .theme-dark #footer-bar {
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  }
  
  /* Sidebar navigation items */
  #footer-bar a:not(.btn) {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px;
    flex: none;
    text-align: left;
    border-radius: 0;
    margin: 2px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;        
    min-width: 60px;
        min-height: 60px;
        width: 70%;
  }
  
  #footer-bar a:not(.btn):hover {
    background: rgba(74, 137, 220, 0.1);
    transform: translateX(4px);
  }
  
  #footer-bar a:not(.btn).active-nav {
    background: rgba(74, 137, 220, 0.15);
    border-left: 3px solid #4a89dc;
  }
  
  /* Icon and text layout in sidebar */
  #footer-bar a:not(.btn) i {
    display: inline-block;
    /* margin-right: 12px; */
    margin-top: 0;
    font-size: 20px;
    width: 24px;
    text-align: center;
  }
  
  #footer-bar a:not(.btn) span {
    display: inline-block;
    margin-top: 0;
    font-size: 14px;
    font-weight: 500;
    opacity: 1;
    vertical-align: middle;
  }
  
  /* Home button special styling */
  #footer-bar .circle-nav-2 {
    background: linear-gradient(135deg, #4a89dc, #5d9cec);
    color: white !important;
    margin: 8px 12px;
  }
  
  #footer-bar .circle-nav-2 i,
  #footer-bar .circle-nav-2 span {
    color: white !important;
  }
  
  /* Adjust page content for sidebar */
  .page-content {
    margin-left: 140px;
    width: calc(100% - 140px);
    min-height: 100vh;
  }
  .no-auth {
        margin: auto;
        width: 50%;
        display: flex;
        align-self: center;
        justify-content: center;
        flex-direction: column;
  }
  
  /* Header adjustments for sidebar layout */
  .header-bar {
    margin-left: 120px;
    width: calc(100% - 120px);
  }
  
  /* Theme toggle in sidebar */
  #footer-bar .theme-toggle-container {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    margin: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
  }
  
  .theme-dark #footer-bar .theme-toggle-container {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
  }
}
