/* sidebar */
:root {
  --sidebar-width: 235px;
  --sidebar-width-collapsed: 80px;
}
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 1050;
    transform: translateX(0);
    transition: transform 0.3s ease;
    width: var(--sidebar-width);
    height: 100vh;
    background-color: rgb(44, 44, 44);
}
.sidebar.collapsed {
    transform: translateX(-100%);
}
.sidebar-link {
    color: #a0a3bd;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 4px 16px;
    white-space: nowrap;
    overflow: hidden;
    width: calc(100% - 32px);  
    display: block;            
    box-sizing: border-box;  
}
.sidebar-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(2px);
}
.sidebar-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}
.logo-text {
    color: rgb(255,0,0); /* brighter red for better contrast */
    font-size: 2rem; /* reduced size for better fit */
    transition: opacity 0.3s ease;
    font-weight: bold;
    margin-bottom: 0;
    margin-left: 12px;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.notification-badge {
    background: #ff6b6b;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.7rem;
}.profile-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.main-content {
    margin-left: var(--sidebar-width);
    background-color: #f8f9fa;
    min-height: 100vh;
    padding: 20px;
    transition: all 0.3s ease;
}
.collapsed~.main-content {
    margin-left: var(--sidebar-width-collapsed);
}
.collapsed .hide-on-collapse {
    opacity: 0;
    visibility: hidden;
}
.collapsed .logo-text {
    opacity: 0;
}
.collapsed .profile-info {
    opacity: 0;
}
.collapsed .sidebar-link {
    text-align: center;
    padding: 1rem !important;
    margin: 4px 8px;
}
.collapsed .sidebar-link i {
    margin: 0 !important;
}
.profile-info {
    transition: opacity 0.2s ease;
}

/* Buttons standardmäßig ausblenden */
.plan-actions {
  opacity: 0;
  transition: opacity 0.2s;
  margin-left: 0.3rem;
  gap: 0.2rem;
  pointer-events: auto;
}

/* Nur beim Hover über den Button-Bereich oder Fokus auf die Buttons einblenden */
.plan-actions-container:hover .plan-actions,
.plan-actions:focus-within {
  opacity: 1;
}