/**
 * App Styles for 1MinuteFollowup Dashboard
 * Matching 1MinuteFunnel.com design patterns
 * Purple gradient theme with Inter/Poppins fonts
 */

/* CSS Variables - Design System */
:root {
    /* Primary Colors - Purple Gradient Theme */
    --color-primary: #667eea;
    --color-primary-dark: #5568d3;
    --color-primary-light: #8b9cf5;
    --color-secondary: #764ba2;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-teal: linear-gradient(135deg, #0D4F2B, #1AACB8);

    /* Status Colors */
    --color-success: #10b981;
    --color-error: #ef4444;
    --color-warning: #f59e0b;
    --color-info: #3b82f6;

    /* Backgrounds */
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-border: #e2e8f0;

    /* Text Colors */
    --color-text: #111111;
    --color-text-body: #0C2A1F;
    --color-text-light: #404040;
    --color-text-lighter: #888888;

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-body);
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text);
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

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

.text-muted {
    color: var(--color-text-light);
}

/* ============================================
   Loading States
   ============================================ */

.loading-fullpage {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-fullpage .spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-fullpage p {
    margin-top: 16px;
    color: var(--color-text-light);
    font-size: 14px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   Dashboard Container
   ============================================ */

.dashboard-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   Dashboard Header
   ============================================ */

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

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

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

/* Logo & Branding */
.logo {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo:hover {
    text-decoration: none;
}

.logo span {
    color: var(--color-text);
}

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

/* Product Switcher */
.product-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-text);
}

.product-switcher:hover,
.product-switcher.open {
    background: var(--color-bg);
    border-color: var(--color-primary);
}

.product-switcher svg {
    width: 16px;
    height: 16px;
    color: var(--color-text-light);
    transition: transform 0.2s;
}

.product-switcher.open svg {
    transform: rotate(180deg);
}

.product-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 150;
}

.product-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.product-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    width: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
    text-decoration: none;
    color: var(--color-text);
}

.product-dropdown-item:hover {
    background: var(--color-bg);
    text-decoration: none;
}

.product-dropdown-item.active {
    background: rgba(102, 126, 234, 0.1);
}

.product-dropdown-item svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
}

.product-item-info {
    flex: 1;
}

.product-item-name {
    font-weight: 600;
    font-size: 14px;
    display: block;
}

.product-item-desc {
    font-size: 12px;
    color: var(--color-text-light);
}

/* ============================================
   Navigation
   ============================================ */

.dashboard-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 24px;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-light);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: -1px;
    text-decoration: none;
}

.nav-item:hover {
    color: var(--color-text);
    background: var(--color-bg);
    text-decoration: none;
}

.nav-item.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.nav-item svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   User Menu
   ============================================ */

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.sign-out-btn {
    padding: 6px 12px;
    font-size: 13px;
    color: var(--color-text-light);
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
}

.sign-out-btn:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

/* ============================================
   Mobile Menu
   ============================================ */

.hamburger-btn {
    display: none;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-text);
}

.hamburger-btn svg {
    width: 24px;
    height: 24px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: var(--color-surface);
    box-shadow: var(--shadow-xl);
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open .mobile-menu-content {
    transform: translateX(0);
}

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

.mobile-menu-close {
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-text);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 15px;
    color: var(--color-text);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: background 0.2s;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    background: var(--color-bg);
}

.mobile-nav-item.active {
    color: var(--color-primary);
    font-weight: 600;
}

.mobile-nav-item svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   Main Content Area
   ============================================ */

.dashboard-main {
    flex: 1;
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

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

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
}

/* ============================================
   Stats Cards
   ============================================ */

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

.stat-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

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

.stat-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.purple {
    background: rgba(102, 126, 234, 0.1);
    color: var(--color-primary);
}

.stat-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}

.stat-icon.orange {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
}

.stat-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-info);
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1;
}

.stat-value.warning {
    color: var(--color-warning);
}

.stat-value.success {
    color: var(--color-success);
}

.stat-subtitle {
    font-size: 12px;
    color: var(--color-text-light);
    margin-top: 4px;
}

/* SMS Usage Progress */
.sms-progress-container {
    margin-top: 12px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--color-border);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-fill.green { background: var(--color-success); }
.progress-fill.yellow { background: var(--color-warning); }
.progress-fill.orange { background: #f97316; }
.progress-fill.red { background: var(--color-error); }

.progress-text {
    font-size: 12px;
    color: var(--color-text-light);
    margin-top: 4px;
}

/* ============================================
   Dashboard Sections
   ============================================ */

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

.dashboard-section {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
}

.section-header h2 {
    font-size: 16px;
    font-weight: 600;
}

.section-content {
    padding: 16px 20px;
}

.view-all-link {
    font-size: 13px;
    color: var(--color-primary);
    text-decoration: none;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* Recent Leads List */
.lead-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

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

.lead-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lead-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text);
}

.lead-source {
    font-size: 12px;
    color: var(--color-text-light);
}

.lead-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lead-status {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.status-new {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-info);
}

.status-contacted {
    background: rgba(102, 126, 234, 0.1);
    color: var(--color-primary);
}

.status-engaged {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
}

.status-meeting_scheduled {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}

.status-converted {
    background: var(--color-success);
    color: white;
}

.lead-time {
    font-size: 12px;
    color: var(--color-text-lighter);
}

/* Upcoming Meetings */
.meeting-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

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

.meeting-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    padding: 8px;
    background: var(--color-bg);
    border-radius: var(--radius-md);
}

.meeting-date {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
}

.meeting-hour {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
}

.meeting-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meeting-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text);
}

.meeting-lead {
    font-size: 12px;
    color: var(--color-text-light);
}

.meeting-type {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.type-video {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-info);
}

.type-phone {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}

.type-in-person {
    background: rgba(102, 126, 234, 0.1);
    color: var(--color-primary);
}

/* Manager Alerts */
.alert-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.alert-item:last-child {
    margin-bottom: 0;
}

.alert-icon {
    font-size: 18px;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text);
    margin-bottom: 2px;
}

.alert-message {
    font-size: 13px;
    color: var(--color-text-light);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    min-height: 40px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

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

.btn-secondary {
    background: var(--color-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-border);
}

.btn-success {
    background: var(--color-success);
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-warning {
    background: var(--color-warning);
    color: white;
}

.btn-warning:hover {
    background: #d97706;
}

.btn-danger {
    background: var(--color-error);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-small {
    min-height: 32px;
    padding: 6px 12px;
    font-size: 13px;
}

.btn-icon {
    min-height: auto;
    padding: 8px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-icon:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(102, 126, 234, 0.1);
}

.btn-icon.spinning svg {
    animation: spin 1s linear infinite;
}

/* ============================================
   Cards Grid (Sequences, Magnets)
   ============================================ */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Sequence Card */
.sequence-card,
.magnet-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.sequence-card:hover,
.magnet-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.sequence-card.paused,
.magnet-card.draft {
    border-color: var(--color-border);
    opacity: 0.8;
}

.sequence-header,
.magnet-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.sequence-name,
.magnet-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.sequence-status,
.magnet-status {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.status-active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}

.status-paused {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-error);
}

.status-draft {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
}

.sequence-description,
.magnet-description {
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: 16px;
    line-height: 1.5;
}

.sequence-stats,
.magnet-stats {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 12px;
}

.sequence-stats .stat,
.magnet-stats .stat {
    flex: 1;
    text-align: center;
}

.sequence-stats .stat-value,
.magnet-stats .stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
}

.sequence-stats .stat-label,
.magnet-stats .stat-label {
    font-size: 11px;
    color: var(--color-text-light);
    text-transform: uppercase;
}

.sequence-steps {
    margin-bottom: 12px;
}

.steps-count {
    font-size: 12px;
    color: var(--color-text-light);
}

.sequence-actions,
.magnet-actions {
    display: flex;
    gap: 8px;
}

/* Magnet Type Badge */
.magnet-type {
    margin-bottom: 12px;
}

.type-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.type-pdf {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-error);
}

.type-checklist {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-info);
}

.type-video {
    background: rgba(102, 126, 234, 0.1);
    color: var(--color-primary);
}

/* Magnet URL */
.magnet-url {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.magnet-url input {
    flex: 1;
    padding: 8px 12px;
    font-size: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    color: var(--color-text-light);
    font-family: var(--font-mono);
}

/* ============================================
   Leads Table
   ============================================ */

.leads-section {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.leads-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
    flex-wrap: wrap;
}

.leads-search {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    position: relative;
}

.leads-search input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    font-size: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
}

.leads-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-lighter);
}

.filter-btns {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 6px 12px;
    font-size: 13px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
    color: var(--color-text-light);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Table */
.leads-table {
    width: 100%;
    border-collapse: collapse;
}

.leads-table th,
.leads-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.leads-table th {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--color-bg);
}

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

.leads-table tr:hover td {
    background: var(--color-bg);
}

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

.lead-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.lead-cell-name .lead-name {
    display: block;
}

.lead-phone {
    font-size: 12px;
    color: var(--color-text-light);
}

.status-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.lead-actions {
    display: flex;
    gap: 8px;
}

.empty-cell {
    text-align: center;
    padding: 48px !important;
}

/* ============================================
   Settings Page
   ============================================ */

.settings-section {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.settings-section-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
}

.settings-section-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.settings-section-content {
    padding: 20px;
}

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

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 6px;
}

.form-input,
.form-select {
    width: 100%;
    max-width: 400px;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    font-family: var(--font-body);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-help {
    font-size: 12px;
    color: var(--color-text-light);
    margin-top: 4px;
}

/* PropelAuth Placeholder */
.auth-placeholder {
    padding: 20px;
    background: rgba(102, 126, 234, 0.05);
    border: 1px dashed var(--color-primary);
    border-radius: var(--radius-md);
    text-align: center;
}

.auth-placeholder p {
    color: var(--color-text-light);
    margin-bottom: 12px;
}

/* ============================================
   Empty States
   ============================================ */

.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--color-text-light);
    margin-bottom: 16px;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        padding: 12px 16px;
    }

    .header-center {
        display: none;
    }

    .dashboard-nav {
        display: none;
    }

    .hamburger-btn {
        display: flex;
    }

    .dashboard-main {
        padding: 16px;
    }

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

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .leads-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .leads-search {
        max-width: none;
    }

    .leads-table {
        display: block;
        overflow-x: auto;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }
}

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

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

    .stat-card-header {
        margin-bottom: 0;
    }
}
