@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

@font-face {
  font-family: Cool;
  src: url(/_FONT/Cool.otf);
}
@font-face {
  font-family: Cool1;
  src: url(/_FONT/Aleo-Regular.otf);
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(180deg, #eef2f7 0%, #ffffff 100%);
  color: #ffffff;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
}
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }
}

/* Hero section */
.hero {
  display: flex;
  min-height: 80vh;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 80px 40px;
  position: relative;
  background: url('/image/background_main2.png') no-repeat center center/cover;
  background-blend-mode: darken;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.5); /* mocniejsze przyciemnienie */
  z-index: 0;
}

.section-left,
.section-right {
  position: relative;
  z-index: 1;
}

.section-left {
  flex: 1;
  max-width: 480px;
  background: rgba(0, 0, 0, 0.1); /* ciemne półprzezroczyste tło */
  padding: 32px;
  border-radius: 16px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.section-left h1 {
  font-size: 3.2rem;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.section-left p {
  font-size: 1.2rem;
  color: #eee;
  line-height: 1.8;
}

/* Login section */
.section-right {
  flex: 1;
  max-width: 420px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
}

.login-box {
  background: #ffffff; /* pełne białe tło */
  padding: 48px;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  border: 1px solid #e1e6f0; /* jednolity kolor */
  transition: all 0.3s ease;
}

.login-box h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 32px;
  font-weight: 600;
  color: #1e2a3a;
}

.input-box {
  margin-bottom: 22px;
}

.input-box input[type="text"],
.input-box input[type="password"] {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  border: 1px solid #ccd4e0;
  border-radius: 12px;
  background: #fff;
  color: #222;
  transition: all 0.3s ease;
}

.input-box input:focus {
  background: #fdfefe;
  outline: none;
  box-shadow: 0 0 0 3px rgba(100, 150, 250, 0.3);
  border-color: #5c8df6;
}

.input-box input::placeholder {
  color: #aaa;
}

.input-box input[type="submit"] {
  background: linear-gradient(90deg, #5c8df6, #3c6de0);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 14px 0;
  border-radius: 12px;
  width: 100%;
  transition: background 0.3s ease, transform 0.2s;
  font-weight: 600;
}
.input-box input[type="submit"]:hover {
  background: linear-gradient(90deg, #3c6de0, #5c8df6);
  transform: translateY(-2px);
}

.form-input {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: #fff;
  font-size: 14px;
  color: #333;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.section-center {
  flex: 1;
  max-width: 460px;
}

.welcome-box {
  background: #ffffff;
  padding: 36px;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid #e1e6ed;
  color: #1e2a3a;
}

.welcome-box h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.welcome-box p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #444;
}

.erro-info {
  color: #e74c3c;
  font-size: 0.9rem;
  margin-top: 5px;
  font-weight: 600;
}

/* Menu */
.page-navigation {
  background: #fff;
  padding: 16px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid #e0e4e8;
}

.logo img {
  height: 48px;
}

.navigation-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.navigation-toggle span {
  height: 3px;
  width: 25px;
  background: #777;
  margin: 4px 0;
  transition: 0.4s;
}

#input-toggle {
  display: none;
}

.menu {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu li a {
  color: #333;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 10px;
  transition: background 0.3s, color 0.3s;
  font-size: 1rem;
  font-weight: 500;
}
.menu li a:hover {
  background-color: #f2f4f8;
  color: #111;
}

@media (max-width: 768px) {
  .navigation-toggle {
    display: flex;
  }
  .menu {
    flex-direction: column;
    width: 100%;
    display: none;
    background-color: #fff;
    margin-top: 10px;
    border-top: 1px solid #e0e0e0;
  }
  #input-toggle:checked ~ .menu {
    display: flex;
  }
  .menu li {
    text-align: center;
  }
}

/* Server info box */
.server-info-box {
  background: #f1f6ff;
  color: #3c6de0;
  padding: 18px 26px;
  margin: 30px auto;
  border-radius: 14px;
  font-size: 1rem;
  max-width: 820px;
  text-align: center;
  box-shadow: 0 2px 15px rgba(74, 125, 232, 0.15);
  border: 1.5px solid #5c8df6;
}

.server-info-box i {
  color: #5c8df6;
  margin-right: 8px;
}

.server-info-box strong {
  color: #3c6de0;
}

/* Responsive hero */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding: 40px 20px;
    text-align: center;
  }
  .section-left,
  .section-right {
    max-width: 100%;
  }
  .section-left h1 {
    font-size: 2.3rem;
  }
}

/* Footer */
.site-footer {
  background: #f9f9f9;
  color: #666;
  padding: 32px 0px;
  text-align: center;
  font-size: 0.95rem;
  border-top: 1px solid #e0e0e0;
  font-family: 'Poppins', sans-serif;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100vw; /* zabezpiecza przed wyjściem poza ekran */
  overflow-x: hidden; /* ukrywa poziomy scroll jeśli się pojawi */
}

/* Reszta bez zmian */
.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-left,
.footer-right {
  flex: 1;
  min-width: 200px;
}

.footer-left p,
.footer-right p {
  margin: 6px 0;
  color: #888;
}

.footer-logo img {
  height: 40px;
  transition: transform 0.3s ease;
}
.footer-logo img:hover {
  transform: scale(1.06);
}

/* Responsywność */
@media (max-width: 900px) {
  .footer-content {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .footer-left,
  .footer-right {
    min-width: auto;
    flex: none;
    width: 100%;
  }
  
  .footer-left p,
  .footer-right p {
    margin: 4px 0;
  }
  
  .footer-logo img {
    margin-bottom: 15px;
  }
}




/* Layout główny */
.container {
  display: flex;
  background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  color: #222;
}

/* Pasek boczny (nawigacja) */
nav {
  background: #e8f0fe;
  width: 220px;
  padding: 20px 15px 20px 15px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.3s ease;
  transform: translateX(0);
  z-index: 10;
  border-right: 1px solid #d0dbf9;
  position: relative;
}

nav::-webkit-scrollbar {
  width: 8px;
}

nav::-webkit-scrollbar-track {
  background: #e8f0fe;
}

nav::-webkit-scrollbar-thumb {
  background-color: #7aa7ff;
  border-radius: 10px;
}

nav h2 {
  color: #5a6b9a;
  margin: 0 0 12px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

nav .menu-item {
  color: #4a5d9a;
  padding: 10px 12px;
  cursor: pointer;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s ease;
  user-select: none;
}

nav .menu-item.active,
nav .menu-item:hover {
  background: linear-gradient(90deg, #7aa7ff, #4d6dd8);
  color: #fff;
  box-shadow: 0 2px 8px rgba(122, 167, 255, 0.5);
}

nav.hidden {
  transform: translateX(-250px);
  transition: transform 0.3s ease;
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
}
.nav-hidden + main {
    margin-left: 30;
  }
.side-menu-toggle {
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  background: #4d6dd8;
  color: white;
  border: none;
  padding: 10px 8px;
  font-size: 20px;
  cursor: pointer;
  border-radius: 8px 8px 8px 8px;
  z-index: 100;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease;
}
.side-menu-toggle:hover {
  background: #2e4cb8;
}

@media (max-width: 768px) {
  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 80vw;        /* na pełną szerokość */
    min-height: 50vh;           /* domyślnie zwinięte (wysokość 0) */
    overflow: hidden;    /* ukrywa zawartość gdy zwinięte */
    background: #e8f0fe;
    transform: translateY(0);
    transition: height 0.3s ease;
    z-index: 1000;
  }

  nav:not(.hidden) {
    min-height: 50vh;        /* rozwinięte menu zajmuje połowę wysokości ekranu */
  }

  nav .menu-item {
    color: #4a5d9a;
    padding: 0px 0px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    user-select: none;
    width: 50%;         /* pełna szerokość w menu rozwiniętym */
  }

  nav .menu-item.active,
  nav .menu-item:hover {
    background: linear-gradient(90deg, #7aa7ff, #4d6dd8);
    color: #fff;
    box-shadow: 0 2px 8px rgba(122, 167, 255, 0.5);
  }

  nav.hidden {
    transform: translateX(-395px);
    transition: transform 0.3s ease;
    position: absolute;
    left: 0;
    top: 0;
    margin-top: 00px;
    height: 70%;
    background: none;
  }

  /* Przycisk rozwijania menu */
  .side-menu-toggle {
    position: fixed;
    bottom: 100px;
    right: -15px;
    background: #4d6dd8;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.3);
    z-index: 1100;
    transition: background 0.3s ease;
  }

  .side-menu-toggle:hover {
    background: #2e4cb8;
  }
}


/* Główna zawartość */
main {
  flex-grow: 1;
  overflow-y: auto;
  padding: 30px 40px;
  min-height: 0;
  background: #ffffff;
  box-shadow: inset 0 0 12px #e0e7ff;
  border-radius: 16px;
  color: #222;
  min-height: 700px;
}

.menu-item {
  display: block;
  padding: 10px;
  color: #444;
  text-decoration: none;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.3s ease, color 0.3s ease;
}

.menu-item:hover {
  background-color: #f0f4ff;
  color: #222;
}

.menu-item.active {
  background: linear-gradient(90deg, #7aa7ff, #4d6dd8);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(122, 167, 255, 0.5);
}

.cost-button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  background: linear-gradient(90deg, #7aa7ff, #4d6dd8);
  box-shadow: 0 2px 8px rgba(122, 167, 255, 0.5);
}

.cost-button:hover {
  background-color: #f0f4ff;
  color: #fff;
  box-shadow: 0 2px 8px rgba(122, 167, 255, 0.9);
}

.cost-button:active {
  transform: scale(0.98);
}

.cost-button.active {
  background: linear-gradient(90deg, #7aa7ff, #4d6dd8);
  color: #444;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(122, 167, 255, 0.9);
}

/* Karty */
.card {
  background: #f9fbff;
  border-radius: 16px;
  padding: 24px;
  flex: 1;
  box-shadow: 0 6px 20px rgba(74, 125, 232, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: #222;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(74, 125, 232, 0.3);
}

.card h3 {
  margin: 0 0 12px;
  font-weight: 600;
  font-size: 22px;
  color: #2a3f70;
}

.card .subtext {
  font-size: 14px;
  color: #57b894;
}

.card.red .subtext {
  color: #e56363;
}

.small-stat {
  font-size: 14px;
  margin-top: 8px;
  color: #999;
}

/* Statystyki górne */
.top-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

/* Bar chart */
.bar-chart {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  height: 100px;
  margin-top: 12px;
}

.bar-chart .bar {
  flex: 1;
  background: #7aa7ff;
  border-radius: 4px 4px 0 0;
  position: relative;
  transition: height 0.3s ease;
}

.bar-chart .bar.red {
  background: #e56363;
}

.bar-chart .bar:hover::after {
  content: attr(data-value) "%";
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  background: #2a3f70;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
}

/* Okrągłe wskaźniki */
.circular-progress {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 10px auto;
}

.circular-progress svg {
  transform: rotate(-90deg);
}

.circular-progress circle {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
}

.circular-progress .bg {
  stroke: #d6e0ff;
}

.circular-progress .progress {
  stroke: #7aa7ff;
  stroke-dasharray: 251.2;
  stroke-dashoffset: 251.2;
  transition: stroke-dashoffset 1s ease-out;
}

.circular-progress .percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 600;
  font-size: 18px;
  color: #2a3f70;
}

/* Sales & Views */
.sales-views {
  margin-top: 15px;
}

.sales-views .bars {
  display: flex;
  gap: 10px;
  height: 120px;
  align-items: flex-end;
}

.sales-views .bars .sales-bar {
  flex: 1;
  background: #7aa7ff;
  border-radius: 4px 4px 0 0;
}

.sales-views .bars .views-bar {
  flex: 1;
  background: #9ab1ff;
  border-radius: 4px 4px 0 0;
}

.sales-views .labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
  color: #777;
}

/* Statystyki dolne */
.bottom-stats {
  margin-top: 30px;
  display: flex;
  gap: 40px;
}

.bottom-stats .stat {
  display: flex;
  align-items: center;
  gap: 15px;
}

.bottom-stats .circle-progress {
  width: 60px;
  height: 60px;
  position: relative;
}

.bottom-stats .circle-progress svg {
  transform: rotate(-90deg);
}

.bottom-stats .circle-progress circle {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
}

.bottom-stats .circle-progress .bg {
  stroke: #d6e0ff;
}

.bottom-stats .circle-progress .progress {
  stroke: #7aa7ff;
  stroke-dasharray: 188.4;
  stroke-dashoffset: 188.4;
  transition: stroke-dashoffset 1s ease-out;
}

.bottom-stats .stat-info {
  color: #555;
}

.bottom-stats .stat-info strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: #2a3f70;
}

.bottom-stats .stat-info small {
  font-size: 14px;
  color: #57b894;
}

.bottom-stats .stat-info small.red {
  color: #e56363;
}



/* Styl ogólny dla tła */
body, .container, main, .dataTables_wrapper {
  background-color: #f9f9f9;
  color: #1a1a1a;
}

#usersTable {
  font-size: 11px;
}

/* Styl nagłówków tabeli */
table.dataTable thead {
  background-color: #eaeaea;
}

table.dataTable thead th {
  color: #006ddf;
  font-weight: 600;
  border-bottom: 1px solid #ccc;
}

/* Wiersze tabeli */
table.dataTable tbody td {
  color: #1a1a1a;
  border-color: #ddd;
}

table.dataTable tbody tr:hover {
  background-color: #f0f8ff;
}

/* Styl wyszukiwarki */
.dataTables_filter input {
  background: #ffffff;
  color: #1a1a1a;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 6px 10px;
}

/* Styl selecta */
.dataTables_length select {
  background: #ffffff;
  color: #1a1a1a;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 4px;
}

/* Styl paginacji */
.dataTables_wrapper .dataTables_paginate .paginate_button {
  background: #ffffff !important;
  color: #333 !important;
  border-radius: 6px;
  margin: 0 2px;
  border: 1px solid #ccc;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: #006ddf !important;
  color: white !important;
}

/* Styl przycisków */
.dt-button {
  background-color: #006ddf !important;
  color: white !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 6px 12px !important;
  margin: 0 4px 6px 0 !important;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.dt-button:hover {
  background-color: #0051b3 !important;
}

.dataTables_wrapper .dt-buttons {
  margin-bottom: 10px;
}

/* Styl samego przycisku */
button.dt-button.buttons-columnVisibility {
  background-color: #f1f1f1 !important;
  color: #333 !important;
  border: 1px solid #ccc !important;
  border-radius: 6px;
  padding: 6px 12px;
}

button.dt-button.buttons-columnVisibility:hover,
button.dt-button.buttons-columnVisibility:focus {
  background-color: #006ddf !important;
  color: white !important;
  border-color: #006ddf !important;
}

/* Styl rozwijanego menu z listą kolumn */
div.dt-button-collection {
  background-color: #ffffff !important;
  border: 1px solid #ccc !important;
  border-radius: 8px !important;
  color: #333 !important;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  min-width: 180px;
  padding: 4px 0;
}

/* Styl opcji w rozwijanym menu */
div.dt-button-collection .dt-button {
  background: transparent !important;
  color: #1a1a1a !important;
  border: none !important;
  text-align: left;
  padding: 8px 16px !important;
  font-size: 14px;
  width: 100%;
}

div.dt-button-collection .dt-button:hover,
div.dt-button-collection .dt-button:focus {
  background-color: #006ddf !important;
  color: #fff !important;
}

/* Styl checkboxów */
div.dt-button-collection input[type="checkbox"] {
  accent-color: #006ddf;
}

.dataTables_length {
  color: #333;
}

.dataTables_length select {
  background-color: #ffffff;
  color: #000000;
  border: 1px solid #ccc;
  padding: 4px 8px;
  border-radius: 6px;
}

/* Opcje listy */
.dataTables_length select option {
  background-color: #ffffff;
  color: #000000;
}

/* Wybrana opcja */
.dataTables_length select option:checked,
.dataTables_length select option[selected] {
  background-color: #e6f2ff;
  color: #000000;
}

.btn-sprawdz {
  display: inline-block;
  padding: 6px 12px;
  background-color: #006ddf;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s ease-in-out;
}

.btn-sprawdz:hover {
  background-color: #0051b3;
}

.info_account {
  width: 100%;
  border-collapse: collapse;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 30px;
  background-color: #ffffff;
  font-size: 14px;
}

.info_account th,
.info_account td {
  padding: 10px 15px;
  border-bottom: 1px solid #e0e0e0;
  text-align: left;
  color: #333;
}

.info_account thead tr {
  background-color: #f0f0f0;
  color: #000;
  font-weight: 600;
  font-size: 15px;
}

.info_account tbody tr:hover {
  background-color: #f5faff;
}

.info_account tbody tr:last-child td {
  border-bottom: none;
}

.info_account button {
  background-color: #006ddf;
  border: none;
  color: white;
  padding: 6px 14px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 13px;
  min-width: 75px;
}

.info_account button:hover {
  background-color: #004fa6;
}

.info_account button.btn-danger {
  background-color: #d9534f;
}

.info_account button.btn-danger:hover {
  background-color: #b52b27;
}

.info_account select,
.info_account input[type="number"],
.info_account input[type="email"] {
  padding: 5px 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 13px;
  width: 100%;
  box-sizing: border-box;
  background-color: #fff;
  color: #333;
}

.form-inline {
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: 300px;
}

h2, h3 {
  color: #333;
  font-weight: 600;
  margin-bottom: 10px;
}

.filter-container {
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-container label {
  font-weight: bold;
  color: #333;
}

.filter-container select,
.filter-container input {
  background-color: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #ccc !important;
  border-radius: 6px !important;
  padding: 8px 12px !important;
  font-size: 14px !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1) !important;
  transition: border 0.2s ease, box-shadow 0.2s ease;
  outline: none !important;
}

.filter-container input::placeholder {
  color: #999 !important;
}

.filter-container select:focus,
.filter-container input:focus {
  border: 1px solid #00aaff !important;
  box-shadow: 0 0 5px rgba(0, 170, 255, 0.4) !important;
  background-color: #f9f9f9 !important;
}

#hintChart {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 16px;
}

.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader_login {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-top: 4px solid #0062b7;
  border-radius: 50%;
  box-shadow: 0 0 3px rgba(0, 98, 183, 0.5), 0 0 7px rgba(0, 98, 183, 0.3);
  width: 100px;
  height: 100px;
  animation: spin 0.8s linear infinite;
}

.sort-arrow {
  margin-left: 4px;
  font-size: 12px;
  color: #666;
  user-select: none;
}

th {
  white-space: nowrap;
}

.loader {
  border: 8px solid #e0e0e0;
  border-radius: 50%;
  border-top: 8px solid #3498db;
  width: 120px;
  height: 120px;
  animation: spin 0.4s linear infinite;
}

@keyframes colorText {
  from { color: #ffffff; }
  to { color: #006ddf; }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


  #confirmModal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none; /* start hidden */
    justify-content: center;
    align-items: center;
  }

  #confirmModal.active {
    display: flex; /* show only when class "active" is added */
  }

  #confirmModal .modal-box {
    background: white;
    padding: 20px 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  }

  #editModal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
  }

  #editModal.active {
    display: flex;
  }

  #editModal .modal-box {
    background: white;
    padding: 20px 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  }

  .modal {
      position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    }

    .modal.active {
      display: flex;
    }

    .modal-box {
      background: white;
      padding: 20px 30px;
      border-radius: 10px;
      text-align: center;
      max-width: 400px;
      width: 100%;
      box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    }

.button_edit{
  position: absolute;
              top: 8px;
              right: 8px;
              background-color: #27ae60;
              color: white;
              border: none;
              border-radius: 6px;
              cursor: pointer;
              padding: 6px 15px;
              font-size: 12px;
              font-weight: 700;
              line-height: 1;
              z-index: 10;
}

@media (min-width: 600px) {
    .card {
      flex: 1 1 calc(33.333% - 10px);
    }

    form#addCostForm input,
    form#addCostForm select,
    form#addCostForm button {
      width: auto;
    }

    form#addCostForm {
      flex-wrap: nowrap;
    }
  }

  .modal {
    position: fixed;
    top: 0;
    left: 0;
    right:0;
    bottom:0;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(0,0,0,0.4);
    z-index: 1000;
  }

  .modal.active {
    display: flex;
  }

  .modal-box {
    background: white;
    padding: 20px;
    max-width: 90%;
    width: 400px;
    border-radius: 12px;
  }



  /* Hero Responsive */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding: 40px 20px;
    text-align: center;
  }
  .section-left,
  .section-right {
    max-width: 100%;
  }
  .section-left h1 {
    font-size: 2.3rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 20px 10px;
  }

  .section-left h1 {
    font-size: 2rem;
  }

  .section-left p {
    font-size: 1rem;
  }

  .login-box {
    padding: 28px;
  }

  .login-box h2 {
    font-size: 1.5rem;
  }

  .input-box input[type="submit"] {
    font-size: 1rem;
    padding: 12px 0;
  }
}


@media (max-width: 768px) {
  .navigation-toggle {
    display: flex;
  }
  .menu {
    flex-direction: column;
    width: 100%;
    display: none;
    background-color: #fff;
    margin-top: 10px;
    border-top: 1px solid #e0e0e0;
  }
  #input-toggle:checked ~ .menu {
    display: flex;
  }
  .menu li {
    text-align: center;
  }
}

@media (max-width: 1024px) {
  .container {
    flex-direction: column;
  }

  nav {
    width: 100%;
    position: static;
    border-right: none;
    border-bottom: 1px solid #d0dbf9;
  }

  main {
    padding: 20px;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (max-width: 600px) {
  nav {
    padding: 10px;
    gap: 10px;
  }

  nav h2 {
    font-size: 12px;
  }

  nav .menu-item {
    font-size: 13px;
    padding: 8px 10px;
  }

  main {
    padding: 16px;
  }
}

@media (max-width: 768px) {
  .top-stats {
    flex-direction: column;
    gap: 15px;
  }
  .top-stats .card {
    flex: 1 1 100%;
    min-width: auto;
  }
}
@media (max-width: 480px) {
  .form-input {
    font-size: 11px; /* trochę większy tekst na małych ekranach */
  }
}

/* Standardowa tabela */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 10px;
  border-bottom: 1px solid #ccc;
  text-align: center;
}

thead tr {
  background: #7aa7ff;
  color: #fff;
}

/* Responsywna tabela - układ pionowy na małych ekranach */
/* Styl mobilny */
@media (max-width: 768px) {
  table, thead, tbody, th, td, tr {
    display: block;
    width: 97%;
  }

  thead {
    display: none;
  }

  tr {
    margin-bottom: 20px;
    background: #f9faff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }

  td {
    position: relative;
    padding: 12px 15px 12px 45%;
    text-align: left;
    border: none;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    box-sizing: border-box;
    word-break: break-word;
  }

  td::before {
    content: attr(data-label);
    position: absolute;
    left: 15px;
    top: 12px;
    font-weight: 600;
    color: #3c6de0;
    white-space: nowrap;
    font-size: 13px;
  }

  td:last-child {
    border-bottom: none;
  }
}

/* Responsywność */
@media (max-width: 480px) {
  .cost-button {
    font-size: 13px;
    padding: 2px 4px;
  }
}