/* style.css */

/* Ogólne ustawienia */
body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  background-color: #121212;
  color: #ffffff;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  color: #fff;
}

ul {
  list-style-type: none;
  padding: 0;
}

* {
  box-sizing: border-box;
  transition: all 0.3s ease;
}
/* Upewnij się, że html i body zajmują pełną wysokość */

/* Hide scrollbar for Chrome, Safari and Opera */
nav::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
nav {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Menu boczne */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  height: 100%;
  background-color: #1e1e1e;
  border-right: 1px solid #333;
}

.sidebar nav ul {
  /*margin-top: 60px;*/
}

.sidebar nav li {
  margin-bottom: 20px;
}

.sidebar nav a {
  display: block;
  padding: 10px 20px;
  color: #bbb;
  font-size: 16px;
}

.sidebar nav a:hover,
.sidebar nav a.active {
  background-color: #333;
  color: #fff;
  border-left: 4px solid #6200ee;
}

/* Główna zawartość */
.content {
  margin-left: 200px;
  padding: 40px;
}

.content h1 {
  font-weight: 300;
  margin-bottom: 40px;
}

/* Stylizacja instrukcji */
.instruction-box {
  background-color: #1e1e1e;
  border: 1px solid #333;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 40px;

}

.instruction-box p {
  margin: 0;
  font-size: 14px;
  color: #bbb;
  text-align: center;
}
.instruction-box .green {
  margin: 0;
  font-size: 14px;
  color: #bbb;
  text-align: center;
  color: green;
}

/* Formularz z przedziałem dat i menu rozwijanym */
.date-range-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 40px;
}

.date-range-form .form-group {
  flex: 1;
  min-width: 200px;
}

.date-range-form label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

.date-range-form input,
.date-range-form select {
  width: 100%;
  padding: 10px;
  border: 1px solid #444;
  background-color: #1e1e1e;
  color: #fff;
  border-radius: 4px;
}

.date-range-form input::placeholder,
.date-range-form select {
  color: #888;
}

.date-range-form input:focus,
.date-range-form select:focus {
  outline: none;
  border-color: #6200ee;
}

.date-range-form .btn {
  padding: 10px 20px;
  background-color: #1e1e1e;
  color: #fff;
  border: 1px solid #444;
  border-radius: 4px;
  cursor: pointer;
}

.date-range-form .btn:hover {
  background-color: #333;
  border-color: #333;
}

/* Formularz z przedziałem dat i menu rozwijanym */
.date-range-form2 {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 20px;
}

.date-range-form2 .form-group {
  flex: 1;
  min-width: 200px;
}

.date-range-form2 label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

.date-range-form2 input,
.date-range-form2 select {
  width: 100%;
  padding: 10px;
  border: 1px solid #444;
  background-color: #1e1e1e;
  color: #fff;
  border-radius: 4px;
}

.date-range-form2 input::placeholder,
.date-range-form2 select {
  color: #888;
}

.date-range-form2 input:focus,
.date-range-form2 select:focus {
  outline: none;
  border-color: #6200ee;
}

.date-range-form2 .btn {
  padding: 10px 20px;
  background-color: #1e1e1e;
  color: #fff;
  border: 1px solid #444;
  border-radius: 4px;
  cursor: pointer;
}

.date-range-form2 .btn:hover {
  background-color: #333;
  border-color: #333;
}

/* Lista opcji */
.options-list li {
  padding: 15px;
  background-color: #1e1e1e;
  margin-bottom: 10px;
  border-radius: 4px;
  border: 1px solid #333;
}

.options-list li:hover {
  background-color: #333;
}

/* Formularz logowania */
.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  opacity: 0;
  animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.login-container h1 {
  font-weight: 300;
  margin-bottom: 40px;
}

.login-form {
  width: 300px;
  background-color: #1e1e1e;
  padding: 40px;
  border-radius: 8px;
  border: 1px solid #333;
}

.login-form .form-group {
  margin-bottom: 20px;
}

.login-form label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

.input-icon {
  position: relative;
}

.input-icon i {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  color: #888;
}

.input-icon input {
  width: 100%;
  padding: 10px 10px 10px 35px;
  border: 1px solid #444;
  background-color: #121212;
  color: #fff;
  border-radius: 4px;
}

.input-icon input::placeholder {
  color: #888;
}

.input-icon input:focus {
  outline: none;
  border-color: #6200ee;
}

.login-form .btn {
  width: 100%;
  padding: 10px;
  background-color: #1e1e1e;
  color: #fff;
  border: 1px solid #444;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.login-form .btn:hover {
  background-color: #333;
  border-color: #333;
}

.forgot-password {
  display: block;
  margin-top: 20px;
  color: #bbb;
  text-decoration: none;
  font-size: 14px;
}

.forgot-password:hover {
  color: #fff;
}

/* Efekt focus dla inputów */
.login-form input:focus {
  outline: none;
  border-color: #6200ee;
}
.generated-reports {
  margin-top: 40px;
}

.generated-reports h2 {
  font-weight: 300;
  margin-bottom: 20px;
}

.reports-list {
  list-style: none;
  padding: 0;
}

.reports-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background-color: #1e1e1e;
  margin-bottom: 10px;
  border-radius: 4px;
  border: 1px solid #333;
}

.reports-list li span {
  font-size: 16px;
}

.reports-list li .btn {
  padding: 8px 16px;
  background-color: #1e1e1e;
  color: #fff;
  border: 1px solid #444;
  border-radius: 4px;
  cursor: pointer;
}

.reports-list li .btn:hover {
  background-color: #333;
  border-color: #333;
}

/* Responsywność */
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }

  .sidebar nav ul {
    margin-top: 20px;
  }

  .content {
    margin-left: 0;
    padding: 20px;
  }

  .date-range-form {
    flex-direction: column;
  }

  .date-range-form .form-group {
    margin-right: 0;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .login-form {
    width: 90%;
    padding: 20px;
  }

  .login-container h1 {
    font-size: 24px;
  }
}
/* Stylizacja zakładek */
.tab-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.tab {
  padding: 10px 20px;
  cursor: pointer;
  background-color: #1e1e1e;
  color: #fff;
  border: 1px solid #444;
  border-radius: 4px;
  margin-right: 5px;
  transition: background-color 0.3s;
}

.tab:hover {
  background-color: #333;
}

.tab.active {
  background-color: #6200ee;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Lista punktów */
#pointsList li {
  display: flex;
  align-items: center;
  padding: 15px;
  background-color: #1e1e1e;
  margin-bottom: 10px;
  border-radius: 4px;
  border: 1px solid #333;
  transition: background-color 0.3s, border-color 0.3s;
}

#pointsList li:hover {
  background-color: #333;
  border-color: #444;
}

.point-name {
  flex: 1;
  margin-right: 20px;
  color: #fff;
}

.status {
  width: 100px;
  text-align: center;
}

.status-connected {
  color: #28a745;
}

.status-disconnected {
  color: #dc3545;
}

#pointsList li .btn {
  padding: 8px 16px;
  background-color: #1e1e1e;
  color: #fff;
  border: 1px solid #444;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s;
}

#pointsList li .btn:hover {
  background-color: #555;
  border-color: #555;
}

/* Stylizacja formularza zmiany hasła */
#changePasswordForm .form-group {
  margin-bottom: 20px;
}

#changePasswordForm label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

#changePasswordForm input {
  width: 100%;
  padding: 10px;
  border: 1px solid #444;
  background-color: #121212;
  color: #fff;
  border-radius: 4px;
}

#changePasswordForm input:focus {
  outline: none;
  border-color: #6200ee;
}

#changePasswordForm .btn {
  padding: 10px 20px;
  background-color: #1e1e1e;
  color: #fff;
  border: 1px solid #444;
  border-radius: 4px;
  cursor: pointer;
}

#changePasswordForm .btn:hover {
  background-color: #333;
  border-color: #333;
}
/* Stylizacja przycisku */
#loadPointsBtn {
  padding: 10px 20px;
  background-color: #6200ee;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#loadPointsBtn:hover {
  background-color: #5300d6;
}

/* Stylizacja spinnera */
.spinner {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #6200ee;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 2s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#loadingAnimation {
  text-align: center;
  margin-top: 20px;
}

/* Stylizacja tekstu */
#loadingAnimation p {
  margin-top: 10px;
  color: #bbb;
}

#pointsContainer {
  align-items: center;    /* Centrowanie poziome */
}

/* Stylizacja tła modalnego */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Półprzezroczyste czarne tło */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000; /* Wysoki indeks, aby przykryć inne elementy */
}

/* Stylizacja okna modalnego */
.modal {
  background-color: #1e1e1e;
  padding: 20px;
  border: 1px solid #333;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  text-align: center;
}

.modal p {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 20px;
}

/* Stylizacja przycisków w modalu */
.modal .btn {
  padding: 10px 20px;
  background-color: #6200ee;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin: 0 5px;
  transition: background-color 0.3s, transform 0.2s;
}

.modal .btn:hover {
  background-color: #5300d6;
  transform: scale(1.05);
}

.modal .btn-secondary {
  background-color: #444;
}

.modal .btn-secondary:hover {
  background-color: #555;
}

/* Stylizacja przycisków */
.btn-secondary {
  background-color: #444;
}

.btn-secondary:hover {
  background-color: #555;
}
/* Stylizacja nagłówka z listą punktów */
.points-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.points-heading .btn {
  padding: 10px 20px;
  background-color: #6200ee;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.points-heading .btn:hover {
  background-color: #5300d6;
}

.points-heading .btn i {
  margin: 0;
}


/* Aukcje */

.auction-item {
  display: flex;
  align-items: center;
  padding: 15px;
  background-color: #1e1e1e;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #333;
  transition: background-color 0.3s;
}

.auction-item:hover {
  background-color: #333;
}

.auction-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-right: 20px;
  transition: background-color 0.3s;
}

.auction-info {
  flex: 1;
}

.auction-name {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.auction-location,
.auction-end-date {
  margin: 5px 0;
  color: #bbb;
}

.auction-btn {
  padding: 10px 20px;
  background-color: #6200ee;
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.auction-btn:hover {
  background-color: #5300d6;
}

/* Paginacja */
.pagination {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.pagination-link {
  margin: 0 5px;
  padding: 10px 15px;
  background-color: #444;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}

.pagination-link.active {
  background-color: #6200ee;
}

.pagination-link:hover {
  background-color: #555;
}

/* Kontrolki sortowania i filtrowania */
.auction-controls {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  gap: 20px;
}

.auction-controls label {
  font-weight: 700;
  margin-right: 5px;
}

.auction-controls select {
  padding: 5px 10px;
  background-color: #1e1e1e;
  color: #fff;
  border: 1px solid #444;
  border-radius: 4px;
}

.auction-controls select:focus {
  outline: none;
  border-color: #6200ee;
}
.dots {
  margin: 0 8px;
  color: #888;
  font-size: 16px;
  line-height: 2;
}