/* Reset i podstawy */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #84bfbf;  /* jasnoniebieskie tło całej strony */
  font-family: 'Segoe UI', sans-serif;
  color: #003366;             /* ciemnoniebieski tekst - zostawiłem, bo jest ciemniejszy */
  line-height: 1.6;
  padding: 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark {
  background-color: #121212;  /* ciemne tło */
  color: #ddd;                /* jasny tekst */
}

/* Kontener główny */
.container {
  max-width: 1200px;
  margin: 0 auto;
  background-color: #28a09f;  /* jasnoniebieskie tło */
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(40, 160, 159, 0.3);
  color: #003366;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark .container {
  background-color: #222;      /* ciemny kontener */
  box-shadow: 0 0 40px rgba(40, 160, 159, 0.7);
  color: #ddd;
}

/* Nagłówki */
h1, h2 {
  color: #003366;
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

body.dark h1, body.dark h2 {
  color: #28a09f;  /* jasnoniebieski w ciemnym trybie */
}

/* Tickety */
.ticket {
  background-color: #28a09f;     /* jasnoniebieskie */
  border: 1px solid #28a09f;
  box-shadow: 0 0 15px rgba(40, 160, 159, 0.3);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 20px;
  color: #003366;
  transition: box-shadow 0.2s ease, background-color 0.3s ease, color 0.3s ease;
}

.ticket:hover {
  box-shadow: 0 8px 16px rgba(40, 160, 159, 0.5);
}

body.dark .ticket {
  background-color: #2f3136;
  border-left: 4px solid #28a09f;
  color: #ddd;
}

body.dark .ticket:hover {
  box-shadow: 0 8px 16px rgba(40, 160, 159, 0.8);
}

/* Sekcja nowe tickety */
.new-tickets-section {
  background-color: #28a09f;
  border: 1px solid #28a09f;
  box-shadow: 0 0 15px rgba(40, 160, 159, 0.3);
  padding: 32px;
  border-radius: 12px;
  margin-top: 20px;
  color: #003366;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark .new-tickets-section {
  background-color: #222;
  border: 1px solid #28a09f;
  color: #28a09f;
  box-shadow: 0 0 15px rgba(40, 160, 159, 0.8);
}

/* Formularz */
form {
  background-color: #28a09f;
  border: 1px solid #28a09f;
  box-shadow: 0 0 15px rgba(40, 160, 159, 0.3);
  padding: 32px;
  border-radius: 12px;
  margin-top: 24px;
  color: #003366;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark form {
  background-color: #121212 !important;
  border: 1px solid #444 !important;
  box-shadow: 0 0 15px rgba(0,0,0,0.8) !important;
  color: #ddd !important;
}

form label {
  color: #003366;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

body.dark form label {
  color: #ddd !important;
}

input[type="text"],
input[type="tel"],
input[type="file"],
textarea {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #a0c4ff; /* tu można zostawić bo jest lekki, ale chcesz zmienić, to na #28a09f */
  margin-bottom: 16px;
  font-size: 15px;
  background-color: #f0f8ff;
  color: #003366;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

body.dark input[type="text"],
body.dark input[type="tel"],
body.dark input[type="file"],
body.dark textarea {
  background-color: #222 !important;
  border: 1px solid #555 !important;
  color: #ddd !important;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input[type="text"]:focus,
input[type="tel"]:focus,
textarea:focus {
  border-color: #28a09f;
  box-shadow: 0 0 8px rgba(40, 160, 159, 0.6);
  outline: none;
}

body.dark input:focus,
body.dark textarea:focus {
  border-color: #28a09f !important;
  box-shadow: 0 0 8px rgba(40, 160, 159, 0.8) !important;
}

/* Przycisk */
.button {
  background-color: #28a09f;
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 10px;
}

.button:hover {
  background-color: #1f7d7b;
}

body.dark .button {
  background-color: #28a09f;
}

body.dark .button:hover {
  background-color: #1f7d7b;
}

/* Wiadomość */
#msg {
  margin-top: 12px;
  font-weight: 600;
  color: #4caf50;
}

/* Statusy */
.status-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-left: 8px;
  border: 1px solid #ccc;
}

.status-new {
  background-color: #2ecc71;
}

.status-inprogress {
  background-color: #f39c12;
}

.status-closed {
  background-color: #e74c3c;
}

/* Logo w rogu */
.logo {
  position: fixed;
  top: 20px;
  right: 20px;
  max-width: 120px;
  max-height: 60px;
  cursor: default;
  user-select: none;
  z-index: 1000;
}


.logo {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 150px;      /* ustalona szerokość */
  height: auto;      /* wysokość proporcjonalna */
  max-height: 80px;  /* maksymalna wysokość */
  cursor: default;
  user-select: none;
  z-index: 1000;
  image-rendering: -webkit-optimize-contrast;
}



.logo:hover {
  opacity: 0.8;
}

/* Dodatkowe zabezpieczenie paddingu na górze kontenera,
   żeby logo nie nachodziło na zawartość (jeśli potrzebujesz) */
.container {
  padding-top: 80px; /* więcej miejsca na logo */
}
.status-circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-left: 6px;
}

.status-new { background-color: #2ecc71; }       /* zielona */
.status-inprogress { background-color: #e67e22; }/* pomarańczowa */
.status-closed { background-color: #e74c3c; }    /* czerwona */
