:root {
    --jh-primary: #0ea5e9;
    --jh-primary-dark: #0369a1;
    --jh-secondary: #22c55e;
    --jh-secondary-dark: #15803d;
    --jh-accent: #84cc16;

    --jh-gradient: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 48%, #22c55e 100%);
    --jh-gradient-dark: linear-gradient(180deg, #06283d 0%, #064e3b 100%);
    --jh-gradient-soft: linear-gradient(135deg, rgba(14,165,233,.12), rgba(34,197,94,.12));

    --jh-bg: #f3fbfa;
    --jh-dark: #0f172a;
    --jh-muted: #64748b;
    --jh-card: #ffffff;
    --jh-border: #dbeafe;
    --jh-success: #16a34a;
    --jh-danger: #dc2626;
    --jh-warning: #f59e0b;

    --jh-radius: 20px;
    --jh-shadow: 0 16px 45px rgba(6, 78, 59, 0.09);
    --jh-shadow-strong: 0 24px 70px rgba(14, 165, 233, 0.18);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, .13), transparent 34%),
        radial-gradient(circle at top right, rgba(34, 197, 94, .12), transparent 30%),
        var(--jh-bg);
    color: var(--jh-dark);
}

a {
    text-decoration: none;
}

.jh-app {
    min-height: 100vh;
    display: flex;
}

/* SIDEBAR */
.jh-sidebar {
    width: 270px;
    height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, .22), transparent 35%),
        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(15, 23, 42, .18);
}

.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(34,197,94,.22);
}

.jh-sidebar-brand h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
}

.jh-sidebar-brand span {
    font-size: 12px;
    color: #bbf7d0;
}

.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: #d1fae5;
    font-size: 14px;
    font-weight: 700;
    transition: all .25s ease;
}

.jh-sidebar-menu a i {
    width: 22px;
    text-align: center;
}

.jh-sidebar-menu a:hover,
.jh-sidebar-menu a.active {
    background: rgba(255,255,255,.15);
    color: #fff;
    transform: translateX(4px);
    box-shadow: inset 4px 0 0 #22c55e;
}

.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,.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(219,234,254,.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-size: 22px;
    font-weight: 900;
    letter-spacing: -.03em;
}

.jh-topbar p {
    margin: 3px 0 0;
    font-size: 13px;
    color: var(--jh-muted);
}

.jh-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 14px;
    background: var(--jh-gradient);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 12px 25px rgba(14,165,233,.22);
}

.jh-user-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.jh-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--jh-gradient);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(14,165,233,.22);
}

.jh-user-info {
    display: flex;
    flex-direction: column;
}

.jh-user-info strong {
    font-size: 14px;
}

.jh-user-info span {
    font-size: 12px;
    color: var(--jh-muted);
}

.jh-logout {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    background: #fee2e2;
    color: var(--jh-danger);
    display: grid;
    place-items: center;
}

/* CONTENT */
.jh-content {
    padding: 26px;
    flex: 1;
}

.jh-card {
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(219,234,254,.95);
    border-radius: var(--jh-radius);
    padding: 22px;
    box-shadow: var(--jh-shadow);
    animation: fadeUp .35s ease;
}

.jh-card h3 {
    margin-top: 0;
    font-weight: 900;
}

/* 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 rgba(219,234,254,.95);
    box-shadow: var(--jh-shadow);
    position: relative;
    overflow: hidden;
}

.jh-stat-card::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    right: -44px;
    top: -44px;
    background: linear-gradient(135deg, rgba(14,165,233,.15), rgba(34,197,94,.16));
    border-radius: 50%;
}

.jh-stat-card .icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--jh-gradient-soft);
    color: var(--jh-primary-dark);
    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-size: 25px;
    font-weight: 900;
    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;
}

.jh-btn:hover {
    transform: translateY(-2px);
}

.jh-btn-primary {
    background: var(--jh-gradient);
    color: #fff;
    box-shadow: 0 12px 28px rgba(14,165,233,.22);
}

.jh-btn-dark {
    background: var(--jh-dark);
    color: #fff;
}

.jh-btn-success {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff;
}

.jh-btn-danger {
    background: var(--jh-danger);
    color: #fff;
}

.jh-btn-light {
    background: #ecfeff;
    color: #064e3b;
    border: 1px solid #bae6fd;
}

/* FORMS */
.jh-form-group {
    margin-bottom: 16px;
}

.jh-form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 800;
}

.jh-input,
.jh-select,
.jh-textarea {
    width: 100%;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
    background: #fff;
    transition: all .2s ease;
}

.jh-input:focus,
.jh-select:focus,
.jh-textarea:focus {
    border-color: var(--jh-primary);
    box-shadow: 0 0 0 4px rgba(14,165,233,.14);
}

/* TABLES */
.jh-table-wrap {
    overflow-x: auto;
    border-radius: 18px;
    border: 1px solid rgba(219,234,254,.95);
}

.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 #e0f2fe;
    text-align: left;
    font-size: 14px;
}

.jh-table th {
    background: #ecfeff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #0369a1;
}

.jh-table tr:hover td {
    background: #f0fdfa;
}

/* BADGES */
.jh-badge {
    display: inline-flex;
    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: #e0f2fe;
    color: #0369a1;
}

/* 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;
}

.jh-alert.error {
    background: #fee2e2;
    color: #991b1b;
}

/* FOOTER */
.jh-footer {
    padding: 18px 26px;
    color: var(--jh-muted);
    font-size: 13px;
    text-align: center;
}

/* ANIMATION */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}