/* =============================== */
/* Global Styles and Typography    */
/* =============================== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --primary-color: #123C69;
  --accent-color: #AC3B61;
  --light-text-color: #EEE2DC;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  margin: 0;
  background: #f6f9fc;
  color: var(--primary-color);
}

a {
    color: inherit; 
    text-decoration: inherit;
    font-size: 1em;
    font-weight: bold;
    letter-spacing: 0.2px;
    white-space: nowrap;
    color: var(--primary-color);
    cursor: pointer;
}

/* =============================== */
/* Header and Navigation           */
/* =============================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #ffffff;
  border-bottom: 1px solid #d0d7e1;
  padding: 10px;
  box-sizing: border-box;
  z-index: 1000;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#logo {
  height: 58px;
  max-height: 58px;
  width: auto;
  margin-right: 10px;
}

header h1 {
  margin: 0;
}
/* =============================== */
/* Sidebar Menu                    */
/* =============================== */

#menu {
  position: fixed;
  top: 60px;
  bottom: 0;
  left: 10px;
  width: 150px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #d0d7e1;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
  transition: width 0.3s ease;
  z-index: 1000;
}


#menu ul {
  list-style: none;
  margin: 0;
  padding: 10px;
  overflow-y: auto;
  flex: 1;
}

#menu li span {
  padding-left: 6px;
  padding-bottom: 10px;
}

#menu ul li a,
#menu ul li button.menu-link {
  padding: 10px;
  font-size: 0.95em;
  transition: background-color 0.2s ease;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.6em;
  color: var(--primary-color);
  font-weight: bold;
}

#menu li button.menu-link.open {
  color: var(--accent-color) !important;
}

#menu li button.menu-link.open i {
  color: var(--accent-color) !important;
}

#menu ul li a:hover,
#menu ul li button.menu-link:hover {
  background-color: #f1f3f5;
}

#menu.collapsed {
  width: 55px !important;
}
#menu.collapsed li a span,
#menu.collapsed li button span,
#menu.collapsed li button .arrow {
  display: none !important;
}

#menu.collapsed li a i,
#menu.collapsed li button.menu-link i {
  text-align: center;
  margin: 0 auto;
  display: block;
  width: 100%;
}

#menu-toggle .icon-arrow,
#menu-toggle .icon-cross {
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu.collapsed #menu-toggle .icon-arrow {
  opacity: 1;
  transform: rotate(0deg);
}

#menu.collapsed #menu-toggle .icon-cross {
  opacity: 0;
  transform: rotate(90deg);
}

#menu:not(.collapsed) #menu-toggle .icon-arrow {
  opacity: 0;
  transform: rotate(-90deg);
}

#menu:not(.collapsed) #menu-toggle .icon-cross {
  opacity: 1;
  transform: rotate(0deg);
}

.menu-toggle {
  font-size: 1.4em;
  background: none;
  border: none;
  cursor: pointer;
  padding: 15px;
  text-align: center;
  width: 100%;
  border-top: 1px solid #e0e0e0;
  margin-top: auto;
  color: var(--primary-color);
  border: none;
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#menu.collapsed .menu-toggle {
  padding: 15px 0;
}

#menu .active {
  border-left: solid;
  border-color: var(--accent-color);
  border-radius: 0px;
}

/* =============================== */
/* Main Content Area               */
/* =============================== */

#content {
  margin-left: 190px;
  margin-right: 30px;
  margin-top: 90px;
  padding: 20px;
  height: calc(100vh - 60px);
  overflow-y: auto;
  box-sizing: border-box;
  background: #F4F6FA;
  border: 2px solid #d0d7e1;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 20px;
  background-color: #fff;
  border-radius: 15px;
}

.Tasks {
    /*border-radius: 14px;
    margin-top: 80px !important;
    border-style: hidden !important;
    background-color: #fff !important;
    margin-right: 20px;*/
}

.Tasks #description {
    width: inherit;
    height: 100%;
}

#error {
  color: red;
  margin-top: 10px;
}

/* =============================== */


#menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  transform: translateX(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#menu li {
  margin-bottom: 5px;
}

#menu li a {
  display: flex;
  align-items: center;
  gap: 0.4em;
  text-decoration: none;
  color: var(--primary-color);
}

#menu li a.active {
  color: var(--accent-color);
  font-weight: bold;
  position: relative;
}

#menu li a.active::before {
  position: relative;
  margin-right: 4px;
}

#menu li a .submenu-label {
  font-size: 0.9em;
  font-weight: normal;
}

#menu ul ul li a i {
  display: none !important; /* Untermenü-Icons ausblenden */
}

#menu ul ul li a {
  background-color: #fff; /* Gleiche Farbe wie Hauptmenü */
  color: var(--primary-color); /* Schriftfarbe angleichen */
}

#menu ul ul li a:hover {
  background-color: #f1f3f5;
}


#menu li button.menu-link {
  display: flex;
  align-items: center;
  gap: 0.4em;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

#menu li a i {
  width: 1em;
  text-align: center;
  padding-bottom: 10px;
}

#menu li button.menu-link i {
  width: 1em;
  text-align: center;
  padding-bottom: 10px;
}

#menu li button.menu-link .arrow {
  margin-left: auto;
  transition: transform 0.3s ease;
}

#menu li button.menu-link.open .arrow {
  transform: rotate(180deg);
}

#menu ul ul {
  padding-left: 15px;
}

#menu li ul.submenu {
  list-style: none;
  padding-left: 15px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

#menu li ul.submenu.open {
  max-height: 1000px;
}

#menu li a.submenu-link {
  font-size: 1em;
  font-weight: bold;
  padding-left: 26px;
  background-color: #fff !important;
  color: var(--primary-color) !important;
}

#menu li a.submenu-link:hover {
  background-color: #f1f3f5 !important;
}

#menu li a.submenu-link.active {
  color: var(--accent-color) !important;
  font-weight: bold;
}
.menu-link button {
  color: --primary-color;
}

/* collapsed menu styles */
#menu.collapsed {
  width: 45px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#content.collapsed {
  margin-left: 90px;
  transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#menu.collapsed li a span {
  display: none;
}
#menu.collapsed li button.menu-link span {
  display: none;
}
#menu.collapsed li button.menu-link .arrow {
  display: none;
}


#menu-toggle .icon-arrow,
#menu-toggle .icon-cross {
  display: block;
  text-align: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#menu-toggle .icon-arrow {
  opacity: 0;
  transform: rotate(-90deg);
}

#menu-toggle .icon-cross {
  opacity: 1;
  transform: rotate(0deg);
}

#menu.collapsed #menu-toggle .icon-arrow {
  opacity: 1;
  transform: rotate(0deg);
}

#menu.collapsed #menu-toggle .icon-cross {
  opacity: 0;
  transform: rotate(90deg);
}
#menu.collapsed ul {
  opacity: 1;
  transform: translateX(0);
}

.menu-toggle:hover {
  background-color: unset;
}

.collapsed .menu-toggle {
  left: 13%;
}
.hidden {
  display: none;
}
/* =============================== */
/* Profile Dropdown                */
/* =============================== */

#profile-container {
  margin-left: auto;
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 24px;
  border: 1px solid rgb(204, 204, 204);
}

#profile-greeting {
  margin-right: 10px;
  padding: 0px 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 19px;
  color: var(--accent-color);
  margin-left: 12px;
  margin-right: 12px;
}

#profile-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
}

#profile-menu {
  position: absolute;
  right: 0;
  top: 50px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  display: none;
  min-width: 120px;
  padding: 5px 0;
  z-index: 1001;
}

#profile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#profile-menu li {
  padding: 8px 16px;
  cursor: pointer;
}

#profile-menu li:hover {
  background: #f0f0f0;
}

#profile-container.open #profile-menu {
  display: block;
}
/* =============================== */
/* Buttons and Form Controls       */
/* =============================== */

button {
  background-color: var(--primary-color);
  border: none;
  color: var(--light-text-color);
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background-color: var(--accent-color);
}

input,
select {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  margin: 5px 0;
}

/* =============================== */
/* Profile Page Avatar             */
/* =============================== */
.avatar-wrapper {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

#avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.avatar-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  text-align: center;
  font-size: 14px;
  padding: 6px 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.avatar-wrapper:hover .avatar-overlay {
  opacity: 1;
}

/* =============================== */

/* Notification Bell */
#notification-container {
  position: relative;
  margin-left: auto;
  margin-right: 20px;
}

#notification-icon {
  font-size: 20px;
  cursor: pointer;
  color: var(--primary-color);
}

#notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-color);
  color: #fff;
  border-radius: 12px;
  padding: 0 4px;
  font-size: 12px;
}

#notification-badge.hidden {
  display: none;
}

#notification-list {
  position: absolute;
  right: 0;
  top: 30px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  width: 250px;
  max-height: 300px;
  overflow-y: auto;
  display: none;
  z-index: 1001;
}

#notification-list.show {
  display: block;
}

#notification-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#notification-list li {
  padding: 8px 12px;
  cursor: pointer;
}

#notification-list li:hover {
  background: #f0f0f0;
}

#notification-icon.notify {
  animation: bell-shake 0.5s;
  color: var(--accent-color);
}

@keyframes bell-shake {
  0%, 100% { transform: rotate(0deg); }
  20%, 60% { transform: rotate(-20deg); }
  40%, 80% { transform: rotate(20deg); }
}
