/**
 * Noov'Hub Dashboard - Styles
 * Design inspiré du projet Lovable avec couleurs Noovimo
 */

/* === VARIABLES COULEURS NOOVIMO === */
:root {
    --noovimo-50: #FEF2F2;
    --noovimo-100: #FEE2E2;
    --noovimo-200: #FECACA;
    --noovimo-500: #DC2626; /* Rouge charte Noovimo */
    --noovimo-600: #B91C1C;
    --noovimo-700: #991B1B;

    --background: hsl(0, 0%, 100%);
    --foreground: hsl(222, 84%, 5%);
    --card-bg: hsl(0, 0%, 100%);
    --border: hsl(214, 32%, 91%);
    --muted: hsl(210, 40%, 96%);
    --muted-foreground: hsl(215, 16%, 47%);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --glow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.nhd-fullpage {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--background);
    color: var(--foreground);
    line-height: 1.5;
    overflow-x: hidden;
}

/* === LAYOUT PRINCIPAL === */
.nhd-layout {
    display: flex;
    min-height: 100vh;
}

/* === SIDEBAR === */
.nhd-sidebar {
    width: 256px;
    background: var(--card-bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.nhd-sidebar-header {
    padding: 24px 16px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.nhd-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.nhd-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--foreground);
}

.nhd-logo-tagline {
    font-size: 12px;
    color: var(--muted-foreground);
}

/* === NAVIGATION === */
.nhd-sidebar-nav {
    padding: 8px;
    flex: 1;
}

.nhd-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 4px;
    border-radius: 6px;
    color: var(--foreground);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
}

.nhd-nav-item:hover {
    background: var(--muted);
    color: var(--foreground);
}

.nhd-nav-item.active {
    background: var(--noovimo-100);
    color: var(--noovimo-700);
    font-weight: 600;
}

.nhd-nav-item.active:hover {
    background: var(--noovimo-200);
    color: var(--noovimo-700);
}

.nhd-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.nhd-nav-icon svg {
    width: 100%;
    height: 100%;
}

/* === USER PROFILE SIDEBAR === */
.nhd-sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
}

.nhd-user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.nhd-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--noovimo-500);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.nhd-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.nhd-user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nhd-user-email {
    font-size: 12px;
    color: var(--muted-foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nhd-logout-btn {
    display: block;
    width: 100%;
    padding: 8px 12px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: transparent;
    color: var(--foreground);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.nhd-logout-btn:hover {
    background: var(--muted);
    border-color: var(--noovimo-500);
    color: var(--noovimo-500);
}

/* === MAIN CONTENT === */
.nhd-main {
    flex: 1;
    background: var(--background);
    overflow-x: hidden;
}

.nhd-dashboard-container {
    padding: 16px 16px 0;
}

.nhd-main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 0 32px;
}

.nhd-grid {
    display: grid;
    gap: 16px;
}

.nhd-top-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-bottom: 16px;
}

.nhd-widgets-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    margin-bottom: 16px;
}

.nhd-mail-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nhd-mail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.nhd-mail-pill {
    font-size: 12px;
    font-weight: 700;
    color: #DC2626;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 999px;
    padding: 4px 8px;
}

.nhd-mail-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nhd-mail-list {
    display: grid;
    gap: 8px;
}

.nhd-mail-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 10px;
    background: var(--muted);
}

.nhd-mail-from {
    font-weight: 700;
    color: var(--foreground);
}

.nhd-mail-subject {
    font-size: 13px;
    color: var(--muted-foreground);
}

.nhd-mail-date {
    font-size: 12px;
    color: var(--muted-foreground);
}

.nhd-mail-empty {
    margin: 0;
    color: var(--muted-foreground);
}
.nhd-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    padding: 16px;
    position: relative;
}

.nhd-toolstrip {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nhd-toolstrip-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--foreground);
    background: var(--muted);
    transition: all 0.2s ease;
    min-width: 180px;
}

.nhd-toolstrip-item:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.nhd-toolstrip-icon svg {
    width: 18px;
    height: 18px;
}

.nhd-toolstrip-label {
    font-weight: 700;
}

.nhd-toolstrip-bar {
    margin-top: 10px;
    position: sticky;
    top: 12px;
    z-index: 2;
}

.nhd-card-header {
    margin-bottom: 12px;
}

.nhd-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--foreground);
}

.nhd-card-sub {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: var(--muted-foreground);
}

/* Drag & drop */
.nhd-drag-handle {
    position: absolute;
    top: 10px;
    right: 10px;
    border: 1px solid var(--border);
    background: #fff;
    color: #94A3B8;
    border-radius: 8px;
    padding: 4px 6px;
    cursor: grab;
    font-weight: 700;
    line-height: 1;
}

.nhd-dragging {
    opacity: 0.7;
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

.nhd-actions-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.nhd-actions-buttons-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 8px 0 12px 0;
}

.nhd-btn-compact {
    padding: 8px 14px;
}

.nhd-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--muted);
    color: var(--foreground);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nhd-chip:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.nhd-chip-icon svg {
    width: 16px;
    height: 16px;
}

.nhd-actions-list {
    display: grid;
    gap: 6px;
}

.nhd-quick-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.nhd-quick-tool {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--foreground);
    background: var(--muted);
    transition: all 0.2s ease;
}

.nhd-quick-tool:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.nhd-quick-icon svg {
    width: 18px;
    height: 18px;
}

.nhd-quick-label {
    font-weight: 600;
}

.nhd-action-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--foreground);
}

.nhd-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.nhd-dot.warning { background: #F59E0B; }
.nhd-dot.success { background: #10B981; }
.nhd-dot.muted { background: var(--muted-foreground); }

.nhd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--foreground);
    transition: all 0.2s;
}

.nhd-btn-primary {
    background: var(--noovimo-500);
    color: #fff;
    border-color: var(--noovimo-500);
    box-shadow: 0 8px 20px rgba(179, 40, 66, 0.2);
}

.nhd-btn-secondary {
    background: var(--muted);
    color: var(--foreground);
}

.nhd-btn-ghost {
    background: transparent;
    color: var(--foreground);
}

.nhd-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.nhd-objectives {
    display: grid;
    gap: 12px;
}

.nhd-objective {
    background: var(--muted);
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.nhd-obj-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 6px;
}

.nhd-obj-progress {
    height: 8px;
    background: #E5E7EB;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 8px;
}

.nhd-obj-bar {
    height: 100%;
    background: var(--noovimo-500);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.nhd-obj-bar.alt { background: #0EA5E9; }
.nhd-obj-bar.soft { background: #8B5CF6; }

.nhd-obj-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted-foreground);
}

.nhd-mini-agenda .nhd-agenda-list {
    display: grid;
    gap: 10px;
}

.nhd-agenda-empty {
    padding: 8px 4px;
    color: var(--muted-foreground);
    font-size: 13px;
}

.nhd-agenda-item {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--muted);
    align-items: center;
}

.nhd-agenda-time {
    font-weight: 700;
    color: var(--foreground);
    min-width: 48px;
}

.nhd-agenda-title {
    margin: 0;
    font-weight: 600;
    color: var(--foreground);
}

.nhd-agenda-date {
    font-size: 12px;
    color: var(--muted-foreground);
}

.nhd-agenda-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-top: 4px;
}

.nhd-gamification-card .nhd-gami-level {
    margin: 0;
    font-weight: 800;
    font-size: 16px;
    color: var(--foreground);
}

.nhd-gamification-card .nhd-gami-caption {
    margin: 2px 0 0 0;
    font-size: 13px;
    color: var(--muted-foreground);
}

.nhd-gamification-card .nhd-gami-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    background: #E6F4EA;
    color: #15803D;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
    border: 1px solid #C2E3CD;
}

.nhd-gami-progress {
    height: 10px;
    background: #E5E7EB;
    border-radius: 999px;
    overflow: hidden;
    margin: 12px 0 8px 0;
}

.nhd-gami-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--noovimo-500), #0EA5E9);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.nhd-gami-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted-foreground);
    margin-bottom: 8px;
}

.nhd-gami-next {
    font-weight: 600;
}

.nhd-gami-tasks {
    display: grid;
    gap: 6px;
    font-size: 13px;
    color: var(--foreground);
}

/* === HERO === */
.nhd-hero {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.12), rgba(15, 23, 42, 0.06));
    border: 1px solid var(--border);
    box-shadow: var(--glow);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.nhd-hero-text {
    flex: 1;
    min-width: 260px;
}

.nhd-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(179, 40, 66, 0.12);
    color: var(--noovimo-700);
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.nhd-hero h1 {
    margin: 10px 0 6px 0;
    font-size: 28px;
    font-weight: 800;
    color: var(--foreground);
}

.nhd-welcome {
    margin: 0;
    font-size: 14px;
    color: var(--muted-foreground);
}

.nhd-hero-highlight {
    font-size: 15px;
    font-weight: 700;
    color: var(--foreground);
}

.nhd-hero-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.nhd-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.nhd-badge-live {
    background: #E6F4EA;
    color: #15803D;
    border: 1px solid #C2E3CD;
}

.nhd-badge-soft {
    background: #EEF2FF;
    color: #4338CA;
    border: 1px solid #C7D2FE;
}

.nhd-hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    min-width: 320px;
}

.nhd-hero-stat {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    box-shadow: var(--shadow-md);
}

.nhd-hero-label {
    margin: 0 0 4px 0;
    color: var(--muted-foreground);
    font-size: 12px;
    letter-spacing: 0.01em;
}

.nhd-hero-value {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--foreground);
}

.nhd-hero-caption {
    font-size: 12px;
    color: var(--muted-foreground);
}

/* Welcome block removed */
.nhd-hero-progress {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255,255,255,0.8);
    box-shadow: var(--shadow-sm);
}

.nhd-hero-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nhd-gami-level {
    margin: 0;
    font-weight: 800;
    font-size: 16px;
    color: var(--foreground);
}

.nhd-gami-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    background: #E6F4EA;
    color: #15803D;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
    border: 1px solid #C2E3CD;
}

.nhd-gami-progress {
    height: 10px;
    background: #E5E7EB;
    border-radius: 999px;
    overflow: hidden;
    margin: 12px 0 8px 0;
}

.nhd-gami-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--noovimo-500), #0EA5E9);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.nhd-gami-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted-foreground);
    margin-bottom: 4px;
}

.nhd-gami-next {
    font-weight: 600;
}

/* === HEADER === */
.nhd-header {
    margin-bottom: 24px;
}

.nhd-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 6px;
}

/* === STATS GRID === */
.nhd-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.nhd-stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.nhd-stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.nhd-stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.nhd-stat-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--foreground);
}

.nhd-stat-icon {
    width: 16px;
    height: 16px;
    color: var(--muted-foreground);
}

.nhd-stat-icon svg {
    width: 100%;
    height: 100%;
}

.nhd-stat-content {
    /* Contenu de la carte */
}

.nhd-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 4px;
}

.nhd-stat-description {
    font-size: 12px;
    color: var(--muted-foreground);
    margin: 0;
}

/* === SECTIONS === */
.nhd-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.nhd-section-header {
    margin-bottom: 16px;
}

.nhd-section-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 4px;
}

.nhd-section-description {
    font-size: 14px;
    color: var(--muted-foreground);
    margin: 0;
}

/* === ÉVOLUTION CHART === */
.nhd-evolution-section {
    min-height: 200px;
}

.nhd-evo-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nhd-evo-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
}

.nhd-evo-title {
    margin: 0;
    font-size: 13px;
    color: var(--muted-foreground);
}

.nhd-evo-value {
    margin: 2px 0 0 0;
    font-size: 26px;
    font-weight: 700;
}

.nhd-evo-trend {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-weight: 600;
}

.nhd-evo-trend.up {
    color: #059669;
}

.nhd-evo-trend.down {
    color: #dc2626;
}

.nhd-evo-trend small {
    font-weight: 500;
    color: var(--muted-foreground);
}

.nhd-evo-chart {
    width: 100%;
    background: var(--muted);
    border-radius: 10px;
    padding: 8px;
}

.nhd-evo-chart svg {
    width: 100%;
    height: auto;
}

.nhd-evo-area {
    fill: rgba(225, 29, 72, 0.12);
}

.nhd-evo-line {
    fill: none;
    stroke: #e11d48;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nhd-evo-dot {
    fill: #e11d48;
    stroke: #fff;
    stroke-width: 1.5;
}

.nhd-evo-xlabel {
    font-size: 11px;
    fill: var(--muted-foreground);
    text-anchor: middle;
}

.nhd-calendar-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.nhd-calendar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--foreground);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}

/* === DASHBOARD CALENDAR === */
.nhd-dashboard-calendar .nhd-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.nhd-cal-nav {
    display: flex;
    gap: 6px;
}

.nhd-cal-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--foreground);
    text-decoration: none;
    font-weight: 700;
}

.nhd-cal-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.nhd-cal-dayhead {
    text-align: center;
    font-size: 12px;
    color: var(--muted-foreground);
    font-weight: 600;
}

.nhd-cal-day {
    min-height: 62px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 6px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
}

.nhd-cal-day.today {
    border-color: #e11d48;
    box-shadow: 0 0 0 2px rgba(225, 29, 72, 0.16);
}

.nhd-cal-day.has-events {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
}

.nhd-cal-day.empty {
    background: transparent;
    border: 1px dashed var(--border);
}

.nhd-cal-num {
    font-weight: 700;
    color: var(--foreground);
    font-size: 13px;
}

.nhd-cal-dot {
    align-self: flex-end;
    background: #e11d48;
    color: #fff;
    border-radius: 999px;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}

.nhd-cal-footer {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.nhd-cal-link {
    color: #e11d48;
    font-weight: 700;
    text-decoration: none;
}

.nhd-cal-note {
    font-size: 12px;
    color: var(--muted-foreground);
}

.nhd-chart-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    background: var(--muted);
    border-radius: 10px;
    color: var(--muted-foreground);
    font-size: 14px;
}

/* === ACTIVITY TABS === */
.nhd-activity-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
    padding-bottom: 2px;
    flex-wrap: wrap;
}

.nhd-tab-trigger {
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--muted-foreground);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nhd-tab-trigger:hover {
    color: var(--foreground);
}

.nhd-tab-trigger.active {
    color: var(--noovimo-500);
    border-bottom-color: var(--noovimo-500);
}

.nhd-tab-content {
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.nhd-tab-content.active {
    display: block;
}

/* === ACTIVITY ITEMS === */
.nhd-activity-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.nhd-activity-item:last-child {
    border-bottom: none;
}

.nhd-activity-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--noovimo-500);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.nhd-activity-info {
    flex: 1;
    min-width: 0;
}

.nhd-activity-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.nhd-activity-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--foreground);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nhd-activity-date {
    font-size: 12px;
    color: var(--muted-foreground);
    flex-shrink: 0;
    margin-left: 8px;
}

.nhd-activity-description {
    font-size: 13px;
    color: var(--muted-foreground);
    margin: 0;
    line-height: 1.4;
}

.nhd-no-activities {
    text-align: center;
    padding: 24px;
    color: var(--muted-foreground);
    font-size: 14px;
}

/* === NOTICE === */
.nhd-notice {
    background: var(--noovimo-50);
    border: 1px solid var(--noovimo-200);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: var(--noovimo-700);
    margin: 40px auto;
    max-width: 600px;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .nhd-sidebar {
        position: fixed;
        left: -256px;
        z-index: 1000;
        transition: left 0.3s ease;
    }

    .nhd-sidebar.open {
        left: 0;
    }
}

@media (max-width: 768px) {
    .nhd-main-content {
        padding: 20px 16px;
    }

    .nhd-header h1 {
        font-size: 24px;
    }

    .nhd-stats-grid {
        grid-template-columns: 1fr;
    }

    .nhd-activity-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .nhd-activity-date {
        margin-left: 0;
        margin-top: 4px;
    }
}

/* === SCROLLBAR === */
.nhd-sidebar::-webkit-scrollbar,
.nhd-tab-content::-webkit-scrollbar {
    width: 6px;
}

.nhd-sidebar::-webkit-scrollbar-track,
.nhd-tab-content::-webkit-scrollbar-track {
    background: transparent;
}

.nhd-sidebar::-webkit-scrollbar-thumb,
.nhd-tab-content::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.nhd-sidebar::-webkit-scrollbar-thumb:hover,
.nhd-tab-content::-webkit-scrollbar-thumb:hover {
    background: var(--muted-foreground);
}

/* === CALENDAR WIDGET === */
.nhd-calendar-widget {
    grid-column: span 1;
}

.nhd-widget {
    background: var(--card);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.nhd-widget-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.nhd-widget-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--foreground);
}

.nhd-widget-title svg {
    color: #DC2626;
}

.nhd-widget-content {
    padding: 20px;
}

/* Mini Calendrier */
.nhd-mini-calendar {
    margin-bottom: 24px;
}

.nhd-mini-calendar-header {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 12px;
    color: var(--foreground);
}

.nhd-mini-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.nhd-mini-calendar-day-header {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    padding: 6px 0;
    color: var(--muted-foreground);
}

.nhd-mini-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border-radius: 6px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

.nhd-mini-calendar-day:not(.empty):hover {
    background-color: var(--muted);
}

.nhd-mini-calendar-day.today {
    background-color: #DC2626;
    color: white;
    font-weight: 600;
}

.nhd-mini-calendar-day.has-events .nhd-event-dot {
    position: absolute;
    bottom: 2px;
    width: 4px;
    height: 4px;
    background-color: #DC2626;
    border-radius: 50%;
}

.nhd-mini-calendar-day.today.has-events .nhd-event-dot {
    background-color: white;
}

.nhd-mini-calendar-day.empty {
    visibility: hidden;
}

/* Liste des événements */
.nhd-upcoming-events-header {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--foreground);
}

.nhd-no-events {
    text-align: center;
    padding: 32px 20px;
    color: var(--muted-foreground);
}

.nhd-no-events svg {
    margin-bottom: 12px;
}

.nhd-no-events p {
    font-size: 13px;
    margin: 0;
}

.nhd-events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nhd-event-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--muted);
    border-radius: 8px;
    transition: all 0.2s;
}

.nhd-event-item:hover {
    background: var(--border);
}

.nhd-event-indicator {
    width: 4px;
    border-radius: 2px;
    flex-shrink: 0;
}

.nhd-event-blue { background-color: #3B82F6; }
.nhd-event-green { background-color: #22C55E; }
.nhd-event-purple { background-color: #A855F7; }
.nhd-event-orange { background-color: #F97316; }
.nhd-event-amber { background-color: #F59E0B; }
.nhd-event-teal { background-color: #14B8A6; }
.nhd-event-yellow { background-color: #EAB308; }
.nhd-event-gray { background-color: #6B7280; }

.nhd-event-details {
    flex: 1;
    min-width: 0;
}

.nhd-event-time {
    font-size: 12px;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nhd-event-date {
    font-size: 11px;
    font-weight: 400;
    color: var(--muted-foreground);
}

.nhd-google-badge {
    display: inline-flex;
    align-items: center;
    background: #f3f4f6;
    padding: 2px 4px;
    border-radius: 3px;
}

.nhd-event-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nhd-event-location {
    font-size: 11px;
    color: var(--muted-foreground);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nhd-event-location svg {
    flex-shrink: 0;
}

/* Footer du widget */
.nhd-widget-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.nhd-view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #DC2626;
    text-decoration: none;
    transition: all 0.2s;
}

.nhd-view-all-link:hover {
    gap: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .nhd-calendar-widget {
        grid-column: span 1;
    }

    .nhd-mini-calendar-day {
        font-size: 11px;
    }
}

/* === CALENDAR WIDGET COMPACT === */
.nhd-calendar-widget-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.nhd-calendar-widget-card .nhd-stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.nhd-upcoming-events-compact {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.nhd-no-events-compact {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
    font-size: 13px;
    padding: 20px;
}

.nhd-events-list-compact {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 12px;
}

.nhd-event-item-compact {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.nhd-event-item-compact:last-child {
    border-bottom: none;
}

.nhd-event-time-compact {
    font-size: 13px;
    font-weight: 700;
    color: #DC2626;
    min-width: 45px;
}

.nhd-event-info-compact {
    flex: 1;
    min-width: 0;
}

.nhd-event-title-compact {
    font-size: 13px;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nhd-google-badge-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    color: #4285F4;
    background: #E8F0FE;
    padding: 2px 5px;
    border-radius: 3px;
    flex-shrink: 0;
}

.nhd-event-date-compact {
    font-size: 11px;
    color: var(--muted-foreground);
}

/* Boutons d'action */
.nhd-calendar-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.nhd-calendar-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.nhd-calendar-btn-primary {
    background-color: #DC2626;
    color: white;
}

.nhd-calendar-btn-primary:hover {
    background-color: #B91C1C;
}

.nhd-calendar-btn-secondary {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--foreground);
}

.nhd-calendar-btn-secondary:hover {
    background-color: var(--muted);
}

/* Responsive */
@media (max-width: 768px) {
    .nhd-calendar-actions {
        flex-direction: column;
    }

    .nhd-calendar-btn {
        width: 100%;
    }
}

/* === Quick actions compact & chips === */
.nhd-btn-compact {
    padding: 8px 14px;
}

.nhd-actions-buttons-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 8px 0 12px 0;
}

.nhd-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--muted);
    color: var(--foreground);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nhd-chip:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.nhd-chip-icon svg {
    width: 16px;
    height: 16px;
}

/* === Agenda badges === */
.nhd-agenda-item {
    align-items: center;
}

.nhd-agenda-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-top: 4px;
}

/* === Toolstrip sticky + mobile scroll === */
.nhd-toolstrip-bar {
    margin-top: 10px;
    position: sticky;
    top: 12px;
    z-index: 2;
}

@media (max-width: 1024px) {
    .nhd-toolstrip {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .nhd-toolstrip-item {
        flex: 0 0 auto;
    }
}
