@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

/* ============================================================
   Payment Tracker theme — inspired by the Envato
   "Finance Tracking dashboard" (lime accent, soft cards).
   Production note: self-host these fonts to avoid third-party calls.
   ============================================================ */
:root {
    --app-sidebar-width: 248px;
    --bg: #f5f6f3;
    --sidebar: #eceee8;
    --card: #ffffff;
    --border: #ececeb;
    --ink: #1c1c1e;
    --muted: #6b7280;
    --accent: #c2ee1a;
    --accent-600: #afdb13;
    --accent-soft: #eef9c9;
    --success: #1f9d57;
    --danger: #e5604d;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(12, 12, 13, .05), 0 4px 16px rgba(12, 12, 13, .04);
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    font-size: .94rem;
}

h1,
h2,
h3,
h4,
h5,
.app-brand,
.stat-value,
.card .h4,
.card .h5 {
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    letter-spacing: -.01em;
    color: var(--ink);
}

a {
    color: #2b6cb0;
}

.text-muted {
    color: var(--muted) !important;
}

/* ---------- Shell + sidebar ---------- */
.app-shell {
    min-height: 100vh;
}

.app-sidebar {
    width: var(--app-sidebar-width);
    background: var(--sidebar);
    border-right: 1px solid var(--border);
    padding: 1.5rem 1rem;
    position: sticky;
    top: 0;
    height: 100vh;
}

.app-brand {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: .5rem;
}

.app-brand::before {
    content: "";
    width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 5px;
    transform: rotate(45deg);
    display: inline-block;
}

.app-sidebar .nav-link {
    color: #4b5563;
    font-weight: 500;
    border-radius: var(--radius-sm);
    padding: .55rem .75rem !important;
    margin-bottom: .15rem;
    transition: background .12s ease, color .12s ease;
}

.app-sidebar .nav-link:hover {
    background: #e2e6db;
    color: var(--ink);
}

.app-sidebar .nav-link.active {
    background: var(--accent);
    color: var(--ink);
    font-weight: 600;
}

.app-main {
    background: var(--bg);
}

/* ---------- Cards ---------- */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card .card-body {
    padding: 1.25rem 1.35rem;
}

.shadow-sm {
    box-shadow: var(--shadow) !important;
}

.card h2.h6,
.card .h6 {
    color: var(--muted);
    text-transform: none;
    font-weight: 600;
}

/* Big numbers in summary cards */
.card .h4 {
    font-weight: 800;
    font-size: 1.6rem;
}

/* ---------- Buttons ---------- */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.btn-sm {
    border-radius: 999px;
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--ink);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--accent-600);
    border-color: var(--accent-600);
    color: var(--ink);
}

.btn-outline-secondary {
    border-color: #d8dad3;
    color: #4b5563;
}

.btn-outline-secondary:hover {
    background: #e9ebe4;
    color: var(--ink);
    border-color: #cdd0c8;
}

.btn-outline-primary {
    border-color: var(--accent-600);
    color: #5a6b00;
}

.btn-outline-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--ink);
}

.btn-dark {
    background: var(--ink);
    border-color: var(--ink);
}

/* ---------- Badges (pills) ---------- */
.badge {
    border-radius: 999px;
    font-weight: 600;
    padding: .4em .7em;
}

.bg-success {
    background: var(--success) !important;
}

.bg-warning {
    background: #fde68a !important;
    color: #92600a !important;
}

.bg-secondary {
    background: #e5e7eb !important;
    color: #4b5563 !important;
}

.bg-danger {
    background: var(--danger) !important;
}

/* ---------- Tables ---------- */
.table {
    color: var(--ink);
}

.table> :not(caption)>*>* {
    border-color: #f0f0ee;
}

.table thead th {
    color: var(--muted);
    font-weight: 600;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    border-bottom: 1px solid var(--border);
}

.table-hover>tbody>tr:hover>* {
    background: #fafbf7;
}

/* ---------- Forms ---------- */
.form-control,
.form-select {
    border-radius: var(--radius-sm);
    border-color: #e2e3df;
    font-size: .92rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-600);
    box-shadow: 0 0 0 .2rem rgba(194, 238, 26, .25);
}

.form-label {
    font-weight: 600;
    font-size: .85rem;
    color: #374151;
}

/* ---------- Alerts ---------- */
.alert {
    border-radius: var(--radius-sm);
    border: none;
}

.alert-success {
    background: var(--accent-soft);
    color: #4d5e00;
}

.alert-warning {
    background: #fef3c7;
    color: #92600a;
}

.alert-danger {
    background: #fde2dd;
    color: #a23a2b;
}

.alert-info {
    background: #e7f2fb;
    color: #1f5a8a;
}

/* ---------- Auth + freelancer pages ---------- */
.auth-body,
.freelancer-body {
    background: var(--bg);
}

.auth-body {
    min-height: 100vh;
}

.auth-card {
    width: 100%;
    max-width: 400px;
}

.navbar .app-brand {
    font-size: 1.1rem;
}

/* Icon buttons (Material Icons) */
.material-icons {
    font-size: 20px;
    line-height: 1;
    vertical-align: middle;
}

.btn .material-icons {
    font-size: 18px;
    vertical-align: text-bottom;
}

.btn-icon {
    padding: .25rem .45rem;
}

.pw-value {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}