* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f0fff0;
  color: #222;
}

/* Navbar */
.navbar {
  background-color: #d4edda;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 30px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.logo {
  height: 50px;
}
nav a, nav button {
  margin-left: 15px;
  font-weight: 600;
  font-size: 1rem;
  color: #222;
  text-decoration: none;
}
nav button {
  border: none;
  border-radius: 20px;
  padding: 8px 20px;
  cursor: pointer;
  color: #fff;
  font-weight: 700;
}
.btn-green {
  background: linear-gradient(90deg, #4caf50, #087f23);
}
.btn-blue {
  background: linear-gradient(90deg, #2196f3, #0069c0);
}
.btn-red {
  background: #ff4c4c;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  color: white;
}

/* Baner na stronie głównej */
.banner {
  height: 320px;
  background: url('../img/banner.jpg') no-repeat center center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
  font-size: 3rem;
  font-weight: 700;
}

/* Cechy */
.features {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 40px 0;
}
.feature {
  border-radius: 15px;
  padding: 25px 20px;
  font-weight: 700;
  font-size: 1.3rem;
  color: white;
  text-align: center;
  width: 150px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.feature.green {
  background-color: #388e3c;
}
.feature.dark-green {
  background-color: #2e7d32;
}
.feature.blue {
  background-color: #0288d1;
}

/* Sekcja jak to działa */
.how-it-works {
  max-width: 900px;
  margin: 40px auto 60px auto;
  display: flex;
  gap: 30px;
  padding: 0 15px;
  align-items: center;
}
.image-left img {
  border-radius: 20px;
  width: 320px;
}
.text-right {
  flex: 1;
  border: 3px solid #4caf50;
  border-radius: 20px;
  padding: 25px 30px;
  font-size: 1.1rem;
}
.text-right h2 {
  margin-top: 0;
  color: #4caf50;
}
.text-right ul {
  padding-left: 20px;
}

/* Partnerzy - slider */
.partners {
  background-color: #d4edda;
  padding: 25px 0;
  overflow: hidden;
}
.slider {
  display: flex;
  gap: 40px;
  animation: slide 20s linear infinite;
  padding-left: 30px;
}
.slider img {
  height: 70px;
  object-fit: contain;
}

@keyframes slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Formularze */
form {
  max-width: 420px;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
input[type="email"], input[type="password"], input[type="text"], input[type="date"], input[type="time"], textarea {
  padding: 12px 15px;
  font-size: 1rem;
  border-radius: 12px;
  border: 2px solid #4caf50;
  transition: border-color 0.3s ease;
}
input:focus, textarea:focus {
  border-color: #087f23;
  outline: none;
}
textarea {
  resize: vertical;
  min-height: 90px;
}

button {
  font-size: 1.1rem;
  padding: 12px 20px;
  border: none;
  border-radius: 20px;
  color: white;
  cursor: pointer;
}
button.btn-green {
  background: linear-gradient(90deg, #4caf50, #087f23);
}
button.btn-blue {
  background: linear-gradient(90deg, #2196f3, #0069c0);
}

/* Panel */
.panel-header {
  max-width: 900px;
  margin: 25px auto 10px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.panel-header strong {
  color: #2e7d32;
}
.wydarzenia {
  max-width: 900px;
  margin: 0 auto 60px auto;
  padding: 0 15px;
}
.wydarzenia table {
  width: 100%;
  border-collapse: collapse;
}
.wydarzenia th, .wydarzenia td {
  padding: 10px 15px;
  border: 1px solid #ccc;
  text-align: left;
}
.wydarzenia th {
  background-color: #4caf50;
  color: white;
}
.actions a {
  margin-right: 12px;
  text-decoration: none;
  color: #2196f3;
  font-weight: 700;
}
.actions a.delete {
  color: #ff4c4c;
}

/* Komunikaty błędów */
.error {
  color: #ff4c4c;
  max-width: 420px;
  margin: 10px auto;
  font-weight: 700;
}

/* Responsywność */
@media(max-width: 650px) {
  .features {
    flex-direction: column;
    align-items: center;
  }
  .how-it-works {
    flex-direction: column;
  }
  .image-left img {
    width: 100%;
  }
}
