/* Navbar Auth Widget Styles */
.nav-auth-widget {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(59, 130, 246, 0.4);
  transition: border-color 0.2s ease;
  cursor: pointer;
}

.nav-user-avatar:hover {
  border-color: rgba(59, 130, 246, 0.8);
}

/* Login button with brk-btn style */
.nav-btn-login {
  position: relative;
  background: none;
  color: var(--accent);
  text-transform: uppercase;
  text-decoration: none;
  border: 0.2em solid var(--accent);
  padding: 0.5em 1em;
  cursor: pointer;
  transition: all 0.45s cubic-bezier(0.86, 0, 0.07, 1);
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  white-space: nowrap;
  /* Login-Button abgerundet */
  border-radius: 12px;
}

.nav-btn-login::before {
  content: "";
  display: block;
  position: absolute;
  width: 10%;
  background: var(--bg);
  height: 0.3em;
  right: 20%;
  top: -0.21em;
  transform: skewX(-45deg);
  transition: all 0.45s cubic-bezier(0.86, 0, 0.07, 1);
}

.nav-btn-login::after {
  content: "";
  display: block;
  position: absolute;
  width: 10%;
  background: var(--bg);
  height: 0.3em;
  left: 20%;
  bottom: -0.25em;
  transform: skewX(45deg);
  transition: all 0.45s cubic-bezier(0.86, 0, 0.07, 1);
}

.nav-btn-login:hover::before {
  right: 80%;
}

.nav-btn-login:hover::after {
  left: 80%;
}

.nav-btn-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  /* Logout-Button abgerundet */
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.nav-btn-logout:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
}

/* Sidebar Auth Widget Styles */
.sidebar-auth-widget {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  /* padding und border-bottom entfernt, da in sidebar-actions Container */
  padding: 0;
  background: transparent;
  border-bottom: none;
}

.sidebar-user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(59, 130, 246, 0.5);
  flex-shrink: 0;
}

.sidebar-user-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow: hidden;
}

.sidebar-username {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-id {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Removed shared styles block - each button now has its own complete styles */

/* Sidebar Login Button with brk-btn style */
.sidebar-btn-login {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: none;
  color: var(--accent);
  text-transform: uppercase;
  text-decoration: none;
  border: 0.2em solid var(--accent);
  padding: 0.75em 1em;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.45s cubic-bezier(0.86, 0, 0.07, 1);
  /* Sidebar Login-Button abgerundet */
  border-radius: 12px;
}

.sidebar-btn-login::before {
  content: "";
  display: block;
  position: absolute;
  width: 10%;
  background: var(--bg);
  height: 0.3em;
  right: 20%;
  top: -0.21em;
  transform: skewX(-45deg);
  transition: all 0.45s cubic-bezier(0.86, 0, 0.07, 1);
}

.sidebar-btn-login::after {
  content: "";
  display: block;
  position: absolute;
  width: 10%;
  background: var(--bg);
  height: 0.3em;
  left: 20%;
  bottom: -0.25em;
  transform: skewX(45deg);
  transition: all 0.45s cubic-bezier(0.86, 0, 0.07, 1);
}

.sidebar-btn-login:hover::before {
  right: 80%;
}

.sidebar-btn-login:hover::after {
  left: 80%;
}

/* Sidebar Logout Button */
.sidebar-btn-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  /* Sidebar Logout-Button abgerundet */
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.sidebar-btn-logout:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
}

/* Session Timer Styles */
.nav-session-timer {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: "Courier New", monospace;
  padding: 0.4rem 0.6rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  /* Session Timer abgerundet */
  border-radius: 8px;
}

.sidebar-session-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  background: rgba(59, 130, 246, 0.05);
  /* Session Info abgerundet */
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.sidebar-session-label {
  color: var(--muted);
  font-size: 0.85rem;
}

.sidebar-session-timer {
  color: var(--text);
  font-weight: 600;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
}

/* Merged duplicate media queries and removed unused .brk styles */
@media (max-width: 768px) {
  .nav-btn-login {
    padding: 0.4em 0.8em;
    font-size: 0.85rem;
  }

  .nav-btn-login svg {
    width: 16px;
    height: 16px;
  }

  .nav-btn-logout {
    padding: 0.5rem;
  }

  .nav-session-timer {
    font-size: 0.75rem;
    padding: 0.3rem 0.5rem;
  }
}
