:root {
    --admin-green: #128550;
    --admin-green-dark: #0b5e3a;
    --admin-bg: #f5faf7;
    --admin-border: #e2eee7;
    --admin-shadow: 0 18px 45px rgba(21, 91, 60, .10);
}

body {
    background: var(--admin-bg);
    color: #183529;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

a {
    text-decoration: none;
}

.admin-topbar {
    box-shadow: 0 10px 28px rgba(9, 91, 54, .18);
}

.admin-shell {
    min-height: calc(100vh - 58px);
}

.admin-sidebar {
    border-radius: 22px;
    position: sticky;
    top: 82px;
    overflow: hidden;
}

.admin-nav-link {
    border: 0;
    border-radius: 16px !important;
    margin: .15rem 0;
    padding: .85rem 1rem;
}

.admin-nav-link small {
    color: #7d8e83;
}

.admin-nav-link.active {
    background: var(--admin-green);
    color: #ffffff;
}

.admin-nav-link.active small {
    color: rgba(255,255,255,.75);
}

.card {
    border-radius: 22px;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff, #eaf8f0);
    border: 1px solid var(--admin-border);
    border-radius: 22px;
    box-shadow: var(--admin-shadow);
    padding: 1.25rem;
    height: 100%;
}

.stat-card span {
    color: #6f7d75;
    display: block;
    font-size: .85rem;
    margin-bottom: .4rem;
}

.stat-card strong {
    color: var(--admin-green-dark);
    display: block;
    font-size: 1.9rem;
    line-height: 1;
}

.table {
    vertical-align: middle;
}

.table thead th {
    color: #617067;
    font-size: .8rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.btn {
    border-radius: 999px;
}

.form-control,
.form-select {
    border-color: #dcebe2;
    border-radius: 14px;
    padding: .7rem .9rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--admin-green);
    box-shadow: 0 0 0 .2rem rgba(18, 133, 80, .13);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .45rem 0;
}

.gateway-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--admin-border);
}

.upload-panel {
    border: 1px dashed #aad7be;
    background: #f7fff9;
    border-radius: 20px;
    padding: 1rem;
}

.chat-box {
    background: #f3fbf6;
    border: 1px solid var(--admin-border);
    border-radius: 22px;
    max-height: 520px;
    overflow-y: auto;
    padding: 1rem;
}

.chat-message {
    display: flex;
    margin-bottom: 1rem;
}

.chat-message .bubble {
    border-radius: 20px;
    max-width: 78%;
    padding: .85rem 1rem;
    box-shadow: 0 10px 28px rgba(18, 53, 41, .06);
}

.chat-message.user {
    justify-content: flex-start;
}

.chat-message.user .bubble {
    background: #ffffff;
    border-bottom-left-radius: 6px;
}

.chat-message.admin {
    justify-content: flex-end;
}

.chat-message.admin .bubble {
    background: var(--admin-green);
    color: #ffffff;
    border-bottom-right-radius: 6px;
}

.chat-meta {
    display: block;
    font-size: .76rem;
    opacity: .75;
    margin-bottom: .25rem;
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        position: static;
    }
}
