* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #0f1419;
    color: #e1e8ed;
    height: 100vh;
    overflow: hidden;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #1a1f2e;
    padding: 2px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #2d3748;
    z-index: 100;
    height: 75px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    opacity: 1;
}

.logo-img {
    height: 70px;
    width: auto;
    border-radius: 8px;
    opacity: 1;
}

.search-bar {
    flex: 1;
    max-width: 600px;
    margin: 0 32px;
    position: relative;
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-bar i.fa-search {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
}

.search-bar input {
    flex: 1;
    padding: 10px 12px 10px 40px;
    background-color: #2d3748;
    border: 1px solid #4a5568;
    border-radius: 8px;
    color: #e1e8ed;
    font-size: 14px;
}

.search-bar input:focus {
    outline: none;
    border-color: #667eea;
}

.filter-toggle-btn {
    padding: 10px 16px;
    background-color: #2d3748;
    border: 1px solid #4a5568;
    border-radius: 8px;
    color: #e1e8ed;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.filter-toggle-btn:hover {
    background-color: #374151;
    border-color: #667eea;
}

/* Filter Panel */
.filter-panel {
    position: absolute;
    top: 60px;
    right: 24px;
    background-color: #1a1f2e;
    border: 1px solid #2d3748;
    border-radius: 12px;
    padding: 20px;
    width: 320px;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.filter-group {
    margin-bottom: 16px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #a0aec0;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 10px 12px;
    background-color: #2d3748;
    border: 1px solid #4a5568;
    border-radius: 8px;
    color: #e1e8ed;
    font-size: 14px;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #667eea;
}

.filter-date-range .date-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-date-range .date-inputs input[type="date"] {
    flex: 1;
    min-width: 0;
}

.date-separator {
    color: #718096;
    font-size: 12px;
    white-space: nowrap;
}

.filter-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.filter-actions button {
    flex: 1;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #e1e8ed;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    margin-right: 16px;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
}

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

.icon-btn {
    background: transparent;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    font-size: 18px;
    transition: all 0.2s;
}

.icon-btn:hover {
    background-color: #2d3748;
    color: #e1e8ed;
}

.profile-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
}

/* Main Container */
.main-container {
    display: flex;
    height: 100vh;
    padding-top: 76px;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: #1a1f2e;
    border-right: 1px solid #2d3748;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: width 0.3s ease;
    height: 100vh;
}

.sidebar.collapsed {
    width: 60px;
}

.sidebar.collapsed .sidebar-content {
    padding: 16px 8px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sidebar.collapsed .menu-item span {
    display: none;
}

.sidebar.collapsed .menu-group-label span {
    display: none;
}

.sidebar.collapsed .menu-group-label {
    justify-content: center;
    padding: 16px 8px 8px 8px;
}

.sidebar.collapsed .menu-item {
    justify-content: center;
    padding: 10px 8px;
}

.sidebar.collapsed .sidebar-section {
    display: none !important;
}

.sidebar.collapsed .sidebar-toggle i {
    transform: rotate(180deg);
}

.sidebar.collapsed .sidebar-toggle {
    padding: 12px 8px;
}

.sidebar-toggle {
    width: 100%;
    height: 40px;
    padding: 12px 16px;
    background: rgba(102, 126, 234, 0.1);
    border: none;
    border-bottom: 1px solid #2d3748;
    color: #667eea;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    flex-shrink: 0;
}

.sidebar-toggle:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #7c8ff5;
}

.sidebar-toggle i {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.sidebar.collapsed .sidebar-toggle .toggle-text {
    display: none;
}

.sidebar-content {
    padding: 16px;
    flex: 1 1 0;
    overflow-y: auto;
    overflow-x: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    min-height: 0;
    max-height: calc(100vh - 50px);
}

.sidebar-header h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.sidebar-header p {
    font-size: 12px;
    color: #718096;
    margin-bottom: 20px;
}

.channel-list {
    flex: 1;
}

.channel-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    background-color: #0f1419;
    transition: background-color 0.2s;
}

.channel-item:hover {
    background-color: #2d3748;
}

.channel-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.channel-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: white;
}

.channel-icon.facebook {
    background-color: #1877f2;
    color: white;
}

.channel-icon.google-sheets {
    background-color: #0f9d58;
    color: white;
}

.channel-icon.web {
    background-color: #3b82f6;
    color: white;
}

.channel-icon.email {
    background-color: #6b7280;
    color: white;
}

.channel-icon.linkedin {
    background-color: #0077b5;
    color: white;
}

.channel-icon.phone {
    background-color: #10b981;
    color: white;
}

.channel-info {
    flex: 1;
}

.channel-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.channel-stats {
    font-size: 12px;
    color: #718096;
}

/* Toggle Switch */
.toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #4a5568;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle input:checked + .toggle-slider {
    background-color: #667eea;
}

.toggle input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* Sidebar Menu */
.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    color: #9ca3af;
    text-decoration: none;
    height: 40px;
}

.menu-item i {
    width: 20px;
    text-align: center;
}

.menu-item:hover {
    background-color: rgba(102, 126, 234, 0.1);
    color: #e1e8ed;
}

.menu-item.active {
    background-color: rgba(102, 126, 234, 0.2);
    color: #7c8ff5;
}

/* Menu Group Label */
.menu-group-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 12px 8px 12px;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.menu-group-label i {
    width: 20px;
    text-align: center;
    font-size: 14px;
}

/* Sidebar Sections */
.sidebar-section {
    display: none;
}

.sidebar-section.active {
    display: block;
}

/* Organization Chart Styles */
.org-workspace {
    background-color: rgba(30, 41, 59, 0.3);
    border-radius: 12px;
    padding: 40px;
    overflow-x: auto;
    overflow-y: auto;
    flex: 1;
    position: relative;
    min-height: 600px;
}

.org-connectors {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
}

.org-chart {
    padding: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: fit-content;
    min-width: 100%;
    margin: 0 auto;
    position: relative;
    transform-origin: center top;
    transition: transform 0.3s ease;
}

.org-level {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    padding-top: 70px;
    width: 100%;
}

.org-level.ceo-level {
    padding-top: 0;
    margin-bottom: 70px;
}

/* New Card Style Organization Chart */
.org-node-card {
    background-color: rgba(26, 31, 46, 0.4);
    border-radius: 12px;
    padding: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    width: 280px;
}

.org-node-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.org-node-card.ceo {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    backdrop-filter: blur(10px);
}

.org-node-card.manager {
    background-color: rgba(26, 31, 46, 0.5);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.org-node-card.team {
    background-color: rgba(26, 31, 46, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 260px;
}

.card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.card-text {
    flex: 1;
    text-align: left;
}

.card-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.card-title {
    font-size: 13px;
    color: #ffffff;
    margin-bottom: 8px;
}

.card-location {
    font-size: 12px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-location i {
    font-size: 10px;
}

.card-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.card-avatar i {
    font-size: 32px;
    color: #9ca3af;
}

.card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Team Cards */
.team-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    padding: 40px 20px;
    max-width: 280px;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.team-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.team-content {
    text-align: center;
    color: #78716c;
}

.team-content i {
    font-size: 36px;
    margin-bottom: 12px;
    opacity: 0.6;
}

.team-name {
    font-size: 14px;
    font-weight: 600;
    color: #57534e;
    margin-bottom: 4px;
}

.team-count {
    font-size: 12px;
    color: #78716c;
}

/* Connection styles for 3 branches */
.tree-branches.three-branches {
    padding: 0 20%;
}

.tree-branches.three-branches .tree-branch:nth-child(1)::before {
    right: 0;
    width: calc(200% + 2px);
}

.tree-branches.three-branches .tree-branch:nth-child(2)::before {
    width: 0;
}

.tree-branches.three-branches .tree-branch:nth-child(3)::before {
    left: 0;
    width: calc(200% + 2px);
}

/* Connection from middle manager to teams */
.connection-single {
    position: relative;
    width: 50%;
    margin: 0 auto;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.single-trunk {
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, rgba(102, 126, 234, 0.6), rgba(102, 126, 234, 0.5));
}

.single-branches {
    position: relative;
    width: 100%;
    height: 20px;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding: 0 10%;
}

.single-branches .tree-branch:nth-child(1)::before {
    right: 0;
    width: calc(200% + 2px);
}

.single-branches .tree-branch:nth-child(2)::before {
    width: 0;
}

.single-branches .tree-branch:nth-child(3)::before {
    left: 0;
    width: calc(200% + 2px);
}

/* Update manager level for single card */
.org-level.manager-level {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 900px;
    padding-top: 0;
}

.org-level.team-level {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

/* Old org-node styles (keep for backward compatibility) */
.org-node {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin: 0 auto 16px;
    text-align: center;
    transition: all 0.3s;
}

.org-node:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.org-node.ceo {
    max-width: 200px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(234, 88, 12, 0.2) 100%);
    border-color: rgba(245, 158, 11, 0.4);
}

.org-node.manager {
    max-width: 150px;
}

.org-node.member {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 13px;
    margin: 4px;
}

.node-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 24px;
    color: white;
}

.org-node.ceo .node-avatar {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
}

.node-info {
    text-align: center;
}

.node-name {
    font-size: 14px;
    font-weight: 600;
    color: #f9fafb;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.node-tooltip {
    position: relative;
    display: inline-flex;
    cursor: help;
}

.node-tooltip i {
    font-size: 12px;
    color: #667eea;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.node-tooltip:hover i {
    opacity: 1;
}

.node-tooltip::before {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: #1e293b;
    color: #e1e8ed;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
    max-width: 250px;
    white-space: normal;
    width: max-content;
    max-width: 300px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1000;
    border: 1px solid #667eea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.node-tooltip:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

.node-role {
    font-size: 12px;
    color: #9ca3af;
}

.org-connection {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, rgba(102, 126, 234, 0.5), rgba(102, 126, 234, 0.2));
    margin: 0 auto;
}

/* Connection Tree - branches from CEO to managers */
.connection-tree {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tree-trunk {
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, rgba(102, 126, 234, 0.6), rgba(102, 126, 234, 0.5));
}

.tree-branches {
    position: relative;
    width: 100%;
    height: 20px;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding: 0 10%;
}

.tree-branch {
    position: relative;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(102, 126, 234, 0.5), rgba(102, 126, 234, 0.3));
}

.tree-branch::before {
    content: '';
    position: absolute;
    top: 0;
    height: 2px;
    background: linear-gradient(to right, rgba(102, 126, 234, 0.5), rgba(102, 126, 234, 0.3));
}

/* Branch horizontal lines connecting to center */
.tree-branch:nth-child(1)::before {
    right: 0;
    width: calc(400% + 2px);
}

.tree-branch:nth-child(2)::before {
    right: 0;
    width: calc(200% + 2px);
}

.tree-branch:nth-child(3)::before {
    width: 0;
}

.tree-branch:nth-child(4)::before {
    left: 0;
    width: calc(200% + 2px);
}

.tree-branch:nth-child(5)::before {
    left: 0;
    width: calc(400% + 2px);
}

.org-level {
    display: grid;
    gap: 12px;
}

.org-level.manager-level {
    grid-template-columns: repeat(5, 1fr);
    max-width: 1200px;
    margin: 0 auto;
}

.org-level.managers {
    grid-template-columns: repeat(2, 1fr);
}

.org-level.members {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.member-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

/* Responsive adjustments for managers */
@media (max-width: 1200px) {
    .org-level.manager-level {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -280px;
        top: 76px;
        height: calc(100vh - 76px);
        z-index: 200;
        transition: left 0.3s ease;
        width: 280px !important;
    }
    
    .sidebar.mobile-open {
        left: 0;
    }
    
    .sidebar.collapsed {
        left: -280px;
        width: 280px !important;
    }
    
    .sidebar.collapsed.mobile-open {
        left: 0;
        width: 280px !important;
    }
    
    .sidebar.collapsed .menu-item span {
        display: block !important;
    }
    
    .sidebar.collapsed .menu-item {
        justify-content: flex-start !important;
        padding: 10px 12px !important;
    }
    
    .sidebar.collapsed .sidebar-content {
        padding: 16px !important;
    }
    
    .sidebar-toggle {
        display: none;
    }
    
    .org-level.manager-level {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .node-tooltip::before {
        max-width: 200px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .org-level.manager-level {
        grid-template-columns: 1fr;
    }
}

/* Ads Management Styles */
.ads-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.filter-btn {
    flex: 1;
    padding: 8px;
    background-color: #1f2937;
    border: 1px solid #374151;
    border-radius: 6px;
    color: #9ca3af;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    background-color: #2d3748;
    color: #e1e8ed;
}

.filter-btn.active {
    background-color: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    color: #7c8ff5;
}

.ads-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    max-height: 400px;
    overflow-y: auto;
}

.ad-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background-color: #1f2937;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.ad-item.active {
    border-left-color: #10b981;
}

.ad-item.paused {
    border-left-color: #6b7280;
    opacity: 0.6;
}

.ad-item:hover {
    background-color: #2d3748;
}

.ad-platform {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.ad-platform.facebook {
    background-color: #1877f2;
    color: white;
}

.ad-platform.instagram {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: white;
}

.ad-platform.google {
    background-color: #4285f4;
    color: white;
}

.ad-info {
    flex: 1;
}

.ad-name {
    font-size: 14px;
    font-weight: 500;
    color: #f9fafb;
    margin-bottom: 6px;
}

.ad-stats {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
}

.ad-status {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.ad-status.running {
    background-color: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.ad-status.paused {
    background-color: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
}

.ad-budget {
    font-size: 12px;
    color: #9ca3af;
}

.ad-performance {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #9ca3af;
}

.ad-performance span {
    display: flex;
    align-items: center;
    gap: 4px;
}
}

.toggle input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.integration-btn {
    width: 100%;
    padding: 12px;
    margin-top: 16px;
    background-color: #2d3748;
    border: 1px solid #4a5568;
    color: #e1e8ed;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.integration-btn:hover {
    background-color: #4a5568;
}

/* Main Content */
.content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    background-color: #0f1419;
    display: flex;
    flex-direction: column;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 24px;
}

.content-header h1 {
    font-size: 28px;
    margin-bottom: 6px;
}

.content-header p {
    color: #718096;
    font-size: 14px;
}

.content-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.view-tabs {
    display: flex;
    background-color: #1a1f2e;
    border-radius: 8px;
    padding: 4px;
}

.tab {
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: #718096;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.tab.active {
    background-color: #2d3748;
    color: #e1e8ed;
}

.tab:hover:not(.active) {
    color: #e1e8ed;
}

.btn-primary {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #4a5568;
    color: #e1e8ed;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: #2d3748;
}

/* Board */
.board {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-top: 24px;
}

.column {
    background-color: #1a1f2e;
    border-radius: 12px;
    padding: 16px;
    min-height: 500px;
    min-width: 320px;
    max-width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.column-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.indicator.blue {
    background-color: #3b82f6;
}

.indicator.orange {
    background-color: #f59e0b;
}

.indicator.purple {
    background-color: #8b5cf6;
}

.count {
    background-color: #2d3748;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: #a0aec0;
}

.menu-btn {
    background: transparent;
    border: none;
    color: #718096;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.menu-btn:hover {
    background-color: #2d3748;
}

.column-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Card */
.card {
    background-color: #2d3748;
    border-radius: 10px;
    padding: 16px;
    cursor: grab;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.card:hover {
    background-color: #374151;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.card.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

/* Customer Cards */
.customer-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.customer-card h3 {
    margin: 0;
    font-size: 16px;
    color: #f9fafb;
}

.customer-stats-badge {
    background-color: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.customer-contact {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.customer-contact i {
    width: 14px;
    color: #60a5fa;
}

.customer-spent {
    color: #10b981;
    font-weight: 600;
}

.customer-last-visit {
    color: #9ca3af;
    font-size: 12px;
}

.customer-row {
    cursor: pointer;
    transition: background-color 0.2s;
}

.customer-row:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

.visits-badge {
    background-color: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.card-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.card-tag.enterprise {
    background-color: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.card-tag.high-intent {
    background-color: rgba(236, 72, 153, 0.2);
    color: #f472b6;
}

.card-tag.general {
    background-color: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
}

.card-tag.follow-up {
    background-color: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.card-tag.referral {
    background-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.card-tag.hot-lead {
    background-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.card-tag.renewal {
    background-color: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

/* Status badges */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge.status-new {
    background-color: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.badge.status-warm {
    background-color: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.badge.status-hot {
    background-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.badge.status-cold {
    background-color: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
}

.badge.status-converted {
    background-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

/* Source badges */
.badge.source-facebook {
    background-color: rgba(24, 119, 242, 0.2);
    color: #4a9eff;
}

.badge.source-walkin {
    background-color: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.badge.source-referral {
    background-color: rgba(236, 72, 153, 0.2);
    color: #f472b6;
}

.badge.source-organic {
    background-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.badge.source-unknown {
    background-color: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
}

.card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #f3f4f6;
}

.card p {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #6b7280;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.add-item-btn {
    width: 100%;
    padding: 10px;
    margin-top: 12px;
    background: transparent;
    border: 2px dashed #4a5568;
    color: #9ca3af;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.add-item-btn:hover {
    border-color: #667eea;
    color: #667eea;
    background-color: rgba(102, 126, 234, 0.05);
}

/* Board Statistics */
.board-stats {
    margin-top: 24px;
    background-color: #1a1f2e;
    border-radius: 12px;
    padding: 24px;
    transition: margin 0.3s ease;
}

.board-stats.collapsed {
    margin-top: 0;
    margin-bottom: 0;
}

.board-stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    transition: margin 0.3s ease;
}

.board-stats.collapsed .board-stats-header {
    margin-bottom: 0;
}

.board-stats h3 {
    font-size: 18px;
    color: #f3f4f6;
    margin: 0;
}

.stats-toggle-btn {
    background: rgba(102, 126, 234, 0.1);
    border: none;
    color: #667eea;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.stats-toggle-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #7c8ff5;
}

.stats-toggle-btn i {
    transition: transform 0.3s ease;
}

.board-stats.collapsed .stats-toggle-btn i {
    transform: rotate(180deg);
}

.stats-content {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.board-stats.collapsed .stats-content {
    max-height: 0;
    opacity: 0;
}

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

.stats-table th,
.stats-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #2d3748;
}

.stats-table thead th {
    background-color: rgba(102, 126, 234, 0.1);
    color: #a78bfa;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-table tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.05);
}

.stats-table tfoot th {
    background-color: rgba(16, 185, 129, 0.1);
    color: #34d399;
    font-weight: 700;
    padding-top: 16px;
}

.stats-table tfoot {
    border-top: 2px solid #667eea;
}

.source-breakdown {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.source-badge-small {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

/* List View */
.list-view {
    margin-top: 20px;
}

.leads-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #1a1f2e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.leads-table th,
.leads-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #2d3748;
}

.leads-table th {
    background-color: #2d3748;
    font-weight: 600;
    color: #f3f4f6;
    font-size: 14px;
}

.leads-table td {
    color: #e1e8ed;
    font-size: 14px;
}

.leads-table tbody tr:hover {
    background-color: #374151;
}

.leads-table .card-tag {
    margin: 0;
}

/* Analytics View */
.analytics-view {
    margin-top: 20px;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: #1a1f2e;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 12px;
    font-weight: 500;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #f3f4f6;
}

.analytics-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.chart-container {
    background-color: #1a1f2e;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.chart-container h3 {
    font-size: 16px;
    color: #f3f4f6;
    margin-bottom: 20px;
}

.chart {
    height: 200px;
    display: flex;
    align-items: end;
    justify-content: space-around;
    gap: 10px;
}

.chart-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px 4px 0 0;
    min-height: 20px;
    display: flex;
    align-items: end;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px;
    transition: all 0.3s;
}

.chart-bar:hover {
    transform: scale(1.05);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: #1a1f2e;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #2d3748;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 20px;
}

.modal-close {
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background-color: #2d3748;
    color: #e1e8ed;
}

.close-btn {
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    transition: all 0.2s;
}

.close-btn:hover {
    background-color: #2d3748;
    color: #e1e8ed;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #e1e8ed;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    background-color: #2d3748;
    border: 1px solid #4a5568;
    border-radius: 8px;
    color: #e1e8ed;
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

/* Form Row and Columns */
.form-row {
    display: flex;
    gap: 16px;
    margin: 0 -8px;
}

.form-row .form-group {
    flex: 1;
    margin: 0 8px 20px;
}

.col-md-4 {
    flex: 0 0 33.333%;
}

.col-md-6 {
    flex: 0 0 50%;
}

.col-md-12 {
    flex: 0 0 100%;
}

.form-help {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

/* Client Suggestions Autocomplete */
.client-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1f2e;
    border: 1px solid #2d3748;
    border-radius: 8px;
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.suggestions-header {
    padding: 12px 16px;
    background: #0f1419;
    border-bottom: 1px solid #2d3748;
    font-size: 13px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 8px;
}

.suggestions-header i {
    color: #3b82f6;
}

.suggestion-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #2d3748;
}

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

.suggestion-item:hover {
    background: #2d3748;
}

.suggestion-item.new-client {
    color: #10b981;
    font-weight: 500;
    gap: 8px;
}

.suggestion-item.new-client i {
    color: #10b981;
}

.suggestion-info {
    flex: 1;
}

.suggestion-name {
    font-weight: 500;
    color: #e1e8ed;
    margin-bottom: 2px;
}

.suggestion-email {
    font-size: 12px;
    color: #9ca3af;
}

.suggestion-count {
    padding: 4px 12px;
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Role Checkbox Styling */
.role-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.role-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

.role-checkbox .role-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(45, 55, 72, 0.6);
    border: 2px solid rgba(74, 85, 104, 0.5);
    border-radius: 10px;
    transition: all 0.3s ease;
    width: 100%;
    font-weight: 500;
    color: #cbd5e0;
}

.role-checkbox .role-label i {
    font-size: 18px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.role-checkbox:hover .role-label {
    background: rgba(45, 55, 72, 0.9);
    border-color: rgba(0, 230, 118, 0.5);
    transform: translateY(-2px);
}

.role-checkbox input[type="checkbox"]:checked ~ .role-label {
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.2) 0%, rgba(0, 94, 53, 0.2) 100%);
    border-color: #00E676;
    color: #00E676;
    box-shadow: 0 4px 12px rgba(0, 230, 118, 0.2);
}

.role-checkbox input[type="checkbox"]:checked ~ .role-label i {
    opacity: 1;
    color: #00E676;
    transform: scale(1.1);
}

.role-checkbox input[type="checkbox"]:disabled ~ .role-label {
    opacity: 0.6;
    cursor: not-allowed;
}

.role-checkbox:hover input[type="checkbox"]:disabled ~ .role-label {
    transform: none;
}

/* VIP Client gold styling */
.vip-role-checkbox input[type="checkbox"]:checked ~ .role-label {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.15) 100%);
    border-color: #f59e0b;
    color: #f59e0b;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.vip-role-checkbox input[type="checkbox"]:checked ~ .role-label i {
    opacity: 1;
    color: #f59e0b;
    transform: scale(1.1);
}

.vip-role-checkbox:hover .role-label {
    border-color: rgba(245, 158, 11, 0.5);
}

.modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Participant Selection Styles */
.participants-container {
    position: relative;
}

.selected-participants {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    min-height: 32px;
    padding: 8px;
    border: 1px solid #374151;
    border-radius: 6px;
    background-color: #1f2937;
}

.participant-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background-color: #3b82f6;
    color: white;
    border-radius: 16px;
    font-size: 14px;
}

.participant-tag span {
    flex: 1;
}

.remove-participant {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    margin-left: 4px;
    opacity: 0.8;
}

.remove-participant:hover {
    opacity: 1;
}

.participant-input-container {
    position: relative;
}

.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #1f2937;
    border: 1px solid #374151;
    border-radius: 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #374151;
    color: #e1e8ed;
}

.suggestion-item:hover {
    background-color: #374151;
}

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

/* Appointment History Modal */
.appointment-modal {
    max-width: 800px;
}

.modal-subtitle {
    margin: 4px 0 0 0;
    font-size: 14px;
    color: #9ca3af;
    font-weight: 400;
}

.appointment-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #f9fafb;
}

.appointment-actions {
    margin-bottom: 24px;
    display: flex;
    justify-content: flex-end;
}

.appointments-timeline {
    max-height: 400px;
    overflow-y: auto;
}

.appointment-item {
    background-color: #2d3748;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    border-left: 4px solid #667eea;
    transition: all 0.2s;
    position: relative;
}

.appointment-item:hover {
    background-color: #374151;
    transform: translateX(4px);
}

.appointment-item.status-new {
    border-left-color: #60a5fa;
}

.appointment-item.status-contacted {
    border-left-color: #fbbf24;
}

.appointment-item.status-converted {
    border-left-color: #10b981;
}

.appointment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.appointment-date {
    font-size: 13px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 6px;
}

.appointment-service {
    font-size: 16px;
    font-weight: 600;
    color: #f9fafb;
    margin-bottom: 8px;
}

.appointment-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    font-size: 13px;
    color: #9ca3af;
}

.appointment-detail {
    display: flex;
    align-items: center;
    gap: 6px;
}

.appointment-detail i {
    width: 16px;
    color: #667eea;
}

.appointment-actions-row {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.appointment-actions-row button {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.appointment-actions-row .btn-edit {
    background-color: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.appointment-actions-row .btn-edit:hover {
    background-color: rgba(59, 130, 246, 0.3);
}

.appointment-actions-row .btn-delete {
    background-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.appointment-actions-row .btn-delete:hover {
    background-color: rgba(239, 68, 68, 0.3);
}

.no-appointments {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
}

.no-appointments i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1f2e;
}

::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #718096;
}

/* Responsive */
@media (max-width: 1024px) {
    .board {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -280px;
        z-index: 100;
        height: calc(100vh - 60px);
        transition: left 0.3s;
    }
    
    .sidebar.open {
        left: 0;
    }
    
    .search-bar {
        max-width: 200px;
    }
    
    .content-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .content-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .view-tabs {
        width: 100%;
    }
}

/* VyBrows Structure Page Styles */
.structure-container {
    width: 100%;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Zoom Controls */
.zoom-controls {
    position: absolute;
    top: 40px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(26, 31, 46, 0.9);
    backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    z-index: 10;
}

.zoom-btn {
    background-color: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 14px;
}

.zoom-btn:hover {
    background-color: rgba(102, 126, 234, 0.4);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-1px);
}

.zoom-btn:active {
    transform: translateY(0);
}

.zoom-level {
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    min-width: 45px;
    text-align: center;
    padding: 0 8px;
}

.back-to-main {
    margin-top: auto;
    padding: 20px 16px;
    border-top: 1px solid #2d3748;
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.structure-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #2d3748;
}

.stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    font-size: 24px;
    color: white;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #e1e8ed;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: #9ca3af;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .structure-stats {
        grid-template-columns: 1fr;
    }
}

/* Leads & Clients View Styles */
.leads-container,
.clients-container,
.vouchers-container {
    padding: 0;
}

.leads-filters,
.clients-filters,
.vouchers-filters {
    background: #1e293b;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #2d3748;
}

.filter-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-select,
.filter-input {
    flex: 1;
    min-width: 150px;
    padding: 10px 14px;
    background: #0f172a;
    border: 1px solid #2d3748;
    border-radius: 8px;
    color: #e1e8ed;
    font-size: 14px;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: #667eea;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #0f172a;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #2d3748;
}

.search-box i {
    color: #9ca3af;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: #e1e8ed;
    font-size: 14px;
    outline: none;
}

.stats-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    overflow: visible;
    flex-wrap: wrap;
}

.stats-grid .stat-card {
    min-width: 250px;
    flex-shrink: 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
}

.data-table thead {
    background: #0f172a;
}

.data-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #e1e8ed;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 16px;
    color: #9ca3af;
    border-top: 1px solid #2d3748;
}

.data-table tbody tr {
    transition: background 0.2s;
}

.data-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

.source-badge,
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.source-badge.facebook {
    background: rgba(59, 89, 152, 0.2);
    color: #8b9dc3;
}

.source-badge.walkin {
    background: rgba(52, 211, 153, 0.2);
    color: #6ee7b7;
}

.source-badge.referral {
    background: rgba(251, 146, 60, 0.2);
    color: #fdba74;
}

.source-badge.organic {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
}

.status-badge.new {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.status-badge.contacted {
    background: rgba(251, 146, 60, 0.2);
    color: #fdba74;
}

.status-badge.qualified {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
}

.status-badge.converted {
    background: rgba(52, 211, 153, 0.2);
    color: #6ee7b7;
}

.btn-icon {
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.status-change-btn {
    width: 100%;
    text-align: left;
    transition: all 0.2s;
}

.status-change-btn:not(.disabled):hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.status-change-btn.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

@media (max-width: 768px) {
    /* Stats grid stays horizontal with scroll - no change needed */
    
    .filter-row {
        flex-direction: column;
    }
    
    .filter-select,
    .filter-input {
        width: 100%;
    }
    
    .data-table {
        font-size: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px;
    }
}

/* Calendar Styles */
.calendar-container {
    background-color: #1a1f2e;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-btn {
    background: none;
    border: none;
    color: #e1e8ed;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.nav-btn:hover {
    background-color: #2d3748;
}

#currentDate {
    font-size: 24px;
    font-weight: 600;
    color: #e1e8ed;
    margin: 0;
}

.calendar-view-toggle {
    display: flex;
    gap: 8px;
    background-color: #2d3748;
    border-radius: 8px;
    padding: 4px;
}

.view-btn {
    background: none;
    border: none;
    color: #9ca3af;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.view-btn.active {
    background-color: #667eea;
    color: white;
}

.view-btn:hover {
    background-color: #374151;
    color: #e1e8ed;
}

/* Month View */
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 8px;
}

.calendar-weekdays div {
    padding: 12px;
    text-align: center;
    font-weight: 600;
    color: #9ca3af;
    font-size: 14px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: minmax(120px, 1fr);
    gap: 1px;
    background-color: #2d3748;
    border-radius: 8px;
    overflow: hidden;
}

.calendar-day {
    background-color: #1a1f2e;
    min-height: 120px;
    padding: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.calendar-day:hover {
    background-color: #2d3748;
}

.calendar-day.other-month {
    background-color: #141824;
    color: #6b7280;
}

.calendar-day.today {
    background-color: #1e293b;
    border: 2px solid #667eea;
}

.day-number {
    font-weight: 600;
    margin-bottom: 8px;
    color: inherit;
}

.day-appointments {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.day-events {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.appointment-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.more-appointments {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

/* Week View */
.calendar-week-view {
    background-color: #2d3748;
    border-radius: 8px;
    overflow: hidden;
}

.time-slot {
    display: grid;
    grid-template-columns: 80px 1fr;
    min-height: 60px;
    border-bottom: 1px solid #374151;
}

.time-slot:last-child {
    border-bottom: none;
}

.time-label {
    background-color: #1a1f2e;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: #9ca3af;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.day-slot {
    border-right: 1px solid #374151;
    padding: 4px;
    min-height: 60px;
    position: relative;
}

.day-slot:last-child {
    border-right: none;
}

.appointment-block {
    background-color: #667eea;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Day View */
.calendar-day-view {
    background-color: #2d3748;
    border-radius: 8px;
    overflow: hidden;
}

.day-time-slot {
    display: grid;
    grid-template-columns: 100px 1fr;
    min-height: 80px;
    border-bottom: 1px solid #374151;
}

.day-time-slot:last-child {
    border-bottom: none;
}

.day-time-slot .time-label {
    background-color: #1a1f2e;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 500;
}

.appointments-container {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.empty-slot {
    color: #6b7280;
    font-style: italic;
    padding: 12px;
    text-align: center;
}

.appointment-card {
    background-color: #1a1f2e;
    border-left: 4px solid #667eea;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
}

.appointment-card .appointment-time {
    font-weight: 600;
    color: #e1e8ed;
    margin-bottom: 4px;
}

.appointment-card .appointment-client {
    font-weight: 500;
    color: #e1e8ed;
    margin-bottom: 2px;
}

.appointment-card .appointment-service {
    font-size: 14px;
    color: #9ca3af;
}

/* Appointments Sidebar */
.appointments-sidebar {
    background-color: #1a1f2e;
    border-radius: 12px;
    padding: 24px;
    padding-bottom: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    transition: padding-bottom 0s;
}

.appointments-sidebar.collapsed {
    overflow: hidden;
    padding-bottom: 48px;
}

.appointments-sidebar.collapsed .appointments-list {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.collapse-btn {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collapse-btn:hover {
    background-color: #2d3748;
    color: #e1e8ed;
}

.sidebar-header h3 {
    margin: 0;
    color: #e1e8ed;
    font-size: 18px;
}

.appointment-count {
    background-color: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

.appointments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s ease;
    max-height: none;
    opacity: 1;
}

.empty-appointments {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.empty-appointments i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.appointment-item {
    background-color: #2d3748;
    border-radius: 8px;
    padding: 16px;
    border-left: 4px solid #667eea;
}

.appointment-item .appointment-time {
    font-weight: 600;
    color: #e1e8ed;
    margin-bottom: 8px;
}

.appointment-info {
    margin-bottom: 8px;
}

.appointment-item .appointment-client {
    font-weight: 500;
    color: #e1e8ed;
    margin-bottom: 4px;
}

.appointment-item .appointment-service {
    font-size: 14px;
    color: #9ca3af;
}

.appointment-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.appointment-status.confirmed {
    background-color: #10b981;
    color: white;
}

.appointment-status.pending {
    background-color: #f59e0b;
    color: white;
}

.appointment-status.cancelled {
    background-color: #ef4444;
    color: white;
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to top, #002B15 0%, #005E35 100%);
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}

body:has(.login-container) .header,
body:has(.login-container) .sidebar {
    display: none !important;
}

body:has(.login-container) .main-container {
    margin-top: 0;
    margin-left: 0;
}

.login-box {
    background-color: #001a0d;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 100%;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo {
    width: 120px;
    height: auto;
    border-radius: 16px;
    margin-bottom: 24px;
    object-fit: contain;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #e1e8ed;
    margin-bottom: 8px;
}

.login-header p {
    font-size: 16px;
    color: #9ca3af;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.login-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-form label {
    font-size: 14px;
    font-weight: 500;
    color: #e1e8ed;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-form label i {
    color: #00E676;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    flex: 1;
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: #00E676;
}

.toggle-password i {
    font-size: 16px;
}

.login-form input {
    background-color: #2d3748;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 15px;
    color: #e1e8ed;
    transition: all 0.2s;
}

.login-form input:focus {
    outline: none;
    border-color: #00E676;
    background-color: #374151;
}

.login-form input::placeholder {
    color: #6b7280;
}

.login-error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    border-radius: 8px;
    padding: 12px 16px;
    color: #ef4444;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-error i {
    font-size: 16px;
}

.btn-login {
    background: linear-gradient(to top, #002B15 0%, #005E35 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 8px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 94, 53, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

/* Responsive Calendar */
@media (max-width: 768px) {
    .calendar-container {
        padding: 16px;
    }
    
    .calendar-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .calendar-nav {
        justify-content: center;
    }
    
    .calendar-view-toggle {
        justify-content: center;
    }
    
    .calendar-days {
        grid-template-columns: repeat(7, 1fr);
        font-size: 14px;
    }
    
    .calendar-day {
        min-height: 80px;
        padding: 4px;
    }
    
    .day-number {
        font-size: 14px;
    }
    
    .time-slot {
        grid-template-columns: 60px 1fr;
    }
    
    .day-time-slot {
        grid-template-columns: 80px 1fr;
    }
    
    .appointments-sidebar {
        padding: 16px;
    }
}

/* ==========================================================================
   DASHBOARD STYLES
   ========================================================================== */

.dashboard-container {
    padding: 24px;
    width: 100%;
}

.dashboard-container .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.dashboard-card {
    background: #1a1f2e;
    border-radius: 12px;
    border: 1px solid #2d3748;
    overflow: hidden;
}

.card-header {
    padding: 14px 20px;
    border-bottom: 1px solid #2d3748;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #e1e8ed;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-link {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.card-link:hover {
    color: #7c3aed;
}

.card-content {
    padding: 10px 16px;
    max-height: 350px;
    overflow-y: auto;
}

.appointment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #2d3748;
}

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

.appointment-info {
    flex: 1;
}

.appointment-customer {
    font-weight: 600;
    color: #e1e8ed;
    margin-bottom: 4px;
}

.appointment-service {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 2px;
}

.appointment-date,
.appointment-time {
    font-size: 12px;
    color: #6b7280;
}

.appointment-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.appointment-status.status-completed {
    background: #10b981;
    color: white;
}

.appointment-status.status-pending {
    background: #f59e0b;
    color: white;
}

.appointment-status.status-cancelled {
    background: #ef4444;
    color: white;
}

.appointment-status.status-confirmed {
    background: #3b82f6;
    color: white;
}

/* Compact Appointment Items for Dashboard */
.appointment-item-compact {
    display: flex;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #2d3748;
    gap: 10px;
}

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

.appointment-item-compact .appt-left,
.appointment-item-compact .appt-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.appointment-item-compact .appt-left {
    flex: 0 1 auto;
    min-width: 0;
}

.appointment-item-compact .appt-right {
    flex: 0 0 auto;
    margin-left: auto;
}

.appointment-item-compact .appt-customer {
    font-weight: 600;
    color: #e1e8ed;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.appointment-item-compact .appt-service {
    font-size: 12px;
    color: #9ca3af;
    white-space: nowrap;
}

.appointment-item-compact .appt-date,
.appointment-item-compact .appt-time {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
    padding: 2px 8px;
    background: #2d3748;
    border-radius: 4px;
    white-space: nowrap;
}

.appointment-item-compact .appt-status {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.appointment-item-compact .appt-status.status-completed {
    background: #10b981;
    color: white;
}

.appointment-item-compact .appt-status.status-pending {
    background: #f59e0b;
    color: white;
}

.appointment-item-compact .appt-status.status-cancelled {
    background: #ef4444;
    color: white;
}

.appointment-item-compact .appt-status.status-confirmed {
    background: #3b82f6;
    color: white;
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: #2d3748;
    border: 1px solid #4a5568;
    border-radius: 8px;
    color: #e1e8ed;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.quick-action-btn:hover {
    background: #4a5568;
    border-color: #667eea;
    transform: translateY(-2px);
}

.quick-action-btn i {
    font-size: 24px;
    color: #667eea;
}

.quick-action-btn span {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.chart-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    color: #9ca3af;
}

.chart-placeholder i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.chart-placeholder p {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
}

.chart-placeholder small {
    font-size: 14px;
    color: #6b7280;
}

.loading-state,
.empty-state,
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    color: #9ca3af;
}

.loading-state i,
.empty-state i,
.error-state i {
    font-size: 32px;
    margin-bottom: 16px;
}

.loading-state p,
.empty-state p,
.error-state p {
    font-size: 16px;
    margin-bottom: 8px;
}

.error-state i {
    color: #ef4444;
}

.empty-state i {
    opacity: 0.5;
}

/* Responsive adjustments for dashboard */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-container .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 12px;
    }
    
    .dashboard-container .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .card-header {
        padding: 16px 20px;
    }
    
    .card-content {
        padding: 20px;
    }
}
/* PDF Download Dropdown Menu */
.pdf-download-wrapper {
    position: relative;
    display: inline-block;
}

.pdf-dropdown-menu {
    position: fixed;
    margin-top: 4px;
    background-color: #1a1f2e;
    border: 1px solid #2d3748;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    min-width: 220px;
    overflow: hidden;
}

.pdf-menu-item {
    padding: 12px 16px;
    color: #e1e8ed;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    transition: all 0.2s ease;
    border-bottom: 1px solid #2d3748;
}

.pdf-menu-item:last-child {
    border-bottom: none;
}

.pdf-menu-item:hover {
    background-color: #2d3748;
    color: #6b21a8;
}

.pdf-menu-item i {
    width: 16px;
    font-size: 14px;
    color: #6b21a8;
}

.pdf-menu-item:hover i {
    color: #9333ea;
}
/* Form Section Headers */
.form-section-header {
    font-size: 15px;
    font-weight: 600;
    color: #6b21a8;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(107, 33, 168, 0.1) 0%, rgba(147, 51, 234, 0.05) 100%);
    border-left: 3px solid #6b21a8;
    border-radius: 4px;
    margin: 24px 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-header:first-of-type {
    margin-top: 0;
}

.form-section-header i {
    font-size: 16px;
    color: #9333ea;
}

/* Modal scrollbar styling */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #1a1f2e;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #6b21a8;
}

/* Filter Dropdown Styles */
.filter-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: #1a1f2e;
    border: 1px solid #2d3748;
    border-radius: 12px;
    padding: 8px;
    min-width: 200px;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.filter-dropdown label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.filter-dropdown label:hover {
    background: rgba(107, 33, 168, 0.1);
}

.filter-dropdown input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #6b21a8;
}

/* Pagination Styles */
.page-number-btn {
    min-width: 36px;
    height: 36px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid #2d3748;
    border-radius: 8px;
    color: #e1e8ed;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.page-number-btn:hover:not(:disabled) {
    background: rgba(107, 33, 168, 0.2);
    border-color: #6b21a8;
}

.page-number-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Status Badge - Inactive */
.status-badge.status-inactive {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

