* {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    margin: 0;
    background-color: #f5f6f8;
}

/* login / register */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 16px;
}

.auth-card {
    background: #fff;
    padding: 32px 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 380px;
}

.auth-card h1 {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 22px;
    text-align: center;
}

.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="text"],
.auth-card input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 12px;
    border-radius: 4px;
    border: 1px solid #d0d4dc;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 24px 20px;
    }
    .auth-card h1 {
        font-size: 20px;
    }
}

.btn {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background-color: #14b8a6;
    color: #fff;
}

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

.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.text-muted { color: #6b7280; }
.link {
    color: #2563eb;
    text-decoration: none;
}

/* dashboard layout */

.topbar {
    height: 60px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo-text {
    font-weight: 700;
    color: #14b8a6;
}

.topnav a {
    margin-right: 16px;
    text-decoration: none;
    color: #4b5563;
}

.topnav a.active {
    color: #14b8a6;
    border-bottom: 2px solid #14b8a6;
    padding-bottom: 4px;
}

.topbar-right {
    font-size: 14px;
    color: #4b5563;
}

.main {
    display: flex;
    min-height: calc(100vh - 60px);
}

.sidebar {
    width: 180px;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    padding-top: 16px;
}

.sidebar .section-title {
    padding: 0 16px;
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.sidebar a {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    color: #4b5563;
    font-size: 14px;
}

.sidebar a.active {
    background: #ecfeff;
    color: #0f766e;
    border-left: 3px solid #0f766e;
}

.content {
    flex: 1;
    padding: 24px 32px;
}

.panel {
    background: #fff;
    border-radius: 8px;
    padding: 24px 24px 28px;
    box-shadow: 0 2px 10px rgba(15,23,42,0.04);
}

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

.panel-title {
    font-size: 18px;
    font-weight: 600;
}

.tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    background: #ecfeff;
    color: #0f766e;
    font-size: 11px;
}

.balance-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.balance-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.circle-token {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    font-weight: 700;
}

.balance-value {
    font-size: 24px;
    font-weight: 600;
}

.balance-label {
    color: #6b7280;
    font-size: 14px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    font-size: 14px;
}

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

.table th {
    background: #f9fafb;
    font-weight: 500;
    color: #6b7280;
}

.table-empty {
    text-align: center;
    padding: 32px 0;
    color: #9ca3af;
}

.form-inline input[type="number"],
.form-inline select {
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    margin-right: 8px;
}

@media (max-width: 768px) {
    .main {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        display: flex;
        flex-wrap: wrap;
    }
    .sidebar a {
        flex: 1 1 33%;
    }
    .content {
        padding: 16px;
    }
    .balance-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}
