/* ===== NAVIGACIJA ===== */
.app-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: transparent;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1rem;
}

.nav-link {
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  color: white;
  background: var(--brand);
  border-radius: 6px;
  transition: all 0.2s;
  font-weight: 500;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.nav-link.active {
  background: var(--accent);
}

.btn-logout {
  margin-left: auto;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 2px solid var(--error);
  color: var(--error);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
  font-weight: 600;
}

.btn-logout:hover {
  background: var(--error);
  color: white;
  transform: translateY(-1px);
}

/* ===== STATISTIKA KARTICA ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ===== FORM GRID ===== */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
}

.form-group input,
.form-group select {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group input::placeholder {
  color: #999;
}

.required {
  color: #e74c3c;
  font-weight: 700;
}

.field-error {
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: block;
  min-height: 1.2em;
}

.submit-wrapper {
  margin-top: 1.5rem;
}

.submit-wrapper button {
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: var(--brand);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s;
}

.submit-wrapper button:hover {
  background: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.submit-wrapper button:active {
  transform: translateY(0);
}

/* ===== INFO CARD ===== */
.info-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin: 2rem 0;
  border-left: 4px solid var(--ok);
}

.info-card h3 {
  margin-top: 0;
  color: var(--ok);
  font-size: 1.25rem;
}

.info-card code {
  background: white;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  border: 1px solid #e0e0e0;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: #333;
}

/* ===== ADMIN BUTTONS ===== */
.btn-secondary {
  padding: 0.7rem 1.2rem;
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: #5a6268;
}

.btn-copy-password {
  margin-left: 0.5rem;
  padding: 0.3rem 0.6rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s;
  vertical-align: middle;
}

.btn-copy-password:hover {
  background: #2980b9;
  transform: translateY(-1px);
}

.btn-copy-password:active {
  transform: translateY(0);
}

/* ===== USERS LIST ===== */
#usersListSection {
  margin-top: 3rem;
}

#usersListSection h2 {
  color: var(--text);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

#usersList {
  display: grid;
  gap: 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .app-nav {
    gap: 0.25rem;
  }

  .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }

  .btn-logout {
    margin-left: 0;
    width: 100%;
    margin-top: 0.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .submit-wrapper button {
    padding: 0.8rem 1rem;
  }

  .btn-secondary {
    width: 100%;
    margin: 0.25rem 0;
  }

  .info-card {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .form-group input,
  .form-group select {
    font-size: 16px; /* Prevent zoom on iOS */
  }
}