@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --jh-primary: #F97316;
    --jh-primary-dark: #C2580A;
    --jh-primary-soft: rgba(249,115,22,.12);
    --jh-primary-glow: rgba(249,115,22,.22);

    --jh-secondary: #18181B;
    --jh-secondary-dark: #09090B;
    --jh-accent: #FDBA74;

    --jh-gradient: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    --jh-gradient-dark: linear-gradient(180deg, #09090B 0%, #18181B 100%);
    --jh-gradient-soft: linear-gradient(135deg, rgba(249,115,22,.14), rgba(253,186,116,.12));

    --jh-bg: #FAFAFA;
    --jh-dark: #09090B;
    --jh-dark-2: #18181B;
    --jh-muted: #71717A;
    --jh-card: #FFFFFF;
    --jh-border: #E4E4E7;

    --jh-success: #16A34A;
    --jh-danger: #DC2626;
    --jh-warning: #F59E0B;
    --jh-info: #2563EB;

    --jh-radius: 20px;
    --jh-radius-sm: 14px;
    --jh-shadow: 0 20px 60px rgba(9,9,11,.08), 0 3px 10px rgba(9,9,11,.04);
    --jh-shadow-strong: 0 24px 70px rgba(249,115,22,.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top right, rgba(249,115,22,.10), transparent 34%),
        radial-gradient(circle at bottom left, rgba(249,115,22,.06), transparent 32%),
        var(--jh-bg);
    color: var(--jh-dark);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

.jh-app {
    min-height: 100vh;
    display: flex;
}

/* SIDEBAR */
.jh-sidebar {
    width: 270px;
    height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(249,115,22,.22), transparent 36%),
        radial-gradient(circle at bottom left, rgba(249,115,22,.10), transparent 34%),
        var(--jh-gradient-dark);
    color: #fff;
    position: fixed;
    left: 0;
    top: 0;
    padding: 20px 16px;
    z-index: 1000;
    overflow-y: auto;
    transition: all .3s ease;
    box-shadow: 18px 0 50px rgba(9,9,11,.22);
}

.jh-sidebar::-webkit-scrollbar {
    width: 6px;
}

.jh-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.18);
    border-radius: 999px;
}

.jh-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
}

.jh-sidebar-brand img {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #fff;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(249,115,22,.25);
}

.jh-sidebar-brand h3 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.04em;
}

.jh-sidebar-brand span {
    font-size: 11px;
    color: rgba(255,255,255,.48);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.jh-sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.jh-sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 15px;
    color: rgba(255,255,255,.72);
    font-size: 14px;
    font-weight: 700;
    transition: all .25s ease;
}

.jh-sidebar-menu a i {
    width: 22px;
    text-align: center;
    color: rgba(255,255,255,.70);
}

.jh-sidebar-menu a:hover,
.jh-sidebar-menu a.active {
    background: rgba(255,255,255,.12);
    color: #fff;
    transform: translateX(4px);
    box-shadow: inset 4px 0 0 var(--jh-primary);
}

.jh-sidebar-menu a:hover i,
.jh-sidebar-menu a.active i {
    color: var(--jh-primary);
}

.jh-sidebar-overlay {
    display: none;
}

/* MAIN */
.jh-main {
    margin-left: 270px;
    width: calc(100% - 270px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* TOPBAR */
.jh-topbar {
    height: 78px;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(228,228,231,.9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 26px;
    position: sticky;
    top: 0;
    z-index: 900;
}

.jh-topbar h2 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.04em;
}

.jh-topbar p {
    margin: 3px 0 0;
    font-size: 13px;
    color: var(--jh-muted);
    font-weight: 600;
}

.jh-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 14px;
    background: var(--jh-primary);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 12px 25px var(--jh-primary-glow);
}

.jh-user-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.jh-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--jh-secondary-dark);
    color: var(--jh-primary);
    display: grid;
    place-items: center;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(9,9,11,.12);
}

.jh-user-info {
    display: flex;
    flex-direction: column;
}

.jh-user-info strong {
    font-size: 14px;
    font-weight: 800;
}

.jh-user-info span {
    font-size: 12px;
    color: var(--jh-muted);
    font-weight: 600;
}

.jh-logout {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    background: #FEF2F2;
    color: var(--jh-danger);
    display: grid;
    place-items: center;
}

/* CONTENT */
.jh-content {
    padding: 26px;
    flex: 1;
}

.jh-card {
    background: rgba(255,255,255,.96);
    border: 1px solid var(--jh-border);
    border-radius: var(--jh-radius);
    padding: 22px;
    box-shadow: var(--jh-shadow);
    animation: fadeUp .35s ease;
}

.jh-card h3 {
    margin-top: 0;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    letter-spacing: -.03em;
}

/* GRID */
.jh-grid {
    display: grid;
    gap: 18px;
}

.jh-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.jh-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.jh-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* STATS */
.jh-stat-card {
    background: #fff;
    border-radius: var(--jh-radius);
    padding: 20px;
    border: 1px solid var(--jh-border);
    box-shadow: var(--jh-shadow);
    position: relative;
    overflow: hidden;
    color: inherit;
}

.jh-stat-card::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    right: -44px;
    top: -44px;
    background: radial-gradient(circle, rgba(249,115,22,.15), transparent 65%);
    border-radius: 50%;
}

.jh-stat-card .icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--jh-gradient-soft);
    color: var(--jh-primary);
    display: grid;
    place-items: center;
    font-size: 20px;
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
}

.jh-stat-card p {
    margin: 0;
    color: var(--jh-muted);
    font-size: 13px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.jh-stat-card h2 {
    margin: 6px 0 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -.03em;
    position: relative;
    z-index: 2;
}

/* BUTTONS */
.jh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    padding: 12px 16px;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all .25s ease;
    text-decoration: none;
}

.jh-btn:hover {
    transform: translateY(-2px);
}

.jh-btn-primary {
    background: var(--jh-primary);
    color: #fff;
    box-shadow: 0 12px 28px var(--jh-primary-glow);
}

.jh-btn-primary:hover {
    background: var(--jh-primary-dark);
}

.jh-btn-dark {
    background: var(--jh-secondary-dark);
    color: #fff;
}

.jh-btn-success {
    background: #16A34A;
    color: #fff;
}

.jh-btn-danger {
    background: var(--jh-danger);
    color: #fff;
}

.jh-btn-warning {
    background: var(--jh-warning);
    color: #fff;
}

.jh-btn-light {
    background: #FFF7ED;
    color: #9A3412;
    border: 1px solid #FED7AA;
}

/* FORMS */
.jh-form-group {
    margin-bottom: 16px;
}

.jh-form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 800;
    color: #3F3F46;
}

.jh-input,
.jh-select,
.jh-textarea {
    width: 100%;
    border: 1.5px solid var(--jh-border);
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    background: #fff;
    color: var(--jh-dark);
    transition: all .2s ease;
}

.jh-input::placeholder,
.jh-textarea::placeholder {
    color: #A1A1AA;
    font-weight: 500;
}

.jh-input:focus,
.jh-select:focus,
.jh-textarea:focus {
    border-color: var(--jh-primary);
    box-shadow: 0 0 0 4px rgba(249,115,22,.12);
}

/* TABLES */
.jh-table-wrap {
    overflow-x: auto;
    border-radius: 18px;
    border: 1px solid var(--jh-border);
}

.jh-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    min-width: 850px;
}

.jh-table th,
.jh-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #F4F4F5;
    text-align: left;
    font-size: 14px;
    vertical-align: top;
}

.jh-table th {
    background: #FAFAFA;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #52525B;
    font-weight: 800;
}

.jh-table tr:hover td {
    background: #FFF7ED;
}

/* BADGES */
.jh-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.jh-badge.success {
    background: #DCFCE7;
    color: #166534;
}

.jh-badge.warning {
    background: #FEF3C7;
    color: #92400E;
}

.jh-badge.danger {
    background: #FEE2E2;
    color: #991B1B;
}

.jh-badge.info {
    background: #DBEAFE;
    color: #1D4ED8;
}

/* ALERTS */
.jh-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 15px;
    margin-bottom: 18px;
    font-weight: 800;
    animation: fadeUp .3s ease;
}

.jh-alert.success {
    background: #DCFCE7;
    color: #166534;
    border: 1px solid #BBF7D0;
}

.jh-alert.error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.jh-alert.warning {
    background: #FFF7ED;
    color: #9A3412;
    border: 1px solid #FED7AA;
}

/* FOOTER */
.jh-footer {
    padding: 18px 26px;
    color: var(--jh-muted);
    font-size: 13px;
    text-align: center;
    font-weight: 600;
}

/* ANIMATION */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}