:root {
    --sh-primary: #6366f1;
    --sh-primary-hover: #4f46e5;
    --sh-secondary: #475569;
    --sh-accent: #10b981;
    --sh-bg: #f8fafc;
    --sh-card-bg: #ffffff;
    --sh-text: #1e293b;
    --sh-text-muted: #64748b;
    --sh-border: #e2e8f0;
    --sh-purple: #4f46e5;
    --sh-orange: #f59e0b;
}

.sh-customer-portal {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 800px;
}

.sh-portal-wrapper {
    display: flex;
    min-height: 800px;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    gap: 32px;
}

/* Sidebar */
.sh-portal-sidebar {
    width: 280px;
    background: #fff;
    border: 1px solid var(--sh-border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    height: fit-content;
    position: sticky;
    top: 24px;
}

.sh-portal-sidebar-header {
    border-bottom: 1px solid var(--sh-border);
    background: #3f4079 !important;
    color: #fff !important;
    padding: 20px 25px !important;
}

.sh-portal-sidebar-nav {
    padding: 16px 12px;
}

.sh-nav-link {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    color: var(--sh-text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 12px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.sh-nav-link i,
.sh-nav-link .dashicons {
    margin-right: 12px;
    font-size: 20px;
}

.sh-nav-link:hover {
    background: var(--sh-orange);
    color: #fff;
}

.sh-nav-link.active {
    background: var(--sh-accent);
    color: #fff;
}

/* Main Content */
.sh-portal-content {
    flex: 1;
    padding: 0;
    /* Remove padding if inside a container, or keep some for spacing */
    background: transparent;
    overflow: visible;
}

.sh-portal-header {
    margin-bottom: 32px;
    border-bottom: 1px solid var(--sh-border);
    padding-bottom: 24px;
}

.sh-portal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--sh-text);
}

/* Widgets */
.sh-widget-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.sh-widget-item {
    padding: 24px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--sh-border);
    display: flex;
    align-items: center;
    gap: 16px;
}

.sh-widget-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.sh-widget-info span {
    display: block;
    font-size: 0.85rem;
    color: var(--sh-text-muted);
    margin-bottom: 2px;
}

.sh-widget-info h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.sh-logout {
    background: #fcd4dc;
    color: #b40000;
}

.sh-logout:hover {
    background: #7a0000;
    color: #ffffff;
}

.sh-nav-link-doctor {
    background: var(--sh-orange);
    color: #fff;
}

.sh-nav-link-doctor:hover {
    background: #1e293b;
    color: #fff;
}

/* Tables */
.sh-table-container {
    border: 1px solid var(--sh-border);
    border-radius: 12px;
    overflow: hidden;
}

.sh-table {
    width: 100%;
    border-collapse: collapse;
}

.sh-table th {
    background: #f8fafc;
    padding: 16px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sh-text-muted);
    border-bottom: 1px solid var(--sh-border);
}

.sh-table td {
    padding: 16px;
    border-bottom: 1px solid var(--sh-border);
    font-size: 0.95rem;
}

.sh-table tr:last-child td {
    border-bottom: none;
}

/* Badges */
.sh-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.sh-badge-blue {
    background: #eff6ff;
    color: #2563eb;
}

.sh-badge-green {
    background: #ecfdf5;
    color: #059669;
}

.sh-badge-orange {
    background: #fff7ed;
    color: #ea580c;
}