/* === Reset & Podstawy === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #f0d56e;
}

body {
  background-color: #121212;
  min-height: 100vh;
  padding: 20px;
}

/* === Layout === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  background: #1c1c1c;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 0 25px 2px #bfae4fcc;
}

.header {
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px 10%;
  display: flex;
  background: transparent;
  align-items: center;
  z-index: 100;
}

.logo {
  font-size: 29px;
  color: #eee;
  font-weight: 700;
  margin-right: auto;
}

/* === Typografia === */
h1, h2, h3 {
  color: #f0d56e;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 0 0 5px #bfae4f;
}

/* === Formularze === */
form {
  margin-bottom: 30px;
}

input[type="text"],
input[type="url"],
input[type="password"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 18px;
  border: 2px solid #bfae4f;
  border-radius: 8px;
  background-color: #222;
  font-size: 16px;
  transition: 0.3s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #f0d56e;
  box-shadow: 0 0 8px #f0d56eaa;
  background-color: #2c2c2c;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  cursor: pointer;
}

input[type="checkbox"] {
  margin-right: 10px;
  transform: scale(1.2);
  cursor: pointer;
  accent-color: #bfae4f;
}

/* === Przyciski === */
button, input[type="submit"] {
  background-color: #bfae4f;
  border: none;
  color: #121212;
  padding: 14px 26px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 0 12px #bfae4f99;
  transition: background-color 0.3s ease;
}

button:hover,
input[type="submit"]:hover
{
  background-color: #d6c25f;
  box-shadow: 0 0 16px #d6c25fcc;
}

.btn, a.btn {
  display: inline-block; /* Dla <a> */
  background: #d4af37;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, .1);
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #000000;
  font-weight: 600;
  padding: 14px 26px;
  text-align: center;
  text-decoration: none; /* Usuwa podkreślenie */
  transition: background-color 0.3s ease;
}

.btn:hover, a.btn:hover {
  background-color: #d6c25f;
  box-shadow: 0 0 16px #d6c25fcc;
}


/* === Tabela === */
table {
  width: 90%;
  margin: 30px auto;
  border-collapse: collapse;
  font-size: 15px;
  table-layout: fixed;
}

thead {
  background-color: #333;
  color: #bfae4f;
  text-shadow: 0 0 3px #bfae4fcc;
}

thead th {
  padding: 14px 15px;
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid #bfae4f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

tbody tr {
  border-bottom: 1px solid #444;
  background-color: #1c1c1c;
  transition: background-color 0.3s;
}

tbody tr:hover {
  background-color: #2a2a2a;
}

tbody td {
  padding: 14px 15px;
  height: 50px;
  overflow: hidden;
  vertical-align: middle;
}

table button,
table select {
  padding: 4px 8px;
  font-size: 12px;
  line-height: 1;
  height: auto;
  min-height: unset;
}

/* === Linie i separatory === */
hr {
  border: none;
  height: 3px;
  background: linear-gradient(to right, #f1c40f, transparent);
  margin: 20px 0;
  opacity: 0.5;
}

/* === Statusy === */
.status-online {
  color: #4CAF50;
  font-weight: 700;
  text-shadow: 0 0 5px #4CAF5077;
}

.status-away {
  color: #f9a825;
  font-weight: 700;
  text-shadow: 0 0 5px #f9a825aa;
}

.status-invisible {
  color: #757575;
  font-weight: 700;
  font-style: italic;
}

/* === Avatar === */
.avatar-circle {
            width: 40px;
            height: 40px;
            background-color: #d4af37;
            border-radius: 50%;
            color: #121212;
            font-weight: bold;
            font-size: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            user-select: none;
            position: relative;
            flex-shrink: 0;
        }

        .avatar-img {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            cursor: pointer;
            flex-shrink: 0;
        }

        /* Dropdown menu */
        .avatar-dropdown {
            position: absolute;
            top: 50px;
            right: 0;
            background: #121212;
            border: 1px solid #d4af37;
            border-radius: 8px;
            display: none;
            flex-direction: column;
            min-width: 140px;
            z-index: 1000;
            box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
        }

        .avatar-dropdown.active {
            display: flex;
        }

        .avatar-dropdown a {
            color: #d4af37;
            padding: 10px 15px;
            text-decoration: none;
            border-bottom: 1px solid #d4af37;
            font-weight: 500;
        }

        .avatar-dropdown a:last-child {
            border-bottom: none;
        }

        .avatar-dropdown a:hover {
            background-color: #f1c40f;
            color: #121212;
        }

/* === Nawigacja === */
nav {
  margin-bottom: 25px;
}

nav a {
  text-decoration: none;
  color: #bfae4f;
  font-size: 18px;
  font-weight: 600;
  margin-right: 18px;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #f0d56e;
  text-shadow: 0 0 8px #f0d56eaa;
}

/* === Alerty === */
.alert {
  padding: 14px 20px;
  margin-bottom: 25px;
  border-radius: 8px;
  font-weight: 600;
  color: #121212;
}

.alert-error {
  background-color: #b83232;
  border: 1px solid #8a2626;
}

.alert-success {
  background-color: #bfae4f;
  border: 1px solid #8a7f22;
}

/* === Checkbox group === */
.checkbox-group {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
}

/* === Header actions === */
.header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

/* === Błędy === */
.error {
  color: #ff6b6b;
  background-color: #1e1e1e;
  padding: 10px;
  border-left: 5px solid #ff6b6b;
  margin-bottom: 15px;
}

/* === Oferta pracy === */
.oferta-pracy {
  background-color: #1e1e1e;
  padding: 20px;
  margin-top: 30px;
  border-left: 5px solid #d4af37;
  border-radius: 8px;
}

.oferta-pracy h1 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #f0d56e;
}

.oferta-content {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #f5e6a1;
}

/* === Responsive === */
@media (max-width: 768px) {
  .container {
    padding: 20px 25px;
  }

  table thead {
    display: none;
  }

  table, table tbody, table tr, table td {
    display: block;
    width: 100%;
  }

  table tr {
    margin-bottom: 20px;
    border-bottom: 2px solid #444;
  }

  table td {
    text-align: right;
    padding-left: 50%;
    position: relative;
  }

  table td::before {
    content: attr(data-label);
    position: absolute;
    left: 15px;
    width: calc(50% - 30px);
    font-weight: 700;
    text-align: left;
    color: #f0d56e;
  }
}
