/* ============================================
   SoftMayo CRM — Google Professional Design
   Clean, Minimal, Corporate Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Base Colors — Clean whites & grays */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --bg-sidebar: #ffffff;
    --bg-input: #f1f3f4;
    --bg-input-focus: #ffffff;

    /* Glass Effect — replaced with clean surfaces */
    --glass-bg: #f8f9fa;
    --glass-border: #e0e0e0;
    --glass-shadow: 0 1px 3px rgba(60, 64, 67, 0.15);

    /* Accent Colors — Google Blue primary, muted palette */
    --accent-primary: #1a73e8;
    --accent-secondary: #1557b0;
    --accent-gradient: #1a73e8;
    --accent-gradient-hover: #1557b0;
    --accent-blue: #1a73e8;
    --accent-cyan: #129eaf;
    --accent-emerald: #188038;
    --accent-amber: #b06000;
    --accent-rose: #c5221f;
    --accent-violet: #7627bb;
    --accent-orange: #b06000;
    --accent-pink: #b3005e;

    /* Text Colors — High readability */
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --text-muted: #80868b;
    --text-accent: #1a73e8;
    --text-white: #ffffff;

    /* Border — Subtle, clean */
    --border-color: #dadce0;
    --border-light: #e8eaed;
    --border-accent: rgba(26, 115, 232, 0.2);

    /* Status Colors — Muted, professional */
    --status-success: #188038;
    --status-warning: #b06000;
    --status-error: #c5221f;
    --status-info: #1a73e8;
    --status-success-bg: #e6f4ea;
    --status-warning-bg: #fef7e0;
    --status-error-bg: #fce8e6;
    --status-info-bg: #e8f0fe;

    /* Priority Colors */
    --priority-low: #188038;
    --priority-medium: #1a73e8;
    --priority-high: #b06000;
    --priority-urgent: #c5221f;

    /* Shadows — Google Material */
    --shadow-sm: 0 1px 2px rgba(60, 64, 67, 0.1);
    --shadow-md: 0 1px 3px rgba(60, 64, 67, 0.15), 0 1px 2px rgba(60, 64, 67, 0.1);
    --shadow-lg: 0 4px 8px rgba(60, 64, 67, 0.15), 0 1px 3px rgba(60, 64, 67, 0.1);
    --shadow-xl: 0 8px 16px rgba(60, 64, 67, 0.15), 0 4px 8px rgba(60, 64, 67, 0.1);
    --shadow-glow: 0 1px 6px rgba(60, 64, 67, 0.12);
    --shadow-glow-strong: 0 2px 10px rgba(60, 64, 67, 0.2);

    /* Sizes */
    --sidebar-width: 256px;
    --sidebar-collapsed: 72px;
    --header-height: 64px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.1s ease;
    --transition-normal: 0.2s ease;
    --transition-slow: 0.3s ease;
    --transition-spring: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Remove the dark background decorations */
body::before {
    display: none;
}

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

a:hover {
    color: var(--accent-secondary);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   SCROLLBAR — Thin, minimal
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

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

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

/* ============================================
   LAYOUT
   ============================================ */
.app-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 0;
    min-height: 100vh;
    background: var(--bg-secondary);
    transition: margin-left var(--transition-normal);
}

.page-content {
    padding: 24px 32px;
    padding-top: calc(var(--header-height) + 24px);
    max-width: 1440px;
    margin: 0 auto;
}

/* ============================================
   SIDEBAR — Clean Google-style nav
   ============================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: width var(--transition-normal);
    overflow: hidden;
}

.sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
}

.sidebar-logo {
    width: 36px;
    height: 36px;
    background: var(--accent-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-brand h1 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.sidebar-brand span {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sidebar-nav {
    flex: 1;
    padding: 8px;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-section {
    margin-bottom: 8px;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 16px 16px 6px;
    margin-bottom: 2px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    white-space: nowrap;
    margin-bottom: 1px;
}

.nav-item:hover {
    background: #f1f3f4;
    color: var(--text-primary);
}

.nav-item.active {
    background: #e8f0fe;
    color: var(--accent-primary);
    font-weight: 600;
}

.nav-item.active::before {
    display: none;
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    flex-shrink: 0;
    opacity: 0.8;
}

.nav-item.active i {
    opacity: 1;
}

.nav-badge {
    margin-left: auto;
    background: var(--accent-rose);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    min-width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 12px;
    border-top: 1px solid var(--border-light);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.sidebar-user:hover {
    background: #f1f3f4;
}

.sidebar-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.sidebar-user-info {
    overflow: hidden;
}

.sidebar-user-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   TOP HEADER — Clean white bar
   ============================================ */
.top-header {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--header-height);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    z-index: 900;
    transition: left var(--transition-normal);
}

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

.header-left h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.header-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.header-breadcrumb a {
    color: var(--text-muted);
}

.header-breadcrumb a:hover {
    color: var(--accent-primary);
}

.header-breadcrumb .separator {
    color: var(--text-muted);
    opacity: 0.5;
}

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

.header-search {
    position: relative;
    margin-right: 8px;
}

.header-search input {
    width: 280px;
    padding: 8px 16px 8px 40px;
    background: var(--bg-input);
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all var(--transition-fast);
}

.header-search input:focus {
    background: var(--bg-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 1px 6px rgba(26, 115, 232, 0.15);
    width: 340px;
}

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

.header-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

.header-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all var(--transition-fast);
    position: relative;
}

.header-icon-btn:hover {
    background: #f1f3f4;
    color: var(--text-primary);
}

.header-icon-btn .badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--accent-rose);
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
}

/* ============================================
   CARDS — Clean elevated surfaces
   ============================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: box-shadow var(--transition-normal);
}

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

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

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Stat Cards — Clean, no gradient top bar */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: box-shadow var(--transition-normal);
}

.stat-card::before {
    display: none;
}

.stat-card:hover {
    transform: none;
    box-shadow: var(--shadow-md);
    border-color: var(--border-color);
}

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

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

.stat-icon.blue { background: #e8f0fe; color: var(--accent-blue); }
.stat-icon.emerald { background: #e6f4ea; color: var(--accent-emerald); }
.stat-icon.amber { background: #fef7e0; color: var(--accent-amber); }
.stat-icon.rose { background: #fce8e6; color: var(--accent-rose); }
.stat-icon.violet { background: #f3e8fd; color: var(--accent-violet); }
.stat-icon.cyan { background: #e0f7fa; color: var(--accent-cyan); }
.stat-icon.orange { background: #fef7e0; color: var(--accent-orange); }
.stat-icon.pink { background: #fce4ec; color: var(--accent-pink); }

.stat-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.stat-trend.up { background: var(--status-success-bg); color: var(--status-success); }
.stat-trend.down { background: var(--status-error-bg); color: var(--status-error); }

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
}

/* ============================================
   BUTTONS — Google Material style
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.btn i {
    font-size: 14px;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    border: none;
    box-shadow: none;
}

.btn-primary:hover {
    background: var(--accent-secondary);
    box-shadow: 0 1px 3px rgba(26, 115, 232, 0.3);
    transform: none;
}

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

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

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

.btn-success:hover {
    background: #137333;
    transform: none;
}

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

.btn-danger:hover {
    background: #a50e0e;
    transform: none;
}

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

.btn-warning:hover {
    background: #8a4d00;
    transform: none;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    padding: 8px 12px;
}

.btn-ghost:hover {
    background: #f1f3f4;
    color: var(--text-primary);
}

.btn-sm {
    padding: 6px 16px;
    font-size: 12px;
    border-radius: 4px;
}

.btn-lg {
    padding: 12px 32px;
    font-size: 15px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
}

.btn-block {
    width: 100%;
}

/* ============================================
   FORMS & INPUTS — Clean Google-style
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

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

.form-control {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all var(--transition-fast);
}

.form-control:focus {
    background: var(--bg-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.15);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235f6368' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
    cursor: pointer;
}

.form-error {
    font-size: 12px;
    color: var(--status-error);
    margin-top: 4px;
}

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

/* ============================================
   TABLES — Clean, readable
   ============================================ */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table thead {
    background: #f8f9fa;
}

.data-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    vertical-align: middle;
}

.data-table tbody tr {
    transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   BADGES & TAGS — Subtle, professional
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.badge-success { background: var(--status-success-bg); color: var(--status-success); }
.badge-warning { background: var(--status-warning-bg); color: var(--status-warning); }
.badge-error { background: var(--status-error-bg); color: var(--status-error); }
.badge-danger { background: var(--status-error-bg); color: var(--status-error); }
.badge-info { background: var(--status-info-bg); color: var(--status-info); }
.badge-violet { background: #f3e8fd; color: var(--accent-violet); }
.badge-cyan { background: #e0f7fa; color: var(--accent-cyan); }
.badge-pink { background: #fce4ec; color: var(--accent-pink); }
.badge-orange { background: #fef7e0; color: var(--accent-orange); }

.badge-dot::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* ============================================
   AVATAR — Google-style circles
   ============================================ */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
}

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

.avatar-sm { width: 32px; height: 32px; font-size: 12px; }
.avatar-lg { width: 48px; height: 48px; font-size: 18px; }
.avatar-xl { width: 72px; height: 72px; font-size: 24px; }

.avatar-group {
    display: flex;
}

.avatar-group .avatar {
    margin-left: -8px;
    border: 2px solid var(--bg-primary);
}

.avatar-group .avatar:first-child {
    margin-left: 0;
}

/* Flat, muted avatar colors */
.avatar-blue { background: #4285f4; }
.avatar-emerald { background: #34a853; }
.avatar-amber { background: #ea8600; }
.avatar-rose { background: #ea4335; }
.avatar-violet { background: #a142f4; }
.avatar-cyan { background: #24c1e0; }
.avatar-orange { background: #ea8600; }
.avatar-pink { background: #e52592; }

/* ============================================
   MODAL — Clean dialog
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.32);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal {
    background: var(--bg-primary);
    border: none;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 560px;
    max-height: 85vh;
    min-height: 0;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    transform: scale(0.97);
    transition: transform var(--transition-spring);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-lg {
    max-width: 720px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: #f1f3f4;
    color: var(--text-primary);
}

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

.modal-footer {
    padding: 16px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid var(--border-light);
    flex-shrink: 0;
}

/* ============================================
   KANBAN BOARD — Clean columns
   ============================================ */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    min-height: 500px;
}

.kanban-column {
    background: #f1f3f4;
    border: none;
    border-radius: var(--radius-lg);
    padding: 12px;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.kanban-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 8px 8px 12px;
    border-bottom: none;
}

.kanban-column-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.kanban-column-count {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-muted);
}

.kanban-cards {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 100px;
}

.kanban-cards.drag-over {
    background: rgba(26, 115, 232, 0.06);
    border-radius: var(--radius-md);
}

.kanban-card {
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    cursor: grab;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.kanban-card:hover {
    box-shadow: var(--shadow-md);
    transform: none;
}

.kanban-card:active {
    cursor: grabbing;
    opacity: 0.8;
}

.kanban-card.dragging {
    opacity: 0.5;
    transform: rotate(1deg);
}

.kanban-card-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.4;
}

.kanban-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.kanban-card-project {
    font-size: 11px;
    color: var(--text-muted);
    padding: 2px 8px;
    background: #f1f3f4;
    border-radius: var(--radius-full);
}

.kanban-card-due {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.kanban-card-due.overdue {
    color: var(--status-error);
}

/* Column indicator colors — subtle dots */
.kanban-column[data-status="todo"] .kanban-column-title::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}
.kanban-column[data-status="in_progress"] .kanban-column-title::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-blue);
}
.kanban-column[data-status="review"] .kanban-column-title::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-amber);
}
.kanban-column[data-status="done"] .kanban-column-title::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-emerald);
}

/* ============================================
   LEAD PIPELINE
   ============================================ */
.pipeline-view {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
}

.pipeline-stage {
    min-width: 260px;
    flex-shrink: 0;
    background: #f1f3f4;
    border: none;
    border-radius: var(--radius-lg);
    padding: 16px;
}

.pipeline-stage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.pipeline-stage-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
}

.pipeline-stage-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-emerald);
}

.lead-card {
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 8px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.lead-card:hover {
    box-shadow: var(--shadow-md);
    transform: none;
}

.lead-card-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.lead-card-company {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.lead-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lead-card-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-emerald);
}

/* ============================================
   DIALER — Clean phone UI
   ============================================ */
.dialer-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
}

.dialer-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 32px;
    text-align: center;
}

.dialer-display {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    padding: 20px;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: break-all;
}

.dialer-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 300px;
    margin: 0 auto 24px;
}

.dialer-key {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #f1f3f4;
    border: none;
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all var(--transition-fast);
}

.dialer-key:hover {
    background: #e8eaed;
}

.dialer-key:active {
    background: #dadce0;
    transform: scale(0.95);
}

.dialer-key .sub {
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    margin-top: 2px;
}

.dialer-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.dialer-call-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.dialer-call-btn.call {
    background: var(--accent-emerald);
    color: white;
}

.dialer-call-btn.call:hover {
    background: #137333;
    transform: scale(1.05);
}

.dialer-call-btn.hangup {
    background: var(--status-error);
    color: white;
}

.dialer-call-btn.hangup:hover {
    background: #a50e0e;
    transform: scale(1.05);
}

.dialer-call-btn.delete {
    background: #f1f3f4;
    color: var(--text-secondary);
}

.dialer-call-btn.delete:hover {
    background: #e8eaed;
}

/* Active Call */
.call-active { padding: 40px; }
.call-active-info { margin-bottom: 30px; }
.call-active-name { font-size: 24px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.call-active-number { font-size: 16px; color: var(--text-muted); margin-bottom: 16px; }
.call-active-timer { font-size: 36px; font-weight: 300; color: var(--accent-emerald); font-variant-numeric: tabular-nums; }
.call-active-pulse {
    width: 12px;
    height: 12px;
    background: var(--accent-emerald);
    border-radius: 50%;
    margin: 0 auto 24px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(24, 128, 56, 0.4); }
    70% { box-shadow: 0 0 0 16px rgba(24, 128, 56, 0); }
    100% { box-shadow: 0 0 0 0 rgba(24, 128, 56, 0); }
}

/* Call History */
.call-log-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition-fast);
    cursor: pointer;
}

.call-log-item:hover { background: #f8f9fa; }
.call-log-item:last-child { border-bottom: none; }

.call-log-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.call-log-icon.outbound { background: var(--status-info-bg); color: var(--accent-blue); }
.call-log-icon.inbound { background: var(--status-success-bg); color: var(--accent-emerald); }
.call-log-icon.missed { background: var(--status-error-bg); color: var(--status-error); }

.call-log-info { flex: 1; min-width: 0; }
.call-log-name { font-size: 14px; font-weight: 500; color: var(--text-primary); }
.call-log-number { font-size: 12px; color: var(--text-muted); }
.call-log-meta { text-align: right; }
.call-log-time { font-size: 12px; color: var(--text-muted); }
.call-log-duration { font-size: 11px; color: var(--text-secondary); }

/* Dialer Tabs */
.dialer-tab {
    flex: 1;
    padding: 12px 8px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.dialer-tab:hover { color: var(--text-primary); background: var(--bg-input); }
.dialer-tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

.dialer-panel-content { min-height: 200px; }

/* Unread indicator */
.call-log-item.unread { background: var(--status-info-bg); }
.call-log-item.unread:hover { background: #d4e5fd; }

/* SMS button in dialer */
.dialer-call-btn.sms-btn:hover {
    background: var(--accent-secondary) !important;
    transform: scale(1.05);
}

/* ============================================
   CHARTS AREA
   ============================================ */
.chart-container {
    position: relative;
    width: 100%;
    min-height: 250px;
}

.chart-container canvas {
    width: 100% !important;
}

/* ============================================
   TABS — Google-style underline tabs
   ============================================ */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.tab {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: 'Inter', sans-serif;
}

.tab:hover {
    color: var(--text-primary);
    background: #f1f3f4;
}

.tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ============================================
   DROPDOWN — Clean menu
   ============================================ */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: var(--bg-primary);
    border: none;
    border-radius: var(--radius-sm);
    min-width: 180px;
    box-shadow: var(--shadow-xl);
    z-index: 1500;
    display: none;
    opacity: 0;
    transform: translateY(-4px);
    transition: all var(--transition-fast);
    overflow: hidden;
    padding: 8px 0;
}

.dropdown-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: 'Inter', sans-serif;
}

.dropdown-item:hover {
    background: #f1f3f4;
    color: var(--text-primary);
}

.dropdown-item i { width: 16px; text-align: center; font-size: 14px; }

.dropdown-divider {
    height: 1px;
    background: var(--border-light);
    margin: 4px 0;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 24px;
}

.pagination-btn {
    padding: 8px 14px;
    border-radius: 4px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pagination-btn:hover {
    background: #f1f3f4;
    color: var(--text-primary);
}

.pagination-btn.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ============================================
   NOTIFICATIONS PANEL
   ============================================ */
.notifications-panel {
    position: fixed;
    top: 0;
    right: -380px;
    width: 380px;
    height: 100vh;
    background: var(--bg-primary);
    border-left: 1px solid var(--border-color);
    z-index: 1100;
    transition: right var(--transition-normal);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
}

.notifications-panel.open { right: 0; }

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

.notifications-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition-fast);
    margin-bottom: 2px;
}

.notification-item:hover { background: #f1f3f4; }
.notification-item.unread { background: #e8f0fe; }

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.notification-content { flex: 1; min-width: 0; }
.notification-title { font-size: 13px; font-weight: 500; color: var(--text-primary); margin-bottom: 2px; }
.notification-message { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.notification-time { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: #323232;
    border: none;
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    max-width: 450px;
    animation: toastIn 0.2s ease, toastOut 0.2s ease 4.8s forwards;
    border-left: none;
    color: white;
}

.toast.success { background: #323232; }
.toast.error { background: #323232; }
.toast.warning { background: #323232; }
.toast.info { background: #323232; }

.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
    color: white;
}

.toast.success .toast-icon { color: #81c995; }
.toast.error .toast-icon { color: #f28b82; }
.toast.warning .toast-icon { color: #fdd663; }
.toast.info .toast-icon { color: #8ab4f8; }

.toast-message {
    flex: 1;
    font-size: 14px;
    color: white;
    font-weight: 400;
}

.toast-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
}

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

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

/* ============================================
   PROGRESS BAR
   ============================================ */
.progress-bar {
    width: 100%;
    height: 4px;
    background: #e8eaed;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--accent-primary);
    transition: width 0.6s ease;
}

.progress-bar-fill.success { background: var(--accent-emerald); }
.progress-bar-fill.warning { background: var(--accent-amber); }
.progress-bar-fill.danger { background: var(--accent-rose); }

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 40px;
}

.empty-state-icon {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-state-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state-text {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 360px;
    margin: 0 auto 24px;
}

/* ============================================
   LOGIN PAGE — Clean Google-style
   ============================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

/* Remove decorative circles */
.login-page::before,
.login-page::after {
    display: none;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.login-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    box-shadow: var(--shadow-md);
}

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

.login-logo {
    width: 48px;
    height: 48px;
    background: var(--accent-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin: 0 auto 20px;
}

.login-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.login-header p {
    font-size: 14px;
    color: var(--text-muted);
}

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

.login-form .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.login-form .input-wrapper {
    position: relative;
}

.login-form .input-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
}

.login-form .input-wrapper input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all var(--transition-fast);
}

.login-form .input-wrapper input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.15);
}

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

.login-remember label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}

.login-remember a {
    font-size: 13px;
    color: var(--accent-primary);
    font-weight: 500;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: var(--accent-primary);
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.login-btn:hover {
    background: var(--accent-secondary);
    box-shadow: 0 1px 3px rgba(26, 115, 232, 0.3);
    transform: none;
}

.login-btn:active {
    transform: none;
}

.login-error {
    background: var(--status-error-bg);
    border: 1px solid rgba(197, 34, 31, 0.15);
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--status-error);
    display: none;
    align-items: center;
    gap: 8px;
}

.login-error.show { display: flex; }

.login-demo {
    margin-top: 24px;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.login-demo p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.demo-accounts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.demo-btn {
    padding: 5px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.demo-btn:hover {
    background: var(--status-info-bg);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* ============================================
   ATTENDANCE
   ============================================ */
.attendance-clock {
    text-align: center;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    margin-bottom: 24px;
}

.attendance-time {
    font-size: 48px;
    font-weight: 300;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    margin-bottom: 4px;
}

.attendance-date {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.attendance-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.attendance-status {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.attendance-status .time-val {
    font-weight: 600;
    color: var(--accent-primary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .kanban-board { grid-template-columns: repeat(2, 1fr); }
    .dialer-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.mobile-open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .top-header { left: 0; }
    .page-content { padding: 16px; padding-top: calc(var(--header-height) + 16px); }
    .stats-grid { grid-template-columns: 1fr; }
    .kanban-board { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .header-search { display: none; }
    .mobile-menu-btn { display: flex !important; }
    .grid-2 { grid-template-columns: 1fr; }
}

.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.font-bold { font-weight: 700; }
.w-full { width: 100%; }
.hidden { display: none; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* Loading spinner */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e8eaed;
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
}

/* Page title bar */
.page-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-title-bar h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
}

.page-title-bar .actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Filter bar */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-bar .form-control {
    width: auto;
    min-width: 160px;
}

.filter-bar .search-input {
    min-width: 250px;
}

/* Priority dots */
.priority-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
}

.priority-dot::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.priority-dot.low::before { background: var(--priority-low); }
.priority-dot.medium::before { background: var(--priority-medium); }
.priority-dot.high::before { background: var(--priority-high); }
.priority-dot.urgent::before { background: var(--priority-urgent); }

/* Status online indicator */
.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
    position: absolute;
    bottom: -1px;
    right: -1px;
}

.status-indicator.online { background: var(--accent-emerald); }
.status-indicator.offline { background: var(--text-muted); }
.status-indicator.away { background: var(--accent-amber); }

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #f1f3f4 25%, #e8eaed 50%, #f1f3f4 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
