body{
    background:#0f172a;
    font-family:Arial;
    color:white;
    margin:0;
}

.container{
    max-width:900px;
    margin:40px auto;
    padding:20px;
}

h1{
    text-align:center;
    margin-bottom:30px;
}

.search-box{
    display:flex;
    gap:10px;
}

input{
    flex:1;
    padding:12px;
    border-radius:8px;
    border:none;
    font-size:16px;
}

button{
    padding:12px 20px;
    border:none;
    border-radius:8px;
    background:#2563eb;
    color:white;
    font-weight:bold;
    cursor:pointer;
}

button:disabled{
    opacity:0.6;
}

.spinner{
    width:40px;
    height:40px;
    border:4px solid #1e293b;
    border-top:4px solid #3b82f6;
    border-radius:50%;
    animation:spin 1s linear infinite;
    margin:20px auto;
    display:none;
}

@keyframes spin{
    100%{transform:rotate(360deg);}
}

.card{
    background:#1e293b;
    padding:20px;
    border-radius:12px;
    margin-top:20px;
}

.card h2{
    margin-top:0;
}

.success{
    background:#14532d;
    color:#4ade80;
    padding:10px;
    border-radius:8px;
    margin-bottom:10px;
}

.danger{
    background:#7f1d1d;
    color:#f87171;
    padding:10px;
    border-radius:8px;
    margin-bottom:10px;
}

.big-status{
    font-size:18px;
    font-weight:bold;
    text-align:center;
}

.error-box{
    background:#991b1b;
    padding:15px;
    border-radius:10px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
}

.top-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.label {
  display: block;
  margin-top: 10px;
  margin-bottom: 6px;
  opacity: 0.9;
}

select {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  font-size: 16px;
  margin-bottom: 8px;
}

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

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

th, td {
  padding: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: left;
  font-size: 14px;
}

th {
  opacity: 0.9;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
}

.muted {
  opacity: 0.85;
}

.btn-primary {
  background: #2563eb;
  border: none;
  padding: 12px 14px;
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

.btn-secondary {
  background: #334155;
  border: none;
  padding: 12px 14px;
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

.btn-danger {
  background: #b91c1c;
  border: none;
  padding: 8px 10px;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
}