* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  }

body {
background: #0f172a;
color: #fff;
}

/* LOGIN */
.login-body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: linear-gradient(135deg, #0f172a, #111827, #1e293b);
}

.login-box {
width: 380px;
background: rgba(17, 24, 39, 0.95);
padding: 30px;
border-radius: 16px;
box-shadow: 0 10px 35px rgba(0,0,0,0.35);
}

.login-box h2 {
margin-bottom: 20px;
text-align: center;
}

.login-box form {
display: flex;
flex-direction: column;
gap: 14px;
}

.login-box input {
padding: 12px;
border: 1px solid #334155;
border-radius: 10px;
background: #0f172a;
color: #fff;
}

.login-box button {
padding: 12px;
border: none;
border-radius: 10px;
background: #22c55e;
color: #fff;
cursor: pointer;
font-weight: bold;
}

.login-box button:hover {
background: #16a34a;
}

.error {
background: #7f1d1d;
color: #fecaca;
padding: 10px;
border-radius: 8px;
margin-bottom: 15px;
}

.success {
background: #14532d;
color: #bbf7d0;
padding: 10px;
border-radius: 8px;
margin-bottom: 15px;
}

/* LAYOUT */
.wrapper {
display: flex;
min-height: 100vh;
}

.sidebar {
width: 250px;
background: #020617;
border-right: 1px solid #1e293b;
padding: 25px 20px;
}

.logo {
font-size: 24px;
font-weight: bold;
margin-bottom: 40px;
color: #38bdf8;
}

.menu {
display: flex;
flex-direction: column;
gap: 12px;
}

.menu a {
color: #cbd5e1;
text-decoration: none;
padding: 12px 14px;
border-radius: 10px;
transition: 0.2s;
}

.menu a:hover,
.menu a.active {
background: #0f172a;
color: #22c55e;
}

/* MAIN */
.main-content {
flex: 1;
padding: 30px;
background: #0b1120;
}

.topbar {
display: flex;
justify-content: flex-end;
gap: 20px;
margin-bottom: 30px;
color: #cbd5e1;
}

.topbar a {
color: #f87171;
text-decoration: none;
}

/* CARDS */
.cards {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
margin-bottom: 30px;
}

.card {
background: #111827;
border: 1px solid #1f2937;
border-radius: 16px;
padding: 22px;
box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.card h3 {
color: #94a3b8;
margin-bottom: 12px;
font-size: 16px;
}

.card p {
font-size: 28px;
font-weight: bold;
color: #22c55e;
}

/* TABLE */
.table-box {
background: #111827;
border: 1px solid #1f2937;
border-radius: 16px;
overflow: hidden;
box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.table-header {
padding: 18px 20px;
border-bottom: 1px solid #1f2937;
}

.table-header h3 {
color: #e2e8f0;
}

table {
width: 100%;
border-collapse: collapse;
}

table th,
table td {
padding: 14px 16px;
text-align: left;
border-bottom: 1px solid #1e293b;
}

table th {
background: #0f172a;
color: #94a3b8;
font-size: 14px;
}

table td {
color: #e5e7eb;
font-size: 14px;
}

tr:hover td {
background: #0b1220;
}

/* ADD BUTTON */
.add-btn {
margin-bottom: 20px;
padding: 12px 20px;
background: #22c55e;
border: none;
border-radius: 10px;
color: white;
cursor: pointer;
font-weight: bold;
transition: 0.2s;
}

.add-btn:hover {
background: #16a34a;
}

/* MODAL */
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.7);
z-index: 1000;
}

.modal-content {
background: #111827;
padding: 25px;
width: 400px;
margin: 8% auto;
border-radius: 16px;
box-shadow: 0 10px 40px rgba(0,0,0,0.5);
position: relative;
}

.modal-content h3 {
margin-bottom: 15px;
}

.modal-content input,
.modal-content select {
width: 100%;
margin-bottom: 12px;
padding: 12px;
background: #0f172a;
color: white;
border: 1px solid #334155;
border-radius: 8px;
}

.modal-content button {
width: 100%;
padding: 12px;
background: #22c55e;
border: none;
border-radius: 10px;
font-weight: bold;
cursor: pointer;
}

.modal-content button:hover {
background: #16a34a;
}

.close {
position: absolute;
top: 10px;
right: 15px;
font-size: 22px;
cursor: pointer;
color: #f87171;
}

/* STATUS COLORS */
.status-active {
color: #22c55e;
font-weight: bold;
}

.status-pending {
color: #facc15;
font-weight: bold;
}

.wallet-btn {
    margin-bottom: 20px;
    padding: 14px 22px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 15px;
    transition: 0.25s;
    box-shadow: 0 6px 20px rgba(34,197,94,0.3);
}

.wallet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(34,197,94,0.5);
}

.wallet-btn:active {
    transform: scale(0.97);
}

/* ADMIN FORM BOX */
.form-box {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 16px;
    padding: 25px;
    max-width: 500px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.3);
}

.form-box h3 {
    margin-bottom: 15px;
    color: #e2e8f0;
}

/* INPUT MODERN */
.form-box input {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #020617;
    color: white;
    transition: 0.2s;
}

.form-box input:focus {
    border-color: #22c55e;
    outline: none;
}

/* BUTTON MODERN */
.form-box button {
    width: 100%;
    padding: 13px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.25s;
}

.form-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(34,197,94,0.4);
}

/* MESSAGE */
.form-msg {
    margin-top: 10px;
    font-weight: bold;
}