/* =============================================
   Basic CRM - Global Custom Styles
   ============================================= */

/* ---- Base Layout ---- */
:root {
    sidebar-width: 260px;
    header-height: 60px;
    primary-gradient: linear-gradient(135deg, #6366f1, #4f46e5);
    success-gradient: linear-gradient(135deg, #10b981, #059669);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f3f4f6;
    min-height: 100vh;
}

/* ---- App Container ---- */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* ---- Sidebar ---- */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: #1e293b;
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    transition: transform 0.3s ease;
}

.sidebar .brand-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar .brand-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.sidebar .brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav .nav-link:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.sidebar-nav .nav-link.active {
    background: rgba(99,102,241,0.15);
    color: #818cf8;
    border-left-color: #818cf8;
}

.sidebar .user-profile-widget {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* ---- Main Wrapper ---- */
.main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
```css id="m3tz4n"
/* CRM Action Buttons */

.crm-action-btn{
    width:42px;
    height:42px;
    border-radius:50px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff;
    text-decoration:none;
    transition:all 0.2s ease;
    font-size:15px;
    border:none;
    outline:none;
    cursor:pointer;
}

/* Edit */

.crm-edit-btn{
    border:1.8px solid #2f6bff;
    color:#2f6bff;
}

.crm-edit-btn:hover{
    background:#2f6bff;
    color:#fff;
}

/* Reset */

.crm-reset-btn{
    border:1.8px solid #ff4b5c;
    color:#ff4b5c;
}

.crm-reset-btn:hover{
    background:#ff4b5c;
    color:#fff;
}

/* Delete */

.crm-delete-btn{
    border:1.8px solid #111;
    color:#111;
}

.crm-delete-btn:hover{
    background:#111;
    color:#fff;
}


/* ---- Header ---- */
.main-header {
    height: var(--header-height);
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1030;
}

/* ---- Content Body ---- */
.content-body {
    flex: 1;
    padding: 1.5rem;
}

/* ---- CRM Cards ---- */
.crm-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    
}

.crm-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.crm-card-body {
    padding: 1.25rem;
}

/* ---- Form Controls ---- */
.form-crm-control {
    border-radius: 8px;
    border-color: #d1d5db;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-crm-control:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

/* ---- Primary/Secondary Buttons ---- */
.btn-crm-primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s ease;
}

.btn-crm-primary:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    box-shadow: 0 2px 8px rgba(99,102,241,0.3);
    color: #fff;
}

.btn-crm-secondary {
    background: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s ease;
}

.btn-crm-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #374151;
}

/* ---- Status Badges ---- */
.badge-followup {
    background: #fef3c7;
    color: #92400e;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
}

.badge-won {
    background: #d1fae5;
    color: #065f46;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
}

.badge-lost {
    background: #fee2e2;
    color: #991b1b;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
}

/* ---- Search Suggest Box ---- */
.search-suggest-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1060;
    background: #fff;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    max-height: 280px;
    overflow-y: auto;
}

.search-suggest-item {
    padding: 0.65rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.12s;
}

.search-suggest-item:hover {
    background: #f0f4ff;
}

.search-suggest-item:last-child {
    border-bottom: none;
}

/* ---- Sticky Action Bar ---- */
.sticky-action-bar {
    position: fixed;
    bottom: 0;
    left: var(--sidebar-width);
    right: 0;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    z-index: 1030;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.sticky-action-bar-space {
    height: 60px;
}

/* ---- Mobile Responsive ---- */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .main-wrapper {
        margin-left: 0;
    }
    .sticky-action-bar {
        left: 0;
    }
    body.mobile-nav-active .sidebar {
        transform: translateX(0);
    }
}

/* ---- Animation ---- */
.animate-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
/* =============================================
   Custom Tag Badge
============================================= */

.tag-custom-badge{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #ffffff;
    padding: 7px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(79,70,229,0.25);
}

.tag-custom-badge i{
    font-size: 12px;
    color: rgba(255,255,255,0.8);
}

.tag-custom-badge:hover{
    background: linear-gradient(135deg, #6d28d9, #4338ca);
}
