* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #0f172a;
  color: #e5e7eb;
  font-family: Arial, sans-serif;
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 270px;
  background: #020617;
  border-right: 1px solid #1e293b;
  padding: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 35px;
}

.logo-img{
    width:64px;
    height:64px;
    object-fit:contain;
    border-radius:12px;
    margin-right:12px;
}

.brand{
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:35px;
}

.brand-title{
    font-size:20px;
    font-weight:700;
    color:white;
}

.brand-subtitle{
    font-size:13px;
    color:#94a3b8;
}

nav a {
  display: block;
  color: #94a3b8;
  text-decoration: none;
  padding: 13px 14px;
  border-radius: 10px;
  margin-bottom: 7px;
}

nav a:hover,
nav a.active {
  background: #1e293b;
  color: white;
}

.main {
  flex: 1;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}

h1 {
  margin: 0;
  font-size: 30px;
}

p {
  color: #94a3b8;
  margin-top: 7px;
}

.status-pill {
  background: rgba(34, 197, 94, 0.14);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.35);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.card,
.panel {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 22px;
}

.card span {
  display: block;
  color: #94a3b8;
  font-size: 14px;
}

.card strong {
  display: block;
  font-size: 36px;
  margin: 10px 0;
}

.card small {
  color: #64748b;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
}

.panel h2 {
  margin-top: 0;
  font-size: 18px;
}

.backup-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #334155;
  padding: 13px 0;
}

.pending {
  color: #facc15;
  font-size: 13px;
}

.links a {
  display: block;
  color: #38bdf8;
  text-decoration: none;
  padding: 10px 0;
}

.links a:hover {
  text-decoration: underline;
}

.wide {
  grid-column: 1 / -1;
}

.activity {
  padding: 13px 0;
  border-bottom: 1px solid #334155;
  color: #cbd5e1;
}

@media (max-width: 800px) {
  body {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

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

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #020617;
}

.login-card {
  width: 380px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 18px;
  padding: 32px;
  text-align: center;
}

.login-logo {
  width: 90px;
  height: auto;
  margin-bottom: 15px;
}

.login-card h1 {
  font-size: 26px;
}

.login-card input {
  width: 100%;
  padding: 13px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #0f172a;
  color: white;
}

.login-card button {
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  border: none;
  background: #2563eb;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.login-card button:hover {
  background: #1d4ed8;
}
.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form label {
  color: #94a3b8;
  font-size: 13px;
}

.form input,
.form select {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #0f172a;
  color: white;
}

.form button {
  margin-top: 10px;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #2563eb;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.form button:hover {
  background: #1d4ed8;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: left;
  border-bottom: 1px solid #334155;
  padding: 12px;
}

.table th {
  color: #94a3b8;
  font-size: 13px;
}

.form textarea {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #0f172a;
  color: white;
  resize: vertical;
}

.status-dot {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: capitalize;
}

.status-dot.online {
  background: rgba(34, 197, 94, 0.14);
  color: #4ade80;
}

.status-dot.offline {
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
}

.status-dot.maintenance {
  background: rgba(250, 204, 21, 0.14);
  color: #facc15;
}

.status-dot.unknown {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
}
.hidden {
  display: none;
}

.primary-btn,
.secondary-btn {
  border-radius: 10px;
  padding: 11px 15px;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  display: inline-block;
}

.primary-btn {
  border: none;
  background: #2563eb;
  color: white;
}

.primary-btn:hover {
  background: #1d4ed8;
}

.secondary-btn {
  border: 1px solid #334155;
  color: #cbd5e1;
  background: #0f172a;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.panel-header h2 {
  margin-bottom: 4px;
}

.panel-header p {
  margin: 0;
}

.filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto auto;
  gap: 12px;
  margin-bottom: 20px;
}

.filters input,
.filters select {
  padding: 11px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #0f172a;
  color: white;
}

.filters button {
  border: none;
  border-radius: 10px;
  background: #2563eb;
  color: white;
  font-weight: bold;
  padding: 11px 15px;
  cursor: pointer;
}

.device-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-wide {
  grid-column: 1 / -1;
}

@media (max-width: 1000px) {
  .filters {
    grid-template-columns: 1fr;
  }

  .device-form-grid {
    grid-template-columns: 1fr;
  }
}
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.page-header h1 {
    margin: 0;
}

.page-subtitle {
    margin: 6px 0 0;
    color: #6b7280;
}

.card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.hidden {
    display: none;
}

.primary-button,
.secondary-button,
.table-action {
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 600;
}

.primary-button {
    background: #111827;
    color: white;
}

.secondary-button {
    background: #f3f4f6;
    color: #111827;
}

.table-action {
    background: #eef2ff;
    color: #3730a3;
    padding: 7px 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

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

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea,
.search-box input,
.filter-box select {
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
}

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

.form-actions {
    display: flex;
    gap: 10px;
}

.table-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.search-box {
    flex: 1;
}

.search-box input {
    width: 100%;
}

.table-wrapper {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px;
}

.data-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
}

.data-table tr:hover {
    background: #f9fafb;
}

.text-right {
    text-align: right;
}

.muted {
    color: #6b7280;
}

.small-text {
    font-size: 12px;
    margin-top: 4px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
}

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

.status-prospect {
    background: #dbeafe;
    color: #1e40af;
}

.status-inactive {
    background: #fee2e2;
    color: #991b1b;
}

.empty-state {
    text-align: center;
    color: #6b7280;
    padding: 28px;
}

@media (max-width: 768px) {
    .page-header,
    .table-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

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