:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --bg-light: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.82);
    --glass-border: rgba(0, 0, 0, 0.08);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --sidebar-w: 260px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.12;
    animation: blobBounce 20s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #818cf8;
    top: -100px;
    right: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: #f472b6;
    bottom: -50px;
    left: 10%;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background: #38bdf8;
    top: 30%;
    right: 30%;
}

@keyframes blobBounce {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-w);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, var(--text-main), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    list-style: none;
    flex-grow: 1;
}

.nav-links li {
    margin-bottom: 0.5rem;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    transition: var(--transition);
}

.nav-links li.active a, .nav-links a:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-main);
}

.nav-links li.active a i {
    color: var(--primary);
}

.user-profile {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.user-info .name { font-weight: 600; font-size: 0.9rem; }
.user-info .status { font-size: 0.75rem; color: #10b981; }

/* Content */
.content {
    margin-left: var(--sidebar-w);
    padding: 2rem 3rem;
    width: calc(100% - var(--sidebar-w));
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.search-bar {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1.2rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 400px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--text-main);
    outline: none;
    width: 100%;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notification {
    position: relative;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 50%;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.glass {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    transition: var(--transition);
}

.glass:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-icon.purple { background: rgba(168, 85, 247, 0.1); color: #a855f7; }
.stat-icon.blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.stat-icon.green { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.stat-icon.orange { background: rgba(249, 115, 22, 0.1); color: #f97316; }

.stat-info h3 { font-size: 1.5rem; font-weight: 800; }
.stat-info p { font-size: 0.85rem; color: var(--text-muted); }

/* Main Grid */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

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

.data-table th {
    text-align: left;
    padding: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--glass-border);
}

.data-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.business-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.b-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.status-pill {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pill.pending { background: rgba(249, 115, 22, 0.1); color: #f97316; }
.status-pill.success { background: rgba(34, 197, 94, 0.1); color: #22c55e; }

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover { background: var(--primary-hover); transform: scale(1.02); }

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    cursor: pointer;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-muted);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-icon:hover { color: var(--primary); background: rgba(99, 102, 241, 0.1); }

/* Side Panel Widgets */
.invite-link-wrapper {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.invite-link-wrapper input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-main);
    font-size: 0.8rem;
    outline: none;
}

.side-card h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

select {
    appearance: none;
    cursor: pointer;
}

.ai-box p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.4; }

.ai-box textarea {
    width: 100%;
    height: 120px;
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    outline: none;
    resize: none;
}

select {
    background: rgba(255,255,255,0.9) !important;
    color: var(--text-main) !important;
}

.btn-full {
    width: 100%;
    background: linear-gradient(45deg, #6366f1, #a855f7);
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
}
