/* Resetowanie domyślnych stylów */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Nagłówek i profil */.top-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 15px;
}.user-menu {
    display: flex;
    align-items: center;
}.user-icon button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
}

/* PRZYCISK WYLOGUJ */.user-menu {
    position: absolute;
    top: 10px;
    right: 20px;
    display: flex;
    align-items: center;
}.user-icon {
    width: 40px;
    height: 40px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    margin-right: 10px;
}.logout-btn {
    text-decoration: none;
    color: black;
    font-weight: bold;
}


/* ---------------------- */
/* GÓRNA BELKA I PRZYCISK WYLOGOWANIA */
/* ---------------------- */.user-btn {
    background: none;
    border: none;
    cursor: pointer;
}.user-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 40px;
    background: white;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    width: 100px;
    text-align: center;
}.dropdown-menu a {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
}.dropdown-menu a:hover {
    background: #f0f0f0;
}.show {
    display: block;
}



/* Stylizacja tła strony */
body {
    background-color: #f8f9fa;
}

/* ---------------------- */
/* EKRAN LOGOWANIA */
/* ---------------------- */.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    background-color: #f8f9fa;
}.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}.login-box {
    width: 350px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}
.login-box h2 {
    font-size: 22px;
    margin-bottom: 15px;
}.form-group {
    margin-bottom: 10px;
    text-align: left;
}.form-group label {
    font-weight: bold;
}.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
}.btn-primary {
    background-color: #007bff;
    border: none;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
}.btn-primary:hover {
    background-color: #0056b3;
}.text-center {
    margin-top: 10px;
}

/* ---------------------- */
/* STRONA PO ZALOGOWANIU */
/* ---------------------- */.main-container {
    display: flex; /* Użyj flexbox do układania elementów */
    height: 100vh; /* Ustaw wysokość kontenera na 100% wysokości okna */
}

/* Menu boczne */.sidebar {
    width: 250px;
    background-color: #ffffff;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}.sidebar h2 {
    font-size: 18px;
    margin-bottom: 20px;
}.nav-links {
    list-style: none;
    padding: 0;
}.nav-links li {
    margin-bottom: 15px;
}.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.2s;
}.nav-links a:hover {
    background: #e3e3e3;
}

/* Główna zawartość */.content {
    flex-grow: 1; /* Pozwól elementowi.content wypełnić pozostałą przestrzeń */
    padding: 30px;
    overflow-y: auto; /* Dodaj pionowy pasek przewijania, jeśli treść przekracza wysokość okna */
}.header {
    background: #007bff;
    color: white;
    padding: 15px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    border-radius: 5px;
}

/* Karty w dashboardzie */.dashboard-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}.dashboard-box h3 {
    margin-bottom: 10px;
    font-size: 18px;
}.dashboard-box p {
    margin-bottom: 5px;
}.dashboard-container {
    padding: 30px;
}.dashboard-container h2 {
    margin-bottom: 15px;
}.table {
    margin-bottom: 30px;
} 

/* ---------------------- */
/* WYŚWIETLANIE MENU TYLKO DLA ZALOGOWANYCH */
/* ---------------------- */
@media (min-width: 768px) {
  .sidebar {
        display: block; /* Menu pojawia się po zalogowaniu */
    }
}

/* ---------------------- */
/* RESPONSYWNOŚĆ */
/* ---------------------- */
@media (max-width: 768px) {
  .sidebar {
        width: 100%;
        padding: 10px;
        text-align: center;
    }

  .nav-links li {
        display: inline-block;
        margin: 0 10px;
    }

  .content {
        padding: 15px;
    }

  .login-box {
        width: 90%;
    }
}
/* komunikaty */
/* Kontener na komunikaty - nie przesuwa strony */
.messages-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050; /* Nad całą stroną */
    width: 100%;
    max-width: 400px;
}

/* Styl dla alertów, aby miały ramkę */
.custom-alert {
    border: 2px solid #007bff; /* Kolor ramki */
    border-radius: 10px; /* Zaokrąglone rogi */
    background-color: #e9f5ff; /* Delikatne tło */
    color: #0056b3; /* Kolor tekstu */
    padding: 12px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}