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

[x-cloak] {
    display: none !important;
}

:root {
    /* Monday.com Inspired Color Palette */
    --primary: #6161FF;
    /* Cornflower Blue - Monday's signature */
    --primary-light: #7B7BFF;
    --primary-dark: #4B4BD9;
    --primary-hover: #5353E8;

    /* Sidebar & Dark Elements */
    --mirage: #181B34;
    /* Monday's dark blue */
    --mirage-light: #292D4A;
    --mirage-lighter: #383D5E;

    /* Status Colors (Monday-style bright colors) */
    --status-done: #00C875;
    /* Bright Green */
    --status-working: #FDAB3D;
    /* Orange */
    --status-stuck: #E2445C;
    /* Red/Pink */
    --status-waiting: #A25DDC;
    /* Purple */
    --status-default: #C4C4C4;
    /* Grey */

    /* Additional Vibrant Colors */
    --color-grass: #037F4C;
    --color-gold: #FFCB00;
    --color-sky: #579BFC;
    --color-sunset: #FF642E;
    --color-lipstick: #FF007F;
    --color-purple: #9D50BB;
    --color-navy: #225091;
    --color-iris: #6C6CFF;

    /* Surface Colors */
    --surface-main: #F6F7FB;
    /* Light grey background */
    --surface-white: #FFFFFF;
    --surface-card: #FFFFFF;
    --surface-hover: #F0F3FF;
    --surface-selected: #E6E9FF;

    /* Text Colors */
    --text-primary: #323338;
    /* Monday's main text */
    --text-secondary: #676879;
    --text-tertiary: #9699A6;
    --text-light: #C3C6D4;
    --text-white: #FFFFFF;

    /* Borders */
    --border-color: #E6E9EF;
    --border-hover: #C5C7D0;
    --border-focus: var(--primary);

    /* Shadows - Monday uses subtle shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-dropdown: 0 8px 16px rgba(0, 0, 0, 0.12);

    /* Border Radius - Monday uses rounded corners */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.35s ease;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Figtree', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background-color: var(--surface-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    line-height: 1.5;
}

/* Navigation Bar - Clean Monday Style */
.glass-nav {
    background: var(--surface-white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    backdrop-filter: none;
}

/* Premium Cards */
.glass-panel {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.glass-card {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.glass-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md), 0 0 0 1px var(--primary);
    transform: translateY(-2px);
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--color-lipstick) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Monday-style Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 8px 16px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(97, 97, 255, 0.35);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 16px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

/* Status Badges - Monday Style */
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: var(--radius-xs);
    font-size: 13px;
    font-weight: 500;
    color: white;
    min-width: 80px;
}

.status-done {
    background: var(--status-done);
}

.status-working {
    background: var(--status-working);
}

.status-stuck {
    background: var(--status-stuck);
}

.status-waiting {
    background: var(--status-waiting);
}

.status-default {
    background: var(--status-default);
}

/* Monday-style Input Fields */
.input-monday {
    background: var(--surface-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    width: 100%;
}

.input-monday:hover {
    border-color: var(--border-hover);
}

.input-monday:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(97, 97, 255, 0.15);
}

.input-monday::placeholder {
    color: var(--text-tertiary);
}

/* Sidebar Styles - Monday Dark Sidebar */
.sidebar-dark {
    background: var(--mirage);
    color: var(--text-white);
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.sidebar-item:hover {
    background: var(--mirage-light);
    color: white;
}

.sidebar-item.active {
    background: var(--primary);
    color: white;
}

/* Table Styles - Monday Board Style */
.board-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.board-table th {
    background: var(--surface-main);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.board-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--surface-white);
    font-size: 14px;
}

.board-table tr:hover td {
    background: var(--surface-hover);
}

/* Group Header - Monday Style */
.group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.group-header:hover {
    background: rgba(0, 0, 0, 0.03);
}

.group-color-bar {
    width: 6px;
    height: 32px;
    border-radius: var(--radius-full);
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-state-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--surface-hover), var(--surface-main));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.empty-state-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state-text {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 320px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

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

    100% {
        background-position: 200% 0;
    }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.4s ease-out;
}

.animate-slide-down {
    animation: slideDown 0.3s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.3s ease-out;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Delay Classes */
.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

.animation-delay-2000 {
    animation-delay: 2000ms;
}

/* Marquee Animation */
@keyframes marquee {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes marquee2 {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(0%);
    }
}

.animate-marquee {
    animation: marquee 25s linear infinite;
}

.animate-marquee2 {
    animation: marquee2 25s linear infinite;
}

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

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* Dropdown Menu */
.dropdown-menu {
    background: var(--surface-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-dropdown);
    padding: 8px;
    min-width: 180px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--surface-hover);
}

.dropdown-item-danger {
    color: var(--status-stuck);
}

.dropdown-item-danger:hover {
    background: rgba(226, 68, 92, 0.08);
}

/* Toggle/Switch */
.toggle {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--border-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.toggle.active {
    background: var(--primary);
}

.toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast);
}

.toggle.active::after {
    transform: translateX(20px);
}

/* Avatar */
.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--color-lipstick));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 12px;
}

.avatar-lg {
    width: 48px;
    height: 48px;
    font-size: 16px;
}

.avatar-stack {
    display: flex;
}

.avatar-stack>* {
    margin-left: -8px;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
}

.avatar-stack>*:first-child {
    margin-left: 0;
}

/* Tooltip */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: var(--mirage);
    color: white;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    pointer-events: none;
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

/* Progress Bar */
.progress-bar {
    height: 6px;
    background: var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--color-sky));
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

/* Tag/Chip */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--surface-hover);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
}

.tag-primary {
    background: rgba(97, 97, 255, 0.12);
    color: var(--primary);
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--border-color) 25%, var(--surface-hover) 50%, var(--border-color) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

/* Focus Ring */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(97, 97, 255, 0.25);
}

/* Text Selection */
::selection {
    background: rgba(97, 97, 255, 0.25);
    color: var(--mirage);
}

/* Z-index utilities */
.z-\[9999\] {
    z-index: 9999 !important;
}

/* Divider */
.divider {
    height: 1px;
    background: var(--border-color);
    margin: 16px 0;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--status-stuck);
    border-radius: var(--radius-full);
    color: white;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}