
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #ff8080, #111827 55%);
  min-height: 100vh;
  color: #111827;
}

.topbar {
  background: rgba(17, 24, 39, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.logo-power {
  color: #f97373;
}

.logo-kaynak {
  color: #f9fafb;
}

.logo-panel {
  color: #9ca3af;
  margin-left: 0.5rem;
  font-weight: 500;
}

.topnav {
  display: flex;
  gap: 0.5rem;
}

.nav-link {
  border: none;
  background: transparent;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  color: #e5e7eb;
  font-size: 0.85rem;
  cursor: pointer;
}

.nav-link.active {
  background: #f97373;
  color: white;
}

.nav-logout {
  background: #111827;
}

.hidden {
  display: none !important;
}

.page {
  max-width: 1180px;
  margin: 1.5rem auto 2.5rem;
  padding: 0 1.5rem;
}

.card {
  background: rgba(249, 250, 251, 0.98);
  border-radius: 1rem;
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.45);
}

.login-card {
  max-width: 460px;
  margin: 3rem auto 0;
}

.panel-card {
  margin-top: 1.5rem;
}

.card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #111827;
}

.card-subtitle {
  margin-top: 0.3rem;
  font-size: 0.9rem;
  color: #6b7280;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.form {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.field-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #4b5563;
}

.field input,
.field select {
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  outline: none;
}

.field input:focus,
.field select:focus {
  border-color: #f97373;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.25);
}

.btn {
  border-radius: 999px;
  border: none;
  padding: 0.55rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.05s ease, box-shadow 0.05s ease, background 0.15s ease;
}

.btn-primary {
  background: linear-gradient(90deg, #fb7185, #f97316);
  color: white;
  box-shadow: 0 12px 18px rgba(248, 113, 113, 0.4);
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 6px 10px rgba(248, 113, 113, 0.45);
}

.btn-secondary {
  background: #111827;
  color: #f9fafb;
}

.error {
  font-size: 0.8rem;
  color: #b91c1c;
}

.note {
  font-size: 0.78rem;
  color: #6b7280;
}

.note code {
  background: #e5e7eb;
  padding: 0.05rem 0.25rem;
  border-radius: 0.25rem;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.card-inner {
  background: white;
  border-radius: 0.9rem;
  padding: 1.1rem 1.1rem 1rem;
  border: 1px solid #e5e7eb;
}

.section-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
}

.section-desc {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.upload-box {
  margin-top: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.status-text {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.export-actions {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.card-table {
  margin-top: 1.5rem;
  background: white;
  border-radius: 0.9rem;
  padding: 1.1rem;
  border: 1px solid #e5e7eb;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-dot {
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.status-passive {
  background: #fee2e2;
  color: #b91c1c;
}

.status-active {
  background: #dcfce7;
  color: #166534;
}

.table-wrapper {
  margin-top: 0.7rem;
  max-height: 260px;
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

thead {
  background: #f9fafb;
}

th,
td {
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

th {
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
}

.empty-row {
  text-align: center;
  color: #9ca3af;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .card {
    padding: 1.25rem 1.25rem 1rem;
  }

  .page {
    padding: 0 1rem;
  }
}
