@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap');

* {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #1c1c1c, #3d3d3d);
  color: #fff;
  margin: 0;
  min-height: 100vh;
}

/* Górny pasek */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 30px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
}

.logo {
  font-weight: 700;
  font-size: 20px;
}

.admin-btn {
  padding: 8px 18px;
  border-radius: 999px;
  background: #b74b4b;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.1s ease;
}

.admin-btn:hover {
  background: #923939;
  transform: translateY(-1px);
}

/* Główny kontener */
.container {
  background: rgba(255,255,255,0.06);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  width: 100%;
  max-width: 600px;
  margin: 40px auto;
  backdrop-filter: blur(10px);
}

h1 {
  text-align: center;
  font-weight: 600;
  margin-bottom: 20px;
}

label {
  display: block;
  margin-top: 15px;
  font-weight: 500;
}

input, textarea, select {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: none;
  outline: none;
  margin-top: 5px;
  font-family: inherit;
  resize: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255,255,255,0.5);
}

button {
  margin-top: 25px;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #b74b4b;
  color: white;
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.1s ease;
}

button:hover {
  background: #923939;
  transform: translateY(-1px);
}

/* Admin layout */
.admin-container {
  max-width: 1200px;
}

.nav-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.nav-tabs a {
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 14px;
}

.nav-tabs a.active {
  background: #b74b4b;
}

/* Grid podań */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.app-card {
  background: rgba(255,255,255,0.08);
  border-radius: 15px;
  padding: 15px;
  backdrop-filter: blur(10px);
}

.app-card h2 {
  margin: 0 0 8px 0;
  font-size: 16px;
}

.status {
  font-weight: 600;
  margin: 5px 0 10px;
}

.status.accepted {
  color: #2ecc71;
}

.status.rejected {
  color: #e74c3c;
}

/* Modal */
#modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

#modal-content {
  background: #2a2a2a;
  border-radius: 20px;
  padding: 20px;
  max-width: 700px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
}

#modal-content img {
  max-width: 100%;
  border-radius: 10px;
  margin-top: 10px;
}

/* Tabela (logi, admini) */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 14px;
}

th, td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-align: left;
}

th {
  color: #b74b4b;
}

/* Małe przyciski */
.btn-small {
  display: block;
  width: 100%;
  padding: 15px 0;
  border-radius: 10px;
  border: none;
  background: #b74b4b;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-small:hover {
  background: #923939;
}

/* Zielony – Akceptuj */
.btn-accept {
  background: #3ac95a;
}
.btn-accept:hover {
  background: #2ea84a;
}

/* Czerwony – Odrzuć */
.btn-reject {
  background: #d64545;
}
.btn-reject:hover {
  background: #b83636;
}

/* Bordowy – Zwiń */
.btn-collapse {
  background: #8b3a3a;
}
.btn-collapse:hover {
  background: #702c2c;
}

/* Result po wysłaniu */
.result {
  text-align: center;
}

.result h2 {
  margin-bottom: 10px;
}

/* Owner badge */
.badge-owner {
  color: #ffd32a;
  margin-left: 5px;
}
