/* Reset i baza */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Maven Pro', sans-serif;
}
body {
  background: linear-gradient(to bottom, #F0F8FF, #E0ECFF);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Pasek górny */
.top-bar {
  width: 100%;
  background: #003366;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}
.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}
.logo { 
  height: 40px; 
  width: auto; 
  display: block; 
  object-fit: contain;
}
.brand-text { display: none; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 16px;
}
.nav-link {
  color: #fff;
  text-decoration: none;
  opacity: 0.95;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background .2s, transform .1s;
}
.nav-link:hover { background: #0055A5; transform: translateY(-1px); }
.nav-link.active {
  background: #007bff;
  color: #fff;
}
.nav-link.active:hover {
  background: #0056b3;
}

/* Nav link with badge positioning */
.nav-link-with-badge {
  position: relative;
}

/* Notification badge for nav links */
.nav-badge {
  position: absolute;
  bottom: -4px;
  right: -6px;
  background: #dc3545;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  border: 1.5px solid #003366;
}

.nav-badge.visible {
  display: flex;
}

.user-area {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-area form {
  display: inline-flex;
  margin: 0;
  padding: 0;
}
.user-name { opacity: .9; }

.btn {
  background: #003366;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s, transform .1s;
}
.btn:hover { background: #0055A5; transform: scale(1.03); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-outlined {
  background: transparent;
  border: 1.5px solid #E0ECFF;
  color: #E0ECFF;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s, transform .1s;
}
.btn-outlined:hover {
  background: rgba(224, 236, 255, 0.15);
  transform: scale(1.03);
}

/* Ensure consistent logout button styling across all pages */
.top-bar .btn-outlined,
.user-area .btn-outlined {
  background: transparent !important;
  border: 1.5px solid #E0ECFF !important;
  color: #E0ECFF !important;
  padding: 7px 12px !important;
  border-radius: 8px !important;
  font-family: 'Maven Pro', sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: background .2s, transform .1s !important;
}
.top-bar .btn-outlined:hover,
.user-area .btn-outlined:hover {
  background: rgba(224, 236, 255, 0.15) !important;
  transform: scale(1.03) !important;
}

/* Layout strony */
.page { flex: 1; display: flex; justify-content: center; }
.container {
  width: 100%;
  max-width: 1200px;
  padding: 24px 20px 40px;
}
h2 { color: #003366; margin-bottom: 16px; font-weight: 600; }

/* Karty / listy */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 5px 20px rgba(0,0,0,.12);
  animation: fadeIn .6s ease-out;
}
.card h3 { color: #003366; margin-bottom: 10px; }
.list { list-style: none; display: grid; gap: 6px; }

/* Komponenty logowania – z Twojego CSS */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 50px;
}
.login-box {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  width: 400px;
  animation: fadeIn 1s ease-in-out;
}
.input-group { text-align: left; margin-bottom: 15px; }
.input-icon { position: relative; }
.input-field {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 2px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  transition: 0.3s;
  outline: none;
}
.input-icon i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #777;
}
.input-field:focus {
  border-color: #003366;
  box-shadow: 0 0 5px rgba(0, 51, 102, 0.5);
}
.login-button {
  width: 100%;
  padding: 14px;
  background: #003366;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}
.login-button:hover { background: #0055A5; transform: scale(1.05); }
.forgot-password {
  display: block;
  margin-top: 15px;
  color: #0055A5;
  text-decoration: none;
  font-size: 14px;
}
.forgot-password:hover { text-decoration: underline; }

.flash-messages { margin-bottom: 15px; text-align: center; }
.flash-message { color: white; padding: 10px; border-radius: 5px; font-weight: bold; margin-bottom: 5px; }
.flash-message.danger { background-color: #dc3545; }

/* Animacje */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
