:root {
    --brand-primary: #7d4cdb;
    --brand-secondary: #1f6feb;
    --brand-gradient: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    --color-border-subtle: #30363d;
    --color-bg-default: #0d1117;
    --color-bg-subtle: #161b22;
}

/* Base Body Style mirroring Admin Dashboard */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    background-color: var(--color-bg-default);
    color: #c9d1d9;
    line-height: 1.5;
    margin: 0;
}

/* Header Refinement: Clean & Flat */
.header-extension {
    background-color: #161b22 !important;
    border-bottom: 1px solid var(--color-border-subtle) !important;
    padding: 12px 0;
    box-shadow: none !important;
}

.logo-extension {
    color: #f0f6fc !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

.nav-ext a {
    color: #8b949e;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: color 0.2s, background-color 0.2s;
}

.nav-ext a:hover {
    background-color: rgba(177, 186, 196, 0.12);
    color: #f0f6fc;
}

.nav-ext a.active {
    color: #f0f6fc;
    background-color: transparent;
    font-weight: 600;
}

/* Box & Container Treatment */
.box-extension-premium {
    background-color: #0d1117;
    border: 1px solid var(--color-border-subtle);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.box-extension-premium:hover {
    border-color: #8b949e;
    box-shadow: none !important;
}

/* Table Style mirroring Transactions Tab */
table.admin-style {
    width: 100%;
    border-collapse: collapse;
}

table.admin-style thead th {
    background-color: #161b22;
    border-bottom: 1px solid var(--color-border-subtle);
    padding: 12px;
    color: #8b949e;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
}

table.admin-style tbody td {
    padding: 12px;
    border-bottom: 1px solid var(--color-border-subtle);
}

table.admin-style tbody tr:hover {
    background-color: rgba(177, 186, 196, 0.04);
}

/* Badges / Labels */
.Label--admin {
    display: inline-block;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    border-radius: 2em;
    border: 1px solid transparent;
}

.Label--completed {
    color: #3fb950;
    border-color: rgba(46, 160, 67, 0.4);
    background-color: rgba(46, 160, 67, 0.1);
}

.Label--pending {
    color: #d29922;
    border-color: rgba(187, 128, 9, 0.4);
    background-color: rgba(187, 128, 9, 0.1);
}

/* Buttons */
.btn-admin {
    background-color: #21262d;
    border: 1px solid rgba(240, 246, 252, 0.1);
    color: #c9d1d9;
    padding: 5px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.btn-admin:hover {
    background-color: #30363d;
    border-color: #8b949e;
}

.btn-admin-primary {
    background-color: #238636;
    border: 1px solid rgba(240, 246, 252, 0.1);
    color: #ffffff;
}

.btn-admin-primary:hover {
    background-color: #2ea043;
}

/* Inputs */
.form-control-admin {
    background-color: #0d1117;
    border: 1px solid var(--color-border-subtle);
    border-radius: 6px;
    color: #c9d1d9;
    padding: 5px 12px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control-admin:focus {
    border-color: #58a6ff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.3);
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}