/* CentraMEDKIT User HUB — Modern */

:root {
    --uh-ink: #0f172a;
    --uh-ink-700: #334155;
    --uh-ink-500: #64748b;
    --uh-ink-400: #94a3b8;
    --uh-line: #e2e8f0;
    --uh-brand: #2563eb;
    --uh-brand-700: #1d4ed8;
}

.uh-wrap {
    padding: 1.5rem;
    box-sizing: border-box;
}

/* Header */

.uh-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.uh-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--uh-ink);
}

.uh-subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.88rem;
    color: var(--uh-ink-500);
}

/* Welcome hero */

.uh-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 60%, #1e3a8a 100%);
    border-radius: 18px;
    padding: 2rem 2.25rem;
    color: #fff;
    margin-bottom: 1.5rem;
    box-shadow: 0 16px 40px -16px rgba(30, 64, 175, 0.55);
}

.uh-hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -40px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.uh-hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: 30%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.uh-hero-content {
    position: relative;
    z-index: 1;
}

.uh-hero h2 {
    margin: 0 0 0.4rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
}

.uh-hero p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

/* Stats */

.uh-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.uh-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 14px;
    box-shadow: 0 8px 24px -14px rgba(2, 24, 72, 0.2);
    padding: 1.1rem 1.25rem;
}

.uh-stat-icon {
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.uh-stat-icon svg {
    width: 22px;
    height: 22px;
}

.uh-stat-green .uh-stat-icon { background: rgba(16, 185, 129, 0.12); color: #059669; }
.uh-stat-blue .uh-stat-icon { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.uh-stat-amber .uh-stat-icon { background: rgba(245, 158, 11, 0.12); color: #b45309; }
.uh-stat-teal .uh-stat-icon { background: rgba(20, 184, 166, 0.12); color: #0d9488; }

.uh-stat-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--uh-ink);
    line-height: 1.2;
}

.uh-stat-label {
    display: block;
    font-size: 0.82rem;
    color: var(--uh-ink-500);
    font-weight: 500;
}

/* Management cards */

.uh-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.uh-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 16px;
    box-shadow: 0 8px 24px -14px rgba(2, 24, 72, 0.2);
    padding: 1.75rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.uh-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -14px rgba(2, 24, 72, 0.25);
}

.uh-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.uh-card-icon svg {
    width: 30px;
    height: 30px;
}

.uh-card-green .uh-card-icon { background: rgba(16, 185, 129, 0.12); color: #059669; }
.uh-card-blue .uh-card-icon { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.uh-card-amber .uh-card-icon { background: rgba(245, 158, 11, 0.12); color: #b45309; }
.uh-card-teal .uh-card-icon { background: rgba(20, 184, 166, 0.12); color: #0d9488; }

.uh-card-title {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--uh-ink);
}

.uh-card-desc {
    margin: 0 0 1.25rem;
    color: var(--uh-ink-500);
    font-size: 0.88rem;
    line-height: 1.55;
    flex: 1;
}

.uh-card-action {
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.uh-card-action svg {
    width: 14px;
    height: 14px;
}

.uh-card-green .uh-card-action { background: rgba(16, 185, 129, 0.12); color: #059669; }
.uh-card-blue .uh-card-action { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.uh-card-amber .uh-card-action { background: rgba(245, 158, 11, 0.12); color: #b45309; }
.uh-card-teal .uh-card-action { background: rgba(20, 184, 166, 0.12); color: #0d9488; }

.uh-card-green:hover .uh-card-action,
.uh-card-blue:hover .uh-card-action,
.uh-card-amber:hover .uh-card-action,
.uh-card-teal:hover .uh-card-action {
    color: #fff;
}

.uh-card-green:hover .uh-card-action { background: #059669; }
.uh-card-blue:hover .uh-card-action { background: #2563eb; }
.uh-card-amber:hover .uh-card-action { background: #b45309; }
.uh-card-teal:hover .uh-card-action { background: #0d9488; }

/* Responsive */

@media (max-width: 768px) {
    .uh-wrap {
        padding: 1rem;
    }

    .uh-hero {
        padding: 1.75rem 1.5rem;
    }

    .uh-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .uh-stats {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
