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

/* Płynne przewijanie dla całej strony */
html {
  scroll-behavior: smooth;
}

body {
  background-color: #121212;
  color: white;
}

/* --- Nagłówek --- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 50px;
  background-color: #181818;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #9eb942;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center; /* Wyśrodkowanie */
  flex-grow: 1; /* Rozciągnięcie na całą szerokość */
}

nav ul li {
  position: relative;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  padding-bottom: 5px;
  transition: color 0.3s;
  padding: 20px;
}

.navi-znikawi {
  display: block; /* Na większych ekranach nav jest widoczna */
}

@media (max-width: 768px) {
  .navi-znikawi {
    display: none; /* Na urządzeniach o szerokości mniejszej niż 768px nav będzie ukryta */
  }
}

/* Pasek pod menu po najechaniu */
nav ul li a::after {
  content: "";
  display: block;
  width: 0;
  height: 3px;
  background-color: #9eb942;
  transition: width 0.4s;
  position: absolute;
  left: 0;
  bottom: -2px;
}

nav ul li a:hover {
  color: #9eb942;
}

nav ul li a:hover::after {
  width: 100%;
}

/* --- Logowanie i rejestracja --- */
.auth {
  display: flex;
  gap: 10px;
}



.btn {
  background-color: #9eb942 !important;       /* Stały kolor tła */
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: inline-block;
  text-align: center;
  cursor: pointer;
  border: none;
}

.btn-back {
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: inline-block;
  text-align: center;
  cursor: pointer;
  border: none;
  /*margin-left: 118px;*/
}

/* Usuwa domyślny wygląd dla buttonów */
button.btn {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: inherit;
  font-family: inherit;
}

.btn:hover {
  background-color: #8ca336 !important;
}

.btn-back:hover {
  background-color: #121212;
  color: #9eb942;
  
}

.btn.register {
  background-color: white;
  color: #ffffff;
}

.register:hover {
  background-color: #9eb942;
  color: white;
}

/* --- Sekcja Hero --- */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 50px;
  overflow: hidden;
}

.background-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.background-img, .background-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero .content {
  background: rgba(0, 0, 0, 0.85);
  padding: 30px;
  border-radius: 10px;
  max-width: 600px;
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 10px;
  color: #9eb942;
}

.hero p {
  font-size: 18px;
  margin-bottom: 20px;
}

/* --- Sekcja O Aplikacji --- */
.about {
  padding: 85px 0px;
  text-align: center;
  background-color: #1e1e1e;
  margin-bottom: 20px;
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  max-width: 1000px;
  margin: auto;
  margin-bottom: 10px;
}

.about-img, .contact-img {
  width: 300px;
  border-radius: 10px;
}

/* --- Sekcja Kontakt --- */
.contact {
  background-color: #121212;
  padding: 80px 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: left;
}

.contact-container {
  display: flex;
  flex-direction: row-reverse; /* Lustrzane odbicie: grafika po lewej */
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  width: 100%;
}

.contact-image {
  flex: 1;
  margin-right: 30px;
}

.contact-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.contact-text {
  flex: 1;
  color: white;
}

.contact-text h2 {
  color: #9eb942;
  font-size: 36px;
  margin-bottom: 20px;
}

.contact-text p {
  font-size: 18px;
  margin-bottom: 10px;
}

.contact-text strong {
  color: #9eb942;
}

/* --- Stopka --- */
footer {
  text-align: center;
  padding: 20px;
  background-color: #181818;
  margin-top: 50px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  max-width: 1000px;
  margin: auto;
  text-align: left;
}

.footer-section {
  flex: 1;
}

.footer-section h3 {
  color: #9eb942;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li a {
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.footer-section ul li a:hover {
  color: #9eb942;
}

.footer-bottom {
  margin-top: 20px;
  font-size: 14px;
  color: #9eb942;
}

/* --- Responsywność --- */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  .about-content,
  .contact-content,
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .about-img,
  .contact-img {
    width: 300px;
    border-radius: 10px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

 

  #prof-btn {
    padding: 10px;
  }

  #work-list {
    padding-top: 6rem;
  }

  .section-list-work {
    padding-top: 6rem;
  }

  #contact-img {
    display: none;
  }
}

   .section-list-work {
    padding-top: 100px;
   }

/* --- Kontener logowania --- */
.login-container, .auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #121212;
}

/* --- Okno logowania --- */
.login-box, .auth-box {
  background: #1e1e1e;
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  width: 100%;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  margin-top: 190px;
}

.login-box h2, .auth-box h2 {
  color: #9eb942;
  margin-bottom: 20px;
}

/* --- Grupy formularza --- */
.form-group {
  margin-bottom: 15px;
  text-align: left;
}

.form-group label {
  display: block;
  color: #9eb942;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}



/* --- Pola wejściowe --- */
input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #9eb942;
  border-radius: 8px;
  background: #2a2a2a;
  color: white;
  font-size: 16px;
  line-height: 1.5;
}

/* Specyficzne style dla inputów w formularzach */
.login-box input[type="text"],
.login-box input[type="password"],
.login-box input[type="email"],
.auth-box input[type="text"],
.auth-box input[type="password"],
.auth-box input[type="email"],
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="number"] {
  width: 100%;
  padding: 14px 16px !important;
  border: 1px solid #9eb942;
  border-radius: 8px;
  background: #2a2a2a;
  color: white;
  font-size: 16px;
  line-height: 1.5;
}

input:focus {
  outline: none;
  border-color: #8ca336;
  box-shadow: 0 0 0 3px rgba(158, 185, 66, 0.1);
}

textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #9eb942;
  border-radius: 8px;
  background: #2a2a2a;
  color: white;
  font-size: 16px;
  line-height: 1.5;
  font-family: inherit;
}

textarea:focus {
  outline: none;
  border-color: #8ca336;
  box-shadow: 0 0 0 3px rgba(158, 185, 66, 0.1);
}

/* Selecty - większe i lepsze */
select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #9eb942;
  border-radius: 8px;
  background: #2a2a2a;
  color: white;
  font-size: 16px;
  line-height: 1.5;
  cursor: pointer;
}

select:focus {
  outline: none;
  border-color: #8ca336;
  box-shadow: 0 0 0 3px rgba(158, 185, 66, 0.1);
}

/* --- Przycisk logowania i rejestracji --- */
.btn-login, .btn-register {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 22px; /* Dodany większy odstęp nad przyciskiem */
  box-shadow: 0 2px 8px rgba(158, 185, 66, 0.2);
}

.btn-login:hover, .btn-register:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(158, 185, 66, 0.3);
}

.btn-login {
  background-color: #9eb942;
}

.btn-login:hover {
  background-color: #8ca336;
}

.btn-register {
  background-color: #9eb942;
}

.btn-register:hover {
  background-color: #8ca336;
}

/* --- Linki rejestracji/logowania --- */
.register-link, .auth-box a {
  color: #9eb942;
  text-decoration: none;
}

.register-link:hover, .auth-box a:hover {
  text-decoration: underline;
}

/* --- Profile --- */
#profile {
  padding-top: 100px;
  padding-bottom: 20px;
}

.profile-image.mt-5 {
  margin-top: 5px !important;
}

.user-color {
  color: #9eb942;
  font-size: 18px;
}

.user-info-color {
  color: white;
}

#prof-btn {
  padding: 20px;
}

@media (max-width: 768px) {
  #prof-btn {
    padding: 10px;
  }
  #profile {
    padding-top: 140px;
  }
}

#masz-konto {
  margin-top: 10px;
}

#zapom-haslo {
  padding-top: 30px;
  font-size: small;
}


/* Dopasowanie Select2 do ciemnego motywu */
.select2-container--default .select2-selection--single {
  background-color: #2a2a2a;
  border: 1px solid #9eb942;
  border-radius: 5px;
  height: 42px;
  color: white;
  font-size: 16px;
  padding: 5px 10px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: white;
  line-height: 32px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px;
  right: 10px;
}

.select2-dropdown {
  background-color: #2a2a2a;
  color: white;
  border: 1px solid #9eb942;
}

.select2-results__option {
  padding: 8px 12px;
  color: white;
}

.select2-results__option--highlighted {
  background-color: #9eb942;
  color: #121212;
}

.select2-container--default .select2-results__option--selected {
  background-color: #8ca336;
  color: white;
}

.select2-container {
  width: 100% !important;
}

  /* Styl formularza dodawania ćwiczeń*/
.form-add {
  background-color: #181818;
  padding: 30px 50px;
  border-radius: 10px;
  width: 100%;
  max-width: 400px;
  margin: 90px auto;
  
}

@media (max-width: 768px) {
  .form-add {
    margin: 90px auto;
    margin-bottom: 20px;
  }
}




/* Styl dla poszczególnych pól formularza */
.form-add[type="text"],
.form-add[type="email"],
.form-add textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #9eb942;
  background: #2a2a2a;
  color: white;
  font-size: 16px;
  font-weight: bold;
}
.form-add p{
  padding: 5px;
}

/* Styl dla etykiet formularza */
.formularz label {
  font-weight: bold;
}



/* --- Core/css/style.css --- */

h1 {
  color: #9eb942;
  text-align: center;
  margin-bottom: 20px;
}

#main-dash {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 90px;
}

.profile {
  background-color: #1e1e1e;
  flex: 1 1 250px;
  max-width: 350px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#profile-jpg {
  height: 100px;
  background-color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

#profile-info {
  background-color: #2a2a2a;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
}

#profile-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#burger-toggle {
  background-color: #9eb942;
  color: #121212;
  border: none;
  padding: 10px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background 0.3s;
}

#burger-toggle:hover {
  background-color: #b1d44f;
}

#menu-buttons {
  display: none;
  flex-direction: column;
}



#menu-buttons.menu-open {
  /* display ustawiane z JS */
  /* height ustawiane dynamicznie z JS */
}

#menu-buttons button {
  margin-top: 10px;
  background-color: #2a2a2a;
  color: white;
  border: 1px solid #333;
  border-radius: 5px;
  padding: 8px;
  text-align: left;
  cursor: pointer;
  transition: background 0.3s;
}

#menu-buttons button:hover {
  background-color: #3a3a3a;
}

.hidden {
  display: none;
}

#profile-menu button:hover {
  background-color: #b1d44f;
}

.content {
  background-color: #1e1e1e;
  flex: 2 1 600px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.85);
  max-width: 1500px;
}

.content h2 {
  color: #ffffff;
  margin-bottom: 20px;
  font-size: 24px;
  text-align: center;
}

.stats {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-bottom: 30px;
  gap: 15px;
}

.stat-box {
  background-color: #2a2a2a;
  padding: 20px;
  border-radius: 10px;
  flex: 1 1 150px;
  min-width: 150px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  margin: 10px;
}

.stat-box h3 {
  margin-bottom: 10px;
  color: #cccccc;
}

.stat-box p {
  font-size: 24px;
  color: #9eb942;
}

.charts {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: stretch;
}

.chart-container {
  flex: 1 1 100%;
  max-width: 700px;
  background-color: #1e1e1e;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.chart-container canvas {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
}

#add-exercise {
  background-color: white;
  color: #121212;
  border: none;
  padding: 10px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  text-align: left;
  margin-bottom: 10px;
  transition: background 0.3s, color 0.3s;
}

#add-exercise:hover {
  background-color: #e0e0e0;
  color: black;
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  h1 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  #main-dash {
    flex-direction: column;
    gap: 10px;
  }

  .profile, .content {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 15px;
    margin-top: 20px;
  }

  .charts {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .chart-container {
    width: 100%;
    padding: 10px;
  }

  .stat-box {
    flex: 1 1 100%;
    width: 90%;
    padding: 15px;
  }

  /* 👇 ZWIĘKSZONE PRZYCISKI */
  #add-exercise,
  #burger-toggle,
  #menu-buttons button {
    font-size: 1.1rem;
    padding: 14px 12px;
    border-radius: 8px;
    width: 100%;
  }

  /* Zwiększony odstęp między przyciskami */
  #menu-buttons button {
    margin-top: 12px;
  }

  .content h2 {
    font-size: 1.2rem;
  }
}


/* burger menu mobilki */

#mobile-header {
  display: none;
}

@media (max-width: 768px) {
  #mobile-header {
    display: block;
    position: relative; /* dla absolutnego menu */
    background-color: #181818;
    position: fixed;
  }

  .mobile-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
  }

  .mobile-header-container .logo img {
    height: 50px;
    display: block;
    margin: 0 auto;
  }

  .burger {
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: white;
  }

  .mobile-nav {
    display: none; /* domyślnie ukryte menu */
    position: absolute;
    top: 80px; /* wysokość headera */
    left: 0;
    width: 100%;
    background-color: #181818e6; /* lekko przezroczyste czarne */
    box-sizing: border-box;
    z-index: 1000;
    font-family: Arial, sans-serif;
  }

  .mobile-nav.show {
    display: block;
  }

  .mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center; 
  }

  .mobile-nav li {
    width: 100%; 
    padding: 10px 0;
    text-align: center; /* dodatkowe wycentrowanie tekstu */
  }

  .mobile-nav li:last-child {
    border-bottom: none;
  }

  .mobile-nav li a {
    display: block;
    color: white;
    text-decoration: none;
    font-size: 18px;
    width: 100%;
  }

  header {
    display: none;
  }

  .auth-mobile {
  display: none; 
  justify-content: center; 
  gap: 40px; 
  padding-bottom: 10px;
}

.mobile-nav.show .auth-mobile {
  display: flex; 
}

.auth-mobile a.btn {
  display: inline-block;
  padding: 8px 16px; 
  font-size: 14px;   
  width: auto;       
  min-width: 100px;  
  text-align: center;
  color: white;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  font-family: Arial, sans-serif;
  font-weight: 150;
}

.auth-mobile a.btn.register {
  background-color: #181818e6;
  color: white;
  font-family: Arial, sans-serif;
  font-weight: 150;
}

.menu-special a {
  padding: 10px;
}

.menu-special li {
  width: 100%;
  border-radius: 0 !important;
}

}

@media (min-width: 769px) {
  .mobile-nav {
    display: none !important;
  }
}


input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
  }

.login-box a {
  color: #9eb942;
  text-decoration: none;
  transition: color 0.2s;
}
.login-box a:hover {
  color: #7a942e;
  text-decoration: underline;
}
