@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    background: #d2d2d2;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 85px;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background: #004a99;
    padding: 25px 20px;
    transition: all 0.4s ease;
}

.sidebar:hover {
    width: 260px
}

.sidebar-header {
    display: flex;
    align-items: center;
}

.sidebar-header img {
    width: 42px;
    border-radius: 50%;
}

.sidebar-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-left: 23px;
}

.sidebar-links {
    list-style: none;
    margin-top: 20px;
    height: 80%;
    overflow-y: auto;
    scrollbar-width: none;
}

.sidebar-links h4 span {
    opacity: 0;
}

.sidebar:hover .sidebar-links h4 span {
    opacity: 1;
}

.sidebar-links h4 {
    color: #fff;
    font-weight: 500;
    margin: 10px 0;
    white-space: nowrap;
    position: relative;
}

.sidebar-links .menu-separator hr {
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    transform: scaleX(1);
    transform: translateY(-50%);
    background: #333578;
    transform-origin: right;
    transition-duration: 0.1s;
}

.sidebar:hover .sidebar-links .menu-separator hr {
    transform: scaleX(0);
} 

.sidebar-links li a {
    display: flex;
    align-items: center;
    gap: 0 20px;
    color: #dbd4d4e3;
    font-weight: 500;
    padding: 15px 10px;
    white-space: nowrap;
    text-decoration: none;
}

.sidebar-links li a:hover {
    background: #ffffff2d;
    color: #fff;
    border-radius: 4px;
}

.user-account {
    margin-top: auto;
    padding: 12px 10px;
    margin-left: -10px
}

.user-account .user-profile {
    color: #e5dede;
    display: flex;
    align-items: center;
}

.user-profile img {
    width: 42px;
    border-radius: 50%;
}

.user-detail {
    margin-left: 23px;
    white-space: nowrap;
}

.user-profile h3 {
    font-size: 1rem;
    font-weight: 600;
}

.user-profile span {
    font-size: 0.775rem;
    font-weight: 500;
    display: block;
    margin-top: 0;
}

.sidebar:hover .user-account {
    background: #ffffff2d;
    border-radius: 4px;
}

.main-content {
    margin-left: 85px;
    padding: 30px;
    transition: margin-left 0.4s ease;

}


.sidebar:hover ~ .main-content {
    margin-left: 260px;
}

.main-wrapper {
    gap: 30px;
    margin-left: 85px;
    padding: 30px;
    flex-wrap: wrap;
    background-color: #f4f4f4;
    min-height: 100vh;
    transition: margin-left 0.4s ease;
}

.sidebar:hover ~ .main-wrapper {
    margin-left: 260px;
}

.scroll-section {
    margin-bottom: 40px;
}

.scroll-section h1 {
    margin-top: 0;
}

/* main content */
.main-content {
    margin-left: 85px;
    padding: 30px;
    background-color: #f4f4f4;
    min-height: 100vh;
    transition: margin-left 0.4s ease;
    color: #222;
}

.sidebar:hover ~ .main-content {
    margin-left: 260px;
}

.main-content h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.main-content h2 {
    margin-top: 30px;
    margin-bottom: 10px;
    color: #333378;
    font-size: 1.5rem;
}

.main-content h3 {
    font-size: 1.125rem;
    margin-top: 20px;
    margin-bottom: 8px;
    color: #444;
}

.main-content p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.main-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.main-content ul li {
    list-style: disc;
    margin-bottom: 8px;
}

/* main wrapper */

.main-wrapper h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.main-wrapper h2 {
    margin-top: 30px;
    margin-bottom: 10px;
    color: #333378;
    font-size: 1.5rem;
}

.main-wrapper h3 {
    font-size: 1.125rem;
    margin-top: 20px;
    margin-bottom: 8px;
    color: #444;
}

.main-wrapper p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.main-wrapper ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.main-wrapper ul li {
    list-style: disc;
    margin-bottom: 8px;
}



.warning {
    margin-top: 20px;
    padding: 10px 15px;
    background-color: #fff4e5;
    border-left: 5px solid #ffa726;
    font-weight: bold;
    color: #8a4b00;
}

/* Opcjonalne: lepszy wygląd suwaka (tylko dla Chrome/Edge) */
.scroll-section::-webkit-scrollbar {
    width: 6px;
}
.scroll-section::-webkit-scrollbar-thumb {
    background-color: #999;
    border-radius: 3px;
}

    .accordion-section {
      background: white;
      border-radius: 6px;
      margin-top: 7px;
      margin-bottom: 7px;
      box-shadow: 0 2px 5px rgb(0 0 0 / 0.1);
      overflow: hidden;
    }

    .accordion-header {
      cursor: pointer;
      padding: 15px 20px;
      background-color: #004a99;
      color: white;
      font-weight: 700;
      user-select: none;
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 1.1rem;
    }

    .accordion-header:hover {
      background-color: #0066cc;
    }

    .accordion-content {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.35s ease, padding 0.35s ease;
      padding: 0 20px;
      background-color: #fafafa;
      color: #333;
    }

    .accordion-content.open {
      padding: 15px 20px;
      max-height: 1500px; /* wystarczająco duże, aby pomieścić zawartość */
    }

    /* Ikonka strzałki */
    .accordion-arrow {
      font-size: 1.5rem;
      transition: transform 0.35s ease;
    }

    .accordion-arrow.open {
      transform: rotate(90deg);
    }

    .main-content h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.accordion-content h2 {
    margin-top: 30px;
    margin-bottom: 10px;
    color: #333378;
    font-size: 1.5rem;
}

.accordion-content h3 {
    font-size: 1.125rem;
    margin-top: 20px;
    margin-bottom: 8px;
    color: #444;
}

.accordion-content p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.accordion-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.accordion-content ul li {
    list-style: disc;
    margin-bottom: 8px;
}