:root {
    /* Cores */
    --bg-color: #f1f5f9;
    --card-bg: #ffffff;
    --primary-color: #0f172a;
    --accent-color: #3b82f6;
    --success-color: #10b981; /* Verde */
    --working-color: #f59e0b; /* Laranja/Ambar para "Em Atendimento" */
    --text-main: #1e293b;
    --text-muted: #64748b;

    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);

    /* Transições */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s ease;
}

/* ===== BASE & LOADING ===== */
body {
    background-color: var(--bg-color);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    padding-bottom: 50px;
    margin: 0;
}

#loading-screen {
    transition: opacity 0.5s ease, visibility 0.5s;
}

/* ===== HEADER ===== */
.header-glass {
    background: rgba(241, 245, 249, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.brand-title {
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.brand-title span {
    background: linear-gradient(to right, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== FILTROS ===== */
.nav-pills-custom {
    background: rgba(0, 0, 0, 0.05);
    padding: 3px;
    border-radius: 12px;
    display: flex;
}

.nav-pills-custom .btn {
    border: none;
    border-radius: 9px;
    flex: 1;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 6px 0;
    transition: var(--transition-fast);
    margin: 2px;
}

.nav-pills-custom .btn-check:checked + .btn {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

/* ===== CARDS ===== */
.card-custom {
    background: var(--card-bg);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.card-custom:active { transform: scale(0.98); }

/* Borda lateral muda conforme o estado */
.border-working { border-left: 5px solid var(--working-color); }
.border-done { border-left: 5px solid var(--success-color); }

.card-custom h6 { line-height: 1.3; margin-bottom: 4px; }
.card-custom p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

/* ===== BADGES ===== */
.status-badge {
    font-size: 0.6rem;
    text-transform: uppercase;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
    letter-spacing: 0.05em;
}

.badge-working {
    background: var(--working-color);
    color: white;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.badge-done {
    background: var(--success-color);
    color: white;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

/* ===== BOTÕES ===== */
.btn-action-round {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: var(--text-main);
    transition: var(--transition-fast);
}

.btn-action-round:hover {
    background: #ffffff;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* ===== ANIMAÇÕES ===== */
.spinning { animation: rotate 0.8s linear infinite; }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.skeleton {
    height: 120px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    border-radius: 20px;
    animation: shimmer 1.5s infinite;
    margin-bottom: 16px;
}

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

#app { animation: fadeIn 0.8s ease; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 576px) {
    .brand-title { font-size: 1.2rem; }
}
