.error {
    color: #f46a6a;
}
.parsley-error {
    border-color: #f46a6a;
}
.parsley-errors-list {
    display: none;
    margin: 0;
    padding: 0;
}
.parsley-errors-list.filled {
    display: block;
}
.parsley-errors-list>li {
    font-size: 12px;
    list-style: none;
    color: #f46a6a;
    margin-top: 5px;
}
.app-sidebar .side-menu__label{
    font-size: 12px !important;
    font-weight: 600;
}
.dropdown-menu{
    box-shadow: 0 2px 4px rgba(15,34,58,.12);
    min-width: 185px;
}
.font-size-14 {
    font-size: 14px !important;
}
.font-size-20{
    font-size:16px !important;
}

/* Notyf must sit above Bootstrap 5 modals (backdrop ~1050) so toasts stay visible */
.notyf {
    z-index: 10900 !important;
}

/* Sesame Seeds sidebar / header brand */
.sesame-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none !important;
    line-height: 1.15;
}
.sesame-brand-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, rgb(var(--primary-rgb)) 0%, rgb(var(--secondary-rgb)) 100%);
    color: #fff;
    font-size: 1.15rem;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.35);
}
.sesame-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.sesame-brand-name {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.sesame-brand-sub {
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.75;
    white-space: nowrap;
}
.sesame-brand.sidebar .sesame-brand-name,
.sesame-brand.sidebar .sesame-brand-sub,
.app-sidebar .sesame-brand-name,
.app-sidebar .sesame-brand-sub {
    color: #fff;
}
.sesame-brand.header .sesame-brand-name,
.app-header .sesame-brand-name {
    color: rgb(var(--primary-rgb));
}
.sesame-brand.header .sesame-brand-sub,
.app-header .sesame-brand-sub {
    color: #64748b;
}
.app-sidebar .header-logo img,
.horizontal-logo img {
    display: none !important;
}
.sesame-brand-icon {
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}
[data-toggled="close"] .app-sidebar .sesame-brand-text {
    display: none;
}
[data-toggled="close"] .app-sidebar .main-sidebar-header {
    padding-inline: 0.75rem;
}
[data-toggled="close"] .app-sidebar .sesame-brand {
    justify-content: center;
    width: 100%;
}

/* CRM Dashboard */
.crm-dashboard .dashboard-welcome {
    background: linear-gradient(135deg, rgb(var(--primary-rgb)) 0%, #6366f1 45%, rgb(var(--secondary-rgb)) 100%);
    border: none;
    border-radius: 16px;
    color: #fff;
    overflow: hidden;
    position: relative;
}
.crm-dashboard .dashboard-welcome::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -5%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}
.crm-dashboard .dashboard-welcome::after {
    content: "";
    position: absolute;
    bottom: -50%;
    left: 20%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}
.crm-dashboard .dashboard-welcome .card-body {
    position: relative;
    z-index: 1;
    padding: 1.75rem 2rem;
}
.crm-dashboard .welcome-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}
.crm-dashboard .welcome-sub {
    opacity: 0.9;
    font-size: 0.9rem;
    margin-bottom: 0;
}
.crm-dashboard .welcome-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
}
.crm-dashboard .stat-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}
.crm-dashboard .stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}
.crm-dashboard .stat-card .card-body {
    padding: 1.35rem 1.5rem;
    position: relative;
}
.crm-dashboard .stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}
.crm-dashboard .stat-card-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.75;
    margin-bottom: 0.35rem;
}
.crm-dashboard .stat-card-value {
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}
.crm-dashboard .stat-card-meta {
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-weight: 600;
}
.crm-dashboard .stat-card-meta.up {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}
.crm-dashboard .stat-card-meta.down {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}
.crm-dashboard .stat-card-meta.neutral {
    background: rgba(100, 116, 139, 0.12);
    color: #64748b;
}
.crm-dashboard .stat-card--primary { background: linear-gradient(145deg, #eef2ff 0%, #f8fafc 100%); }
.crm-dashboard .stat-card--primary .stat-card-icon { background: rgba(92, 103, 242, 0.15); color: #5c67f2; }
.crm-dashboard .stat-card--info { background: linear-gradient(145deg, #ecfeff 0%, #f8fafc 100%); }
.crm-dashboard .stat-card--info .stat-card-icon { background: rgba(14, 165, 233, 0.15); color: #0ea5e9; }
.crm-dashboard .stat-card--success { background: linear-gradient(145deg, #ecfdf5 0%, #f8fafc 100%); }
.crm-dashboard .stat-card--success .stat-card-icon { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.crm-dashboard .stat-card--warning { background: linear-gradient(145deg, #fffbeb 0%, #f8fafc 100%); }
.crm-dashboard .stat-card--warning .stat-card-icon { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.crm-dashboard .stat-card--purple { background: linear-gradient(145deg, #f5f3ff 0%, #f8fafc 100%); }
.crm-dashboard .stat-card--purple .stat-card-icon { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.crm-dashboard .stat-card--danger { background: linear-gradient(145deg, #fef2f2 0%, #f8fafc 100%); }
.crm-dashboard .stat-card--danger .stat-card-icon { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.crm-dashboard .chart-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    height: 100%;
}
.crm-dashboard .chart-card .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    padding: 1.15rem 1.5rem;
}
.crm-dashboard .chart-card-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
}
.crm-dashboard .chart-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.crm-dashboard .chart-card-sub {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0.15rem 0 0;
    font-weight: 500;
}
.crm-dashboard .lead-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    transition: background 0.15s ease;
}
.crm-dashboard .lead-row:last-child { border-bottom: none; }
.crm-dashboard .lead-row:hover { background: rgba(var(--primary-rgb), 0.03); }
.crm-dashboard .lead-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
    color: #fff;
    background: linear-gradient(135deg, rgb(var(--primary-rgb)), rgb(var(--secondary-rgb)));
}
.crm-dashboard .lead-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: inherit;
    text-decoration: none;
}
.crm-dashboard .lead-name:hover { color: rgb(var(--primary-rgb)); }
.crm-dashboard .lead-meta {
    font-size: 0.75rem;
    color: #64748b;
}
.crm-dashboard .quick-action-btn {
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
}
.crm-dashboard .section-gap { margin-bottom: 1.5rem; }