/* =========================================
    0. GLOBAL STYLES
    ========================================= */

/* Global Variables */
:root {
    --primary-50: 239 246 255;
    --primary-100: 224 242 254;
    --primary-200: 191 219 254;
    --primary-300: 147 197 253;
    --primary-400: 96 165 250;
    --primary-500: 59 130 246;
    --primary-600: 37 99 235;
    --primary-700: 29 78 216;
    --primary-800: 30 64 175;
    --primary-900: 30 58 138;
}

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

/* =========================================
   1. GRID SYSTEMS (Responsive Layouts)
   ========================================= */

/* Standard Dashboard Grid (4 columns on big screens, 1 on mobile) */
/* Used for: Stats cards, Funnel overview */
.simple-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Projects Grid (2 columns on big screens, 1 on mobile) */
/* Used for: Project cards listing */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Stats Grid (3 columns strict) */
/* Used for: Top summary stats (Total, Active, Completed) */
.stats-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}


/* =========================================
   2. FLEXBOX UTILITIES (Alignment)
   ========================================= */

/* Center items horizontally & vertically */
.flex-center {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Space between items (Good for Card Headers: Title vs Badge) */
.flex-between {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* The Funnel Guide Row (Centered, Wrapped) */
.flex-guide {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    /* Gray-500 */
}

/* Small label with icon (e.g. "Inbox", "Delete") */
.icon-label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}


/* =========================================
   3. TYPOGRAPHY & TEXT
   ========================================= */

/* Large Count Numbers on Cards */
.stat-value {
    font-size: 1.5rem;
    /* 24px */
    font-weight: 700;
    margin-top: 0.5rem;
    line-height: 1;
}

/* Small subtitles (e.g. "Unsorted tasks") */
.stat-label {
    font-size: 0.75rem;
    /* 12px */
    color: #9ca3af;
    /* Gray-400 */
    margin-top: 0.25rem;
}

/* Section Headings */
.card-title {
    font-size: 1.125rem;
    /* 18px */
    font-weight: 700;
    color: var(--gray-950);
}

.card-subtitle {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}


/* =========================================
   4. COLORS & HIGHLIGHTS
   ========================================= */

/* Primary Focus Card (Concentrate) */
/* Uses Filament's dynamic primary color variable */
.card-highlight-primary {
    border: 2px solid rgb(var(--primary-500));
    background-color: rgba(var(--primary-500), 0.05);
}

/* Text Colors matching your Funnel logic */
.text-primary {
    color: rgb(var(--primary-600));
}

.text-danger {
    color: #ef4444;
}

/* Red */
.text-warning {
    color: #f59e0b;
}

/* Orange/Yellow */
.text-success {
    color: #10b981;
}

/* Green */
.text-info {
    color: #3b82f6;
}

/* Blue */
.text-gray {
    color: #6b7280;
}

/* Gray */

/* Background bars (for Project Progress) */
.progress-bg {
    width: 100%;
    background-color: #e5e7eb;
    /* Gray-200 */
    border-radius: 9999px;
    height: 0.625rem;
    /* 10px */
    overflow: hidden;
}

.progress-fill {
    background-color: rgb(var(--primary-600));
    height: 100%;
    border-radius: 9999px;
    transition: width 0.5s ease;
}


/* =========================================
   5. SPACING & UTILITIES
   ========================================= */

.mb-4 {
    margin-bottom: 1rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.p-4 {
    padding: 1rem;
}

/* =========================================
   6. ICON SIZES (Missing Tailwind Utils)
   ========================================= */

/* Small Icon (12px) - Used for arrows */
.w-3 {
    width: 0.75rem;
}

.h-3 {
    height: 0.75rem;
}

/* Normal Icon (16px) - Used for labels */
.w-4 {
    width: 1rem;
}

.h-4 {
    height: 1rem;
}

/* Large Icon (24px) - Used for section headers */
.w-6 {
    width: 1.5rem;
}

.h-6 {
    height: 1.5rem;
}

/* Giant Icon (32px) - Used for stats */
.w-8 {
    width: 2rem;
}

.h-8 {
    height: 2rem;
}

/* Ensure SVGs respect these sizes */
svg {
    display: inline-block;
    vertical-align: middle;
}


/* =========================================
   7. WIDGET & DASHBOARD STYLES
   ========================================= */

/* The main layout for the workspace widget (2 columns responsive) */
.widget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    /* 24px */
}

/* Vertical column for stacking cards */
.widget-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Side-by-side stats row (Tasks Ready / Done) */
.stats-pair-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* --- Cards --- */

/* Blue Card (Tasks Ready) */
.card-blue {
    background-color: #2563eb;
    /* Blue-600 */
    color: white;
    border-radius: 0.75rem;
    /* 12px */
    padding: 1.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* White Card (Done this week / Projects) */
.card-white {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    /* 24px */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    height: 100%;
}

/* Timer Card */
.card-timer {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* --- Typography & Elements --- */

/* The huge digital clock text */
.timer-display {
    font-family: monospace;
    font-size: 3.75rem;
    /* 60px */
    font-weight: 700;
    line-height: 1;
}

/* Project List Accordion Button */
.project-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background-color: #f9fafb;
    border: none;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
}

/* Project List Items */
.task-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

/* Status dots */
.dot-green {
    height: 0.5rem;
    width: 0.5rem;
    background-color: #22c55e;
    border-radius: 50%;
}

.dot-gray {
    height: 0.5rem;
    width: 0.5rem;
    background-color: #d1d5db;
    border-radius: 50%;
}

/* Badges */
.badge-checkin {
    background-color: #ecfdf5;
    color: #047857;
    border: 1px solid #d1fae5;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-offline {
    background-color: #f9fafb;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}