body {
        font-family: "Segoe UI", Arial, sans-serif;
        background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
        min-height: 100vh;
      }
      .sidebar {
        background: rgba(29, 53, 87, 0.95);
        color: #fff;
        min-height: 100vh;
        width: 320px;
        padding: 32px 20px 20px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
        border-radius: 0 30px 30px 0;
      }
      .sidebar .avatar {
        width: 120px;
        height: 120px;
        background: #457b9d;
        color: white;
        font-size: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        margin-bottom: 18px;
        border: 4px solid #fff;
        box-shadow: 0 2px 12px rgba(69, 123, 157, 0.12);
        position: relative;
        overflow: hidden;
      }
      .sidebar .avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
        display: block;
      }
      .sidebar h4 {
        color: #fff;
        text-align: center;
        margin-bottom: 20px;
        font-weight: 700;
        letter-spacing: 1px;
      }
      .sidebar ul {
        width: 100%;
        padding-left: 0;
      }
      .sidebar .nav-link {
        color: #a8dadc;
        font-weight: 500;
        border-radius: 8px;
        margin-bottom: 8px;
        padding: 10px 16px;
        transition: background 0.2s, color 0.2s;
        display: flex;
        align-items: center;
        gap: 8px;
      }
      .sidebar .nav-link:hover,
      .sidebar .nav-link.active {
        background: #457b9d;
        color: #fff;
      }
      .upload-icon {
        background: #1d3557;
        color: #fff;
        border-radius: 50%;
        padding: 4px;
        font-size: 18px;
        cursor: pointer;
        position: absolute;
        bottom: 8px;
        right: 8px;
        border: 2px solid #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        transition: background 0.2s;
      }
      .upload-icon:hover {
        background: #457b9d;
      }
      #logo-upload {
        display: none;
      }
      .main-content {
        flex: 1;
        padding: 40px 32px;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 30px;
        margin: 32px 0;
        box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
      }
      .card {
        border: none;
        border-radius: 18px;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
        margin-bottom: 32px;
        background: rgba(255, 255, 255, 0.98);
      }
      .card-header {
        background: #457b9d;
        color: #fff;
        font-weight: 600;
        border-radius: 18px 18px 0 0 !important;
        font-size: 1.1rem;
      }
      .btn-primary {
        background: #457b9d;
        border: none;
        border-radius: 8px;
        padding: 12px 24px;
        font-weight: 500;
        transition: all 0.2s;
      }
      .btn-primary:hover {
        background: #1d3557;
        transform: translateY(-1px);
        box-shadow: 0 5px 15px rgba(69, 123, 157, 0.15);
      }
      .btn-secondary {
        background: #a8dadc;
        color: #1d3557;
        border: none;
        border-radius: 8px;
        padding: 12px 24px;
        font-weight: 500;
      }
      .btn-secondary:hover {
        background: #f1faee;
        color: #1d3557;
      }
      .list-group-item {
        border: none;
        border-bottom: 1px solid #f1faee;
        background: transparent;
      }
      .list-group-item:last-child {
        border-bottom: none;
      }
      .alert-container {
        position: fixed;
        top: 24px;
        right: 24px;
        z-index: 1050;
        min-width: 300px;
      }
      @media (max-width: 991px) {
        .sidebar {
          min-height: auto;
          width: 100%;
          border-radius: 0;
          flex-direction: row;
          justify-content: flex-start;
          padding: 16px 8px;
        }
        .main-content {
          padding: 16px 4px;
          border-radius: 0;
          margin: 0;
        }
      }
      @media (max-width: 767px) {
        .sidebar {
          flex-direction: column;
          align-items: center;
        }
        .main-content {
          padding: 8px 2px;
        }
      }

      .modal-content {
        border-radius: 18px;
        box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
        background: #fff;
        border: none;
      }
      .modal-header {
        background: #457b9d;
        color: #fff;
        border-radius: 18px 18px 0 0;
        border-bottom: none;
      }
      .modal-title {
        font-weight: 600;
        font-size: 1.2rem;
      }
      .modal-body {
        font-size: 1.08rem;
        color: #222;
        padding: 1.5rem;
      }
      .btn-close {
        filter: invert(1);
      }

      .accordion .accordion-item {
        border: none;
        border-radius: 14px;
        margin-bottom: 14px;
        box-shadow: 0 2px 12px rgba(69, 123, 157, 0.07);
        background: #f8fafc;
      }
      .accordion .accordion-header {
        border-radius: 14px;
      }
      .accordion-button {
        border-radius: 14px !important;
        background: #eaf1fa;
        color: #1d3557;
        font-weight: 600;
        font-size: 1.08rem;
        transition: background 0.2s, color 0.2s;
        box-shadow: none;
        padding: 18px 22px;
      }
      .accordion-button:not(.collapsed) {
        background: #457b9d;
        color: #fff;
      }
      .accordion-button:focus {
        box-shadow: 0 0 0 2px #a8dadc55;
      }
      .accordion-body {
        background: #fff;
        border-radius: 0 0 14px 14px;
        font-size: 1.04rem;
        color: #222;
        padding: 22px 24px;
        border-top: 1px solid #eaf1fa;
      }

      /* Style dla dymku faktów */
      .fact-box {
        border-radius: 16px;
        box-shadow: 0 8px 24px rgba(99, 157, 198, 0.12);
        transition: all 0.3s ease;
        overflow: hidden;
        background-color: #ffffff;
      }

      .fact-box:hover {
        box-shadow: 0 12px 32px rgba(99, 157, 198, 0.18);
        transform: translateY(-3px);
      }

      /* Nowe style dla karuzeli */
      #fact-carousel .carousel-inner {
        min-height: 160px; /* Stała wysokość dla wszystkich slajdów */
      }

      #fact-carousel .carousel-item {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        opacity: 0;
        transition: opacity 0.6s ease-in-out;
      }

      #fact-carousel .carousel-item.active {
        opacity: 1;
        position: relative;
        animation: fadeInFact 0.5s ease forwards;
      }

      @keyframes fadeInFact {
        from {
          opacity: 0;
          transform: translateY(10px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      .subscription-info {
        background: #f8f9fa;
        border-radius: 12px;
        padding: 24px;
        margin-top: 24px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
      }
      .subscription-info h4 {
        font-size: 1.5rem;
        margin-bottom: 16px;
        position: relative;
        display: inline-block;
      }
      .subscription-info h4::after {
        content: "";
        position: absolute;
        width: 100%;
        height: 2px;
        bottom: -4px;
        left: 0;
        background: linear-gradient(
          to right,
          rgba(69, 123, 157, 0.8),
          rgba(69, 123, 157, 0) 50%,
          rgba(69, 123, 157, 0.8)
        );
      }
      .subscription-info p {
        margin-bottom: 12px;
        font-size: 1.1rem;
      }
      .subscription-info ul {
        padding-left: 20px;
        margin-top: 8px;
      }
      .subscription-info ul li {
        margin-bottom: 8px;
        position: relative;
        padding-left: 24px;
      }
      .subscription-info ul li::before {
        content: "✔️";
        position: absolute;
        left: 0;
        top: 0;
        font-size: 1.2rem;
        line-height: 1;
        color: #457b9d;
      }

      #calendar {
        margin: 0 auto;
        font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
        background-color: #ffffff; /* Białe tło */
        border: 1px solid #ddd; /* Delikatne obramowanie */
        border-radius: 8px; /* Zaokrąglone rogi */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Cień dla estetyki */
        padding: 20px; /* Odstępy wewnętrzne */
      }

      .fc-event {
        background-color: #007bff !important; /* Kolor wydarzenia */
        color: #fff !important; /* Kolor tekstu */
        border: none !important; /* Usuń obramowanie */
        border-radius: 4px; /* Zaokrąglone rogi */
        padding: 5px; /* Odstępy wewnętrzne */
      }

      .fc-event-time {
        display: block !important; /* Wyświetlaj czas jako blok */
        font-size: 0.8rem; /* Zmniejsz rozmiar czcionki */
        color: rgba(0, 0, 0, 0.7);
        margin-bottom: 3px; /* Odstęp między czasem a tytułem */
      }

      .fc-event-title {
        display: block !important;
        font-weight: 600;
        color: black;
      }

      .fc-daygrid-event {
        background-color: #5b9add !important; /* Wyraźny niebieski kolor */
        color: #fff !important; /* Kolor tekstu */
        border-left: 5px solid #0056b3 !important; /* Ciemniejszy niebieski pasek po lewej */
        border-radius: 4px !important;
        padding: 4px 6px !important;
        margin: 2px 0 !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important; /* Delikatny cień */
      }

      .fc-daygrid-event:hover {
        background-color: #0056b3 !important; /* Ciemniejszy kolor po najechaniu */
      }

      /* Różne kolory pasków dla różnych wydarzeń */
      .fc-daygrid-event:nth-child(3n + 1) {
        border-left-color: #0d6efd !important; /* Niebieski */
      }

      .fc-daygrid-event:nth-child(3n + 2) {
        border-left-color: #198754 !important; /* Zielony */
      }

      .fc-daygrid-event:nth-child(3n + 3) {
        border-left-color: #dc3545 !important; /* Czerwony */
      }

      /* Efekt najechania myszką */
      .fc-daygrid-event:hover {
        background-color: #f0f0f0 !important;
      }
      .fc .fc-daygrid-day.fc-day-today {
        background-color: #e9f5ff !important; /* Jasnoniebieskie tło dla dzisiejszego dnia */
      }

      .fc-header-toolbar {
        margin-bottom: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
      }

      .fc-toolbar-title {
        font-size: 1.5rem;
        font-weight: bold;
        color: #333;
      }

      .fc-button {
        background-color: #007bff !important; /* Niebieski kolor przycisków */
        color: #fff !important; /* Biały tekst */
        border: none !important; /* Usuń obramowanie */
        border-radius: 4px; /* Zaokrąglone rogi */
        padding: 5px 10px; /* Odstępy wewnętrzne */
        font-size: 0.9rem;
        transition: background-color 0.3s ease; /* Animacja zmiany koloru */
      }

      .fc-button:hover {
        background-color: #0b5ed7 !important;
      }
      .fc-today-button {
        background-color: #6c757d !important;
      }

      .fc-today-button:hover {
        background-color: #5a6268 !important;
      }

      .content-blur {
        filter: blur(
          5px
        ) !important; /* Zwiększyłem blur dla większej widoczności */
        pointer-events: none !important;
        opacity: 0.7 !important;
        user-select: none !important;
      }

      .enterprise-overlay {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 10 !important;
        pointer-events: none !important;
      }

      .enterprise-overlay .badge {
        background-color: #22335b !important;
        color: white !important;
        font-size: 1.2rem !important;
        padding: 10px 20px !important;
        border-radius: 20px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
        filter: none !important;
        opacity: 1 !important;
        pointer-events: none !important;
      }

      /* Style dla niestandardowych powiadomień */
      #custom-notifications {
        z-index: 9999;
      }

      #custom-notifications .toast {
        min-width: 300px;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
        border-radius: 10px;
        opacity: 0;
        transform: translateY(-20px);
        animation: slideIn 0.2s ease forwards;
      }

      @keyframes slideIn {
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      #custom-notifications .toast.bg-success {
        background-color: #198754 !important;
      }

      #custom-notifications .toast.bg-danger {
        background-color: #dc3545 !important;
      }

      #custom-notifications .toast.bg-warning {
        background-color: #ffc107 !important;
        color: #212529 !important;
      }

      #custom-notifications .toast.bg-info {
        background-color: #0dcaf0 !important;
      }

      #custom-notifications .btn-close-white {
        filter: invert(1);
      }

      /* Poprawki widoczności wartości czasu */
      .flatpickr-time {
        display: flex !important;
        max-width: none !important; /* Usuń ograniczenie szerokości */
        width: auto !important;
        min-width: 200px !important; /* Minimalna szerokość, aby pomieścić wartości */
        padding: 10px !important;
        overflow: visible !important; /* Zapobiega obcinaniu zawartości */
        height: auto !important;
        min-height: 60px !important;
        align-items: center !important;
        justify-content: center !important;
      }

      .flatpickr-time input.flatpickr-hour,
      .flatpickr-time input.flatpickr-minute {
        width: 50px !important; /* Szerokość pola wystarczająca na 2 cyfry */
        font-size: 1.2rem !important;
        text-align: center !important;
        padding: 6px 2px !important;
        margin: 0 5px !important;
        height: 44px !important;
        display: inline-block !important;
        visibility: visible !important;
      }

      .flatpickr-time input:hover {
        background: #f1f5f9 !important;
        border-color: #cbd5e0 !important;
      }

      .flatpickr-time input:focus {
        background: #fff !important;
        border-color: #457b9d !important;
        box-shadow: 0 0 0 3px rgba(69, 123, 157, 0.25),
          inset 0 2px 4px rgba(0, 0, 0, 0.04) !important;
        outline: none !important;
      }

      .flatpickr-time .numInputWrapper {
        width: auto !important;
        position: relative !important;
        padding: 0 !important;
        height: 44px !important;
        display: inline-flex !important;
        flex-direction: column !important;
        align-items: center !important;
      }

      /* Poprawki pozycji strzałek */
      .flatpickr-time .numInputWrapper span.arrowUp,
      .flatpickr-time .numInputWrapper span.arrowDown {
        position: absolute !important;
        right: 0 !important;
        width: 20px !important;
        height: 20px !important;
        border-radius: 50% !important;
        display: block !important;
        cursor: pointer !important;
        opacity: 1 !important;
        border: none !important;
        background: #457b9d !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
      }

      .flatpickr-time .numInputWrapper span.arrowUp {
        top: -10px !important;
      }

      .flatpickr-time .numInputWrapper span.arrowDown {
        bottom: -10px !important;
      }

      .flatpickr-time .numInputWrapper span.arrowUp:hover,
      .flatpickr-time .numInputWrapper span.arrowDown:hover {
        background: #1d3557 !important;
        opacity: 1 !important;
        transform: scale(1.05) !important;
      }

      .flatpickr-time .numInputWrapper span.arrowUp:after {
        border-bottom-color: white !important;
      }

      .flatpickr-time .numInputWrapper span.arrowDown:after {
        border-top-color: white !important;
      }

      .flatpickr-time-separator {
        color: #457b9d !important;
        font-size: 1.5rem !important;
        font-weight: bold !important;
        opacity: 0.85 !important;
        margin: 0 5px !important;
        align-self: center !important;
        height: 48px !important;
        line-height: 48px !important;
      }

      /* Animacje dla wyboru czasu */
      .flatpickr-time input,
      .flatpickr-time .numInputWrapper span {
        animation: fadeIn 0.3s ease-out;
      }

      @keyframes fadeIn {
        from {
          opacity: 0;
          transform: translateY(5px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      /* Responsywność dla wyboru czasu */
      @media (max-width: 480px) {
        .flatpickr-time {
          padding: 12px 8px !important;
        }

        .flatpickr-time input {
          font-size: 1rem !important;
          height: 42px !important;
        }

        .flatpickr-time .numInputWrapper span.arrowUp,
        .flatpickr-time .numInputWrapper span.arrowDown {
          width: 26px !important;
          height: 21px !important;
        }
      }

      /* Style dla pola wyświetlającego wybraną godzinę */
      .time-input-display {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
        padding: 12px 15px;
        font-size: 1rem;
        font-weight: 500;
        color: #1d3557;
        width: 100%;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.25s ease;
      }

      .time-input-display:hover {
        background: #edf2f7;
        border-color: #cbd5e0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06),
          inset 0 2px 4px rgba(0, 0, 0, 0.03);
      }

      .time-input-display:focus,
      .time-input-display:active {
        outline: none;
        border-color: #457b9d;
        background: #f1f5f9;
        box-shadow: 0 0 0 3px rgba(69, 123, 157, 0.2),
          inset 0 2px 4px rgba(0, 0, 0, 0.03);
      }

      .time-input-display i {
        margin-right: 8px;
        color: #457b9d;
        font-size: 1.1rem;
      }

      .time-input-display.empty {
        color: #94a3b8;
        justify-content: center;
      }

      .numInputWrapper span.arrowUp,
      .numInputWrapper span.arrowDown {
        border: none !important;
        width: 26px !important;
        height: 18px !important;
      }

      .numInputWrapper span.arrowUp:after {
        border-bottom-color: #457b9d !important;
      }

      .numInputWrapper span.arrowDown:after {
        border-top-color: #457b9d !important;
      }

      .numInputWrapper:hover span.arrowUp:after {
        border-bottom-color: #1d3557 !important;
      }

      .numInputWrapper:hover span.arrowDown:after {
        border-top-color: #1d3557 !important;
      }

      .time-container {
        position: relative;
      }

      .time-icon {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: #457b9d;
        pointer-events: none;
      }

      /* Material theme dla flatpickr */
      .flatpickr-calendar.material_blue {
        box-shadow: 0 3px 13px rgba(0, 0, 0, 0.15);
        border-radius: 12px;
        border: none;
        width: 256px;
      }

      .flatpickr-calendar.material_blue .flatpickr-time {
        border-radius: 0 0 12px 12px !important;
        background: #f8fafc;
      }

      .flatpickr-calendar.material_blue .flatpickr-time input {
        background: transparent;
      }
      .shepherd-element {
        max-width: 350px;
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(29, 53, 87, 0.2);
        font-family: "Segoe UI", Arial, sans-serif;
      }

      .shepherd-element .shepherd-header {
        background: linear-gradient(135deg, #1d3557 0%, #457b9d 100%);
        padding: 12px 16px;
        border-radius: 12px 12px 0 0;
      }

      .shepherd-element .shepherd-title {
        font-size: 1.2rem;
        font-weight: 600;
        color: white;
      }

      .shepherd-element .shepherd-text {
        padding: 16px;
        font-size: 1rem;
        line-height: 1.5;
        color: #333;
      }

      .shepherd-element .shepherd-footer {
        padding: 8px 16px 16px;
        justify-content: flex-end;
      }

      .shepherd-button {
        background: #457b9d;
        border: none;
        color: white;
        padding: 8px 16px;
        border-radius: 6px;
        font-weight: 500;
        font-size: 0.9rem;
        transition: all 0.2s;
        margin-left: 8px;
      }

      .shepherd-button:hover {
        background: #1d3557;
        transform: translateY(-1px);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
      }

      .shepherd-button-secondary {
        background: #a8dadc;
        color: #1d3557;
      }

      .shepherd-button-secondary:hover {
        background: #f1faee;
        color: #1d3557;
      }

      .shepherd-arrow:before {
        background: #1d3557;
      }

      /* Dodaj lekką animację dla kroków tour */
      .shepherd-element[data-popper-placement^="top"] {
        animation: fadeInDown 0.4s;
      }

      .shepherd-element[data-popper-placement^="bottom"] {
        animation: fadeInUp 0.4s;
      }

      @keyframes fadeInUp {
        from {
          opacity: 0;
          transform: translate3d(0, 20px, 0);
        }
        to {
          opacity: 1;
          transform: translate3d(0, 0, 0);
        }
      }

      @keyframes fadeInDown {
        from {
          opacity: 0;
          transform: translate3d(0, -20px, 0);
        }
        to {
          opacity: 1;
          transform: translate3d(0, 0, 0);
        }
      }
      /* Ulepszone, zaokrąglone podświetlenie dla Shepherd.js */
      .shepherd-target {
        /* Usunięcie domyślnej, kwadratowej ramki */
        outline: none !important;
        
        /* Zastąpienie ramki cieniem, który dopasowuje się do kształtu */
        /* Tworzymy efekt podwójnej ramki/poświaty dla lepszego wyglądu */
        box-shadow: 0 0 0 3px rgba(168, 218, 220, 0.9), 0 0 15px 5px rgba(69, 123, 157, 0.5);
        
        /* Płynne przejście dla animacji pojawiania się podświetlenia */
        transition: box-shadow 0.3s ease-in-out;
      }
      /* Ulepszone style dla podświetlenia w Shepherd.js */
  .shepherd-highlight {
    border-radius: 18px !important; /* Zaokrąglenie takie same jak w kartach */
  }
  
  /* Dodatkowy efekt podświetlenia */
  .shepherd-enabled {
    box-shadow: 0 0 0 4px rgba(69, 123, 157, 0.5), 0 0 0 8px rgba(168, 218, 220, 0.3) !important;
    transition: all 0.3s ease-in-out;
  }