/* ========================================
   GesGaio — Design System Styles (v2)
   New palette: earthy green + warm neutrals
   ======================================== */

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Manrope', sans-serif;
    background: radial-gradient(circle at top left, #f8f6f2 0%, #eae8e4 100%);
    color: #2e2f2c;
}
.font-headline { font-family: 'Plus Jakarta Sans', sans-serif; }

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
    vertical-align: middle;
}

/* Scrollbar */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #deddd8; border-radius: 10px; }

/* Shadows */
.loose-shadow {
    box-shadow: 0 10px 25px rgba(46, 47, 44, 0.05);
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Top nav active link (pill style) */
.nav-top-link {
    transition: all 0.2s ease;
}

/* Command Palette */
@keyframes slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-slide-up {
    animation: slide-up 0.2s ease-out forwards;
}

/* Pulsing dot */
.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #2a6653;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(42, 102, 83, 0.4);
    animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(42, 102, 83, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(42, 102, 83, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(42, 102, 83, 0); }
}

/* Pulse indicator (used in feed) */
.pulse-indicator {
    box-shadow: 0 0 0 0 rgba(42, 102, 83, 0.4);
    animation: pulse-indicator 2s infinite;
}
@keyframes pulse-indicator {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(42, 102, 83, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(42, 102, 83, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(42, 102, 83, 0); }
}

/* Status colors */
.status-working { background: #22c55e; }
.status-idle { background: #eab308; }
.status-blocked { background: #ef4444; }
.status-offline { background: #94a3b8; }

/* Page transition */
.page-enter {
    animation: fadeIn 0.3s ease-out forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Editable fields */
[contenteditable="true"]:focus {
    outline: none;
    background-color: rgba(42, 102, 83, 0.04);
    border-radius: 0.25rem;
    box-shadow: inset 0 0 0 1px #2a6653;
}
[contenteditable="true"]:hover {
    box-shadow: inset 0 0 0 1px rgba(42, 102, 83, 0.15);
    border-radius: 0.25rem;
}

/* Progress bar glow */
.progress-glow {
    box-shadow: 0 0 8px rgba(42, 102, 83, 0.4);
}

/* Card hover lift */
.card-lift {
    transition: all 0.3s ease;
}
.card-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* Team map node */
.team-node {
    transition: all 0.3s ease;
}
.team-node:hover {
    transform: scale(1.08);
}

/* Kanban column */
.kanban-col {
    min-height: 200px;
}

/* Timeline connector */
.timeline-connector {
    position: relative;
}
.timeline-connector::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0.5rem;
    bottom: -0.5rem;
    width: 2px;
    background: #e4e2de;
}

/* Dependency chain */
.dep-arrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.dep-arrow .material-symbols-outlined {
    color: #aeada9;
    font-size: 16px;
}

/* Blocker card pulse */
.blocker-pulse {
    animation: blocker-glow 2s ease-in-out infinite alternate;
}
@keyframes blocker-glow {
    from { box-shadow: 0 0 0 0 rgba(179, 27, 37, 0); }
    to { box-shadow: 0 0 12px 2px rgba(179, 27, 37, 0.15); }
}

/* Real-time badge */
.live-badge::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #2a6653;
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse-ring 2s infinite;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #2a6653, #acead2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Updated timestamp style */
.timestamp-live {
    color: #2a6653;
    font-weight: 700;
}
.timestamp-live::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: #2a6653;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
    animation: pulse-ring 2s infinite;
}


/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #eae8e4 25%, #f2f1ec 50%, #eae8e4 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 0.5rem;
}
@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Mobile nav */
.mobile-nav {
    color: #5c5c59;
}
.mobile-nav.active {
    color: #2a6653;
}
.mobile-nav.active .material-symbols-outlined {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* User dropdown animation */
#user-dropdown {
    transform-origin: top right;
}
