/* YuggCare dashboard theme — patient, dietician & admin */

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

:root {
    --yc-primary: #0f766e;
    --yc-primary-hover: #0d9488;
    --yc-accent-soft: #f0fdfa;
    --yc-text: #0f172a;
    --yc-muted: #64748b;
    --yc-border: #e2e8f0;
    --yc-radius: 16px;
    --yc-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* Patient / Dietician portal */
.profile-sidebar,
.yc-sidebar {
    border: 1px solid var(--yc-border) !important;
    border-radius: 20px !important;
    overflow: hidden;
    box-shadow: var(--yc-shadow) !important;
    background: #fff !important;
}

.widget-profile.pro-widget-content {
    background: linear-gradient(180deg, var(--yc-accent-soft), #fff) !important;
    border-bottom: 1px solid var(--yc-border) !important;
}

.profile-info-widget .booking-doc-img img {
    width: 96px !important;
    height: 96px !important;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.2);
}

.profile-det-info h3 {
    font-weight: 800 !important;
    color: var(--yc-text) !important;
}

.dashboard-menu ul li a {
    border-radius: 12px !important;
    margin: 4px 12px !important;
    padding: 12px 16px !important;
    font-weight: 600 !important;
    color: var(--yc-muted) !important;
    transition: all 0.2s ease;
}

.dashboard-menu ul li a i {
    color: var(--yc-primary) !important;
}

.dashboard-menu ul li.active a,
.dashboard-menu ul li a:hover {
    background: var(--yc-accent-soft) !important;
    color: var(--yc-primary) !important;
}

.yc-welcome-card {
    background: linear-gradient(135deg, #042f2e 0%, #0f766e 55%, #14b8a6 100%);
    color: #fff;
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: 0 16px 40px rgba(15, 118, 110, 0.25);
}

.yc-welcome-card h3 {
    color: #fff !important;
    font-weight: 800;
    margin-bottom: 8px;
}

.yc-welcome-card p {
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
}

.yc-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.yc-stat-card {
    background: #fff;
    border: 1px solid var(--yc-border);
    border-radius: 18px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--yc-shadow);
    transition: transform 0.2s ease;
}

.yc-stat-card:hover {
    transform: translateY(-3px);
}

.yc-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.yc-stat-icon.teal { background: #ccfbf1; color: #0f766e; }
.yc-stat-icon.blue { background: #dbeafe; color: #2563eb; }
.yc-stat-icon.amber { background: #fef3c7; color: #d97706; }

.yc-stat-card h6 {
    margin: 0 0 4px;
    color: var(--yc-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.yc-stat-card h3 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--yc-text);
}

.yc-stat-card p {
    margin: 4px 0 0;
    color: var(--yc-muted);
    font-size: 0.85rem;
}

.dash-card,
.card.card-table,
.content .card {
    border: 1px solid var(--yc-border) !important;
    border-radius: 18px !important;
    box-shadow: var(--yc-shadow) !important;
}

.nav-tabs .nav-link.active {
    color: var(--yc-primary) !important;
    border-color: var(--yc-primary) !important;
    font-weight: 700;
}

.table thead th {
    border-top: none !important;
    color: var(--yc-muted) !important;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}

.badge.bg-success-light { background: #dcfce7 !important; color: #166534 !important; }
.badge.bg-warning-light { background: #fef3c7 !important; color: #92400e !important; }
.badge.bg-danger-light { background: #fee2e2 !important; color: #991b1b !important; }
.badge.bg-info-light { background: #cffafe !important; color: #155e75 !important; }

.yc-sidebar-badge {
    margin-left: auto;
    font-size: 0.7rem;
    min-width: 20px;
    padding: 0.2rem 0.45rem;
}

body .sidebar-menu ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
}

body .noti-dropdown .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0fdfa;
    color: #0f766e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body .noti-dropdown .clear-noti {
    border: none;
    background: none;
    color: #f83f37;
    font-size: 12px;
}

/* Admin dashboard */
body .header {
    background: #fff !important;
    border-bottom: 1px solid var(--yc-border);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

body .header .logo img {
    max-height: 40px;
    width: auto;
}

body .sidebar {
    background: #0f172a !important;
}

body .sidebar-menu ul li a {
    border-radius: 10px;
    margin: 2px 10px;
    font-weight: 600;
}

body .sidebar-menu ul li.active > a,
body .sidebar-menu ul li a:hover {
    background: rgba(20, 184, 166, 0.15) !important;
    color: #5eead4 !important;
}

body .sidebar-menu .menu-title span {
    color: #64748b !important;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.7rem;
}

body .page-wrapper {
    background: #f8fafc !important;
}

body .page-header .page-title {
    font-weight: 800 !important;
    color: var(--yc-text) !important;
}

body .dash-widget-header .dash-widget-icon {
    border-radius: 14px !important;
    width: 52px !important;
    height: 52px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: var(--yc-accent-soft) !important;
    color: var(--yc-primary) !important;
    border: none !important;
}

body .dash-count h3 {
    font-weight: 800 !important;
    color: var(--yc-text) !important;
}

body .card {
    border: 1px solid var(--yc-border) !important;
    border-radius: 16px !important;
    box-shadow: var(--yc-shadow) !important;
}

body .table {
    color: var(--yc-text);
}

body .btn-primary {
    background: var(--yc-primary) !important;
    border-color: var(--yc-primary) !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
}

.yc-section-title {
    font-weight: 800;
    color: var(--yc-text);
    margin-bottom: 16px;
}

/* Hide legacy circle widgets when using yc-stat-grid */
.yc-modern-dashboard .circle-bar,
.yc-modern-dashboard .circle-graph1,
.yc-modern-dashboard .circle-graph2,
.yc-modern-dashboard .circle-graph3 {
    display: none !important;
}

.yc-modern-dashboard .dash-widget {
    border: none !important;
    padding: 0 !important;
}

.yc-modern-dashboard .dct-border-rht {
    border-right: none !important;
}
