/* Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--gray-100);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--gray-500);
    font-weight: 500;
}

/* Dealer Bulk Entry Page */
.entry-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    background: var(--white);
    position: relative;
    transition: var(--transition);
}

.entry-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.entry-number {
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--primary);
    color: white;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.remove-entry {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--danger);
    cursor: pointer;
    font-size: 18px;
    opacity: 0.6;
}

.remove-entry:hover {
    opacity: 1;
}

/* Auth Pages */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: var(--gray-50);
}

.login-card {
    width: 100%;
    max-width: 400px;
}

/* Mobile Nav improvements */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 70px;
        background: white;
        display: flex;
        justify-content: space-around;
        align-items: center;
        border-top: 1px solid var(--gray-200);
        z-index: 2000;
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Jobs List Page */
.filter-scroller { display: flex; gap: 10px; overflow-x: auto; padding: 15px 0; scrollbar-width: none; }
.filter-scroller::-webkit-scrollbar { display: none; }
.job-card { 
    position: relative; 
    border-left: 5px solid var(--gray-300); 
    transition: all 0.3s ease; 
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.job-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.08); }
.job-card.pending { border-left-color: var(--warning); }
.job-card.in_progress { border-left-color: var(--info); }
.job-card.completed { border-left-color: var(--success); }
.job-card.on_hold { border-left-color: #F87171; }
.job-card.returned { border-left-color: var(--secondary); }
.job-card.closed { border-left-color: var(--primary); }

.price-tag { color: var(--primary); font-weight: 700; font-size: 1.1rem; }
.view-link { color: var(--gray-500); font-weight: 500; font-size: 0.9rem; text-decoration: none; }
.view-link:hover { color: var(--primary); }
.action-dots { 
    width: 32px; 
    height: 32px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: var(--primary); 
    color: white; 
    border-radius: 50%; 
    border: none;
    cursor: pointer;
}

.stats-mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 12px; }
.stat-mini-card { background: white; padding: 12px; border-radius: 12px; border: 1px solid var(--gray-100); text-align: center; }
.stat-mini-val { font-size: 18px; font-weight: 700; display: block; }
.stat-mini-label { font-size: 11px; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; }

/* Bulk Action Bar */
.bulk-bar {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: none;
    z-index: 1000;
    border: 1px solid var(--primary-light);
    gap: 15px;
    align-items: center;
}

/* Add Job Wizard */
.step-item { transition: all 0.3s ease; flex: 1; text-align: center; }
.step-circle { width: 35px; height: 35px; border-radius: 50%; background: var(--gray-200); color: var(--gray-500); display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; font-weight: 700; border: 2px solid transparent; }
.step-item.active .step-circle { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.step-item.completed .step-circle { background: var(--success); color: white; }
.step-item.active span { color: var(--primary); font-weight: 600; }

.pattern-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; width: 180px; margin: 20px auto; background: var(--gray-50); padding: 20px; border-radius: 12px; }
.pattern-dot { width: 40px; height: 40px; background: white; border: 2px solid var(--gray-300); border-radius: 50%; cursor: pointer; transition: all 0.2s; }
.pattern-dot.selected { background: var(--primary); border-color: var(--primary-dark); transform: scale(1.1); }

.form-section { display: none; }
.form-section.active { display: block; animation: slideUp 0.3s ease-out; }

@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
