/* assets/css/portal.css */

/* Base */

body.kmd-portal-app-body,
body.kmd-portal-auth-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* APP SHELL (console look) */

body.kmd-portal-app-body {
    background: #020617;
    color: #0f172a;
}

.kmd-portal-app {
    min-height: 100vh;
}

/* Sidebar */

.kmd-portal-sidebar {
    width: 250px;
    background: radial-gradient(circle at top left, #020617 0, #020617 55%, #030712 100%);
    color: #e5e7eb;
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #111827;
}

.kmd-sidebar-header {
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    margin-bottom: 14px !important;
}

.kmd-sidebar-logo {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1d4ed8;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.5);
}

.kmd-sidebar-logo i {
    color: #eff6ff;
}

.kmd-sidebar-name {
    font-size: 0.95rem;
    font-weight: 600;
}

.kmd-sidebar-sub {
    font-size: 0.78rem;
    color: #9ca3af;
}

.kmd-sidebar-nav {
    margin-top: 12px;
    margin-bottom: 12px;
}

.kmd-nav-item {
    display: flex;
    align-items: center;
    padding: 8px 9px;
    border-radius: 10px;
    font-size: 0.9rem;
    text-decoration: none;
    color: #d1d5db;
    margin-bottom: 4px;
    transition: background 0.12s ease, color 0.12s ease;
}

.kmd-nav-item i {
    font-size: 0.95rem;
}

.kmd-nav-item:hover {
    background: rgba(31, 41, 55, 0.95);
    color: #ffffff;
}

.kmd-nav-item-active {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #eff6ff;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.45);
}

.kmd-nav-item-active i {
    color: #eff6ff;
}

.kmd-sidebar-footer {
    border-top: 1px solid rgba(55, 65, 81, 0.8);
    padding-top: 8px;
}

/* Top bar */

.kmd-portal-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    background: radial-gradient(circle at top left, #e5edff 0, #eef2ff 35%, #f1f5f9 80%);
}

.kmd-portal-topbar {
    height: 56px;
    padding: 12px 24px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.4);
    backdrop-filter: blur(10px);
}

.kmd-topbar-page-title {
    font-size: 1rem;
    font-weight: 600;
}

.kmd-btn-logout {
    border-radius: 999px;
    padding-inline: 16px;
    border-color: rgba(148, 163, 184, 0.8);
    color: #0f172a;
}

/* Main content */

.kmd-portal-main {
    padding: 22px 26px 34px;
    min-height: calc(100vh - 56px);
}

.kmd-dashboard-root {
    max-width: 1160px;
    margin: 0 auto;
}

/* Dashboard */

.kmd-dashboard-header h1 {
    font-size: 1.55rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.kmd-dashboard-header p {
    margin-bottom: 0;
    color: #6b7280;
    font-size: 0.95rem;
}

/* Status pill */

.kmd-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 0.8rem;
    border: 1px solid transparent;
}

.kmd-status-pill-ok {
    background-color: #dcfce7;
    color: #166534;
    border-color: rgba(22, 101, 52, 0.3);
}

/* Cards */

.kmd-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 16px 18px 14px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.kmd-card-subtle {
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.kmd-card-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9ca3af;
    margin-bottom: 6px;
}

.kmd-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 2px;
}

/* Plan card */

.kmd-plan-name {
    font-weight: 600;
    font-size: 1.05rem;
}

.kmd-plan-price {
    margin-top: 4px;
    font-size: 1.4rem;
    font-weight: 600;
}

.kmd-plan-meta {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #6b7280;
}

/* Numbers table */

.kmd-table {
    font-size: 0.9rem;
}

.kmd-table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9ca3af;
    border-bottom-width: 1px;
}

.kmd-table tbody td {
    border-top-color: rgba(226, 232, 240, 0.9);
}

.kmd-number-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    font-weight: 500;
    text-decoration: none;
}

.kmd-number-pill:hover {
    background: rgba(37, 99, 235, 0.14);
    color: #1d4ed8;
}

/* Misc badges */

.kmd-badge-on {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    background: #dcfce7;
    color: #166534;
}

.kmd-badge-off {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    background: #fee2e2;
    color: #b91c1c;
}

/* Auth (login) */

body.kmd-portal-auth-body {
    background: radial-gradient(circle at top, #dbeafe 0, #eff6ff 40%, #e5e7eb 100%);
}

.kmd-auth-wrapper {
    min-height: 100vh;
    padding: 32px 16px;
}

.kmd-auth-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 26px 26px 22px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(148, 163, 184, 0.4);
}

/* RESPONSIVE */

@media (max-width: 991.98px) {
    .kmd-portal-sidebar {
        display: none;
    }
    .kmd-portal-main {
        padding: 18px 16px 30px;
    }
    .kmd-dashboard-root {
        max-width: 100%;
    }
}
