/* ========================================
   DESIGN SYSTEM MODERNO - 2026
   ======================================== */

:root {
    /* Cores Primárias - Vibrantes e Modernas */
    --primary: #6366f1;           /* Índigo vibrante */
    --primary-dark: #4f46e5;      /* Índigo escuro */
    --primary-light: #818cf8;     /* Índigo claro */
    
    /* Cores Secundárias */
    --secondary: #ec4899;         /* Rosa */
    --secondary-light: #f472b6;
    
    /* Cores Funcionais - Mais saturadas */
    --success: #10b981;           /* Verde */
    --warning: #f59e0b;           /* Âmbar */
    --danger: #ef4444;            /* Vermelho */
    --info: #3b82f6;              /* Azul */
    
    /* Neutros - Cinzas Modernos */
    --text-primary: #1f2937;      /* Cinza escuro */
    --text-secondary: #6b7280;    /* Cinza médio */
    --text-light: #9ca3af;        /* Cinza claro */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border: #e5e7eb;
    
    /* Sombras Modernas */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    
    /* Espaçamentos */
    --gap-xs: 0.5rem;
    --gap-sm: 1rem;
    --gap-md: 1.5rem;
    --gap-lg: 2rem;
    --gap-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    
    /* Transições */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   RESET E BASE
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    background: var(--bg-secondary);
    line-height: 1.6;
}

/* ========================================
   HEADER / NAVEGAÇÃO MELHORADO
   ======================================== */

.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--gap-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--gap-lg);
}

.header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header h1::before {
    content: "📋";
    font-size: 32px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: var(--gap-md);
    flex-wrap: wrap;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.theme-toggle:hover::before {
    left: 100%;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-toggle-icon {
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.theme-toggle:active .theme-toggle-icon {
    transform: scale(0.9);
}

.btn-logout {
    background: rgba(239, 68, 68, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.ops-dashboard {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--gap-sm);
    margin-bottom: var(--gap-lg);
}

.ops-card {
    background: linear-gradient(180deg, #ffffff, #f5f8ff);
    border: 1px solid #e8ecff;
    border-radius: var(--radius-lg);
    padding: 14px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ops-card small {
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ops-card strong {
    font-size: 22px;
    line-height: 1;
    color: #1e3a8a;
}

.ops-card span {
    color: var(--text-secondary);
    font-size: 12px;
}

.ops-card.warning {
    background: linear-gradient(180deg, #fffaf0, #fff3d6);
    border-color: #ffd47d;
}

.ops-card.warning strong {
    color: #92400e;
}

.ops-card.danger {
    background: linear-gradient(180deg, #fff4f4, #ffe8e8);
    border-color: #ffb8b8;
}

.ops-card.danger strong {
    color: #b91c1c;
}

.ops-card.success {
    background: linear-gradient(180deg, #f0fff6, #e3fbe9);
    border-color: #a6f1be;
}

.ops-card.success strong {
    color: #047857;
}

.sla-mini {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.sla-mini-item {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid transparent;
    line-height: 1;
}

.sla-mini-item.normal {
    background: #eef6ff;
    color: #1e40af;
    border-color: #dbeafe;
}

.sla-mini-item.urgente {
    background: #fff7ed;
    color: #b45309;
    border-color: #fed7aa;
}

.sla-mini-item.vencido {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.sla-mini-item.concluido {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.sla-mini-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
}

.sla-mini-more:hover {
    background: #f1f5f9;
}

.equip-alert-section {
    background: #ffffff;
    border: 1px solid #fee2e2;
    border-left: 4px solid #ef4444;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 16px;
}

.equip-alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.equip-alert-header h3 {
    margin: 0;
    font-size: 16px;
    color: #991b1b;
}

.equip-alert-summary {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.alert-chip {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.alert-chip.overdue {
    background: #fee2e2;
    color: #991b1b;
}

.alert-chip.urgent {
    background: #fef3c7;
    color: #92400e;
}

.equip-alert-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 8px;
}

.equip-alert-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
}

.equip-alert-item strong {
    font-size: 13px;
    color: #111827;
}

.equip-alert-item.atrasado {
    background: #fff1f2;
    border-color: #fecdd3;
}

.equip-alert-item.urgente {
    background: #fffbeb;
    border-color: #fde68a;
}

.advanced-filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 16px;
    background: #ffffff;
    border: 1px solid #e8ecff;
    border-radius: var(--radius-lg);
    padding: 12px;
}

.filter-control {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-control label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.filter-control input,
.filter-control select {
    width: 100%;
    border: 1px solid #d7def5;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
    background: #fbfcff;
}

.search-field-wrap {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.75;
}

.search-field-wrap input {
    padding-left: 32px;
    padding-right: 74px;
}

.search-clear-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid #d4ddfb;
    background: #ffffff;
    color: #334155;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    cursor: pointer;
    visibility: hidden;
}

.search-clear-btn:hover {
    background: #f1f5ff;
}

.filter-control input:focus,
.filter-control select:focus {
    border-color: #7c9bff;
    box-shadow: 0 0 0 3px rgba(124, 155, 255, 0.2);
}

.filter-actions {
    display: flex;
    gap: 8px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #d0d7ef;
    color: #334155;
    text-decoration: none;
    font-weight: 600;
    background: #fff;
}

.productivity-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
    padding: 10px 12px;
    background: #f7f9ff;
    border: 1px solid #e1e8ff;
    border-radius: 12px;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.live-count {
    font-size: 12px;
    color: #334155;
    background: #ffffff;
    border: 1px solid #dbe3ff;
    border-radius: 999px;
    padding: 5px 10px;
    font-weight: 600;
}

.shortcut-hint {
    font-size: 12px;
    color: #64748b;
}

.chamados-grid.compact-mode {
    gap: 10px;
}

.chamados-grid.compact-mode .chamado-card-simple {
    padding: 10px;
    border-radius: 10px;
}

.chamados-grid.compact-mode .chamado-description {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.chamados-grid.compact-mode .sla-row {
    margin-top: 6px;
}

.sla-row {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.sla-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.sla-badge.normal {
    background: #e8f4ff;
    color: #1d4ed8;
}

.sla-badge.urgente {
    background: #fff1db;
    color: #b45309;
}

.sla-badge.vencido {
    background: #ffe3e3;
    color: #b91c1c;
}

.sla-badge.concluido {
    background: #dcfce7;
    color: #166534;
}

.header h1 {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
    letter-spacing: -0.5px;
    margin: 0;
}

.user-info {
    display: flex;
    gap: var(--gap-lg);
    align-items: center;
}

.user-name {
    font-weight: 500;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.btn-logout {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ========================================
   CONTAINER E LAYOUT
   ======================================== */

.container {
    max-width: 1600px;
    margin: 0 auto;
}

.content {
    display: flex;
    gap: var(--gap-lg);
    padding: var(--gap-xl) var(--gap-lg);
    min-height: calc(100vh - 80px);
}

.content-full {
    padding: var(--gap-xl) var(--gap-lg);
}

@media (max-width: 768px) {
    .ops-dashboard {
        grid-template-columns: 1fr 1fr;
    }

    .advanced-filters {
        grid-template-columns: 1fr;
    }

    .sla-mini {
        width: 100%;
    }

    .equip-alert-header {
        align-items: flex-start;
    }

    .productivity-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-actions {
        width: 100%;
    }

    .filter-actions .btn-primary,
    .filter-actions .btn-secondary {
        flex: 1;
    }

    .content {
        flex-direction: column;
        gap: var(--gap-md);
        padding: var(--gap-md);
    }
}

/* ========================================
   SIDEBAR MELHORADA
   ======================================== */

.sidebar {
    width: 300px;
    background: var(--bg-primary);
    padding: var(--gap-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    height: fit-content;
    position: sticky;
    top: 100px;
    border: 1px solid var(--border);
}

.menu {
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
}

.btn-novo {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.btn-novo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-novo:hover::before {
    left: 100%;
}

.btn-novo:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-novo:active {
    transform: translateY(0);
}

.quick-actions-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.btn-novo.btn-accent-purple {
    background: #764ba2;
}

.btn-novo.btn-accent-blue {
    background: #667eea;
}

.btn-novo.btn-accent-teal {
    background: #0f766e;
}

.btn-novo.btn-accent-amber {
    background: #ff9800;
}

.btn-novo.btn-with-badge {
    margin-top: 10px;
    position: relative;
}

/* Notificação Badge Melhorada */
.btn-novo .notification-badge {
    position: absolute;
    top: -8px;
    right: 10px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: var(--shadow-sm);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Filtros Melhorados */
.filter-group {
    background: var(--bg-secondary);
    padding: var(--gap-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.filter-group h4 {
    margin: 0 0 var(--gap-sm) 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.filter-group li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.filter-group li a:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transform: translateX(4px);
}

.filter-group li a.ativo {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.filter-group li a.ativo::after {
    content: '✓';
    font-weight: bold;
}

.sidebar h3:first-child {
    margin-top: 0;
}

.filter-group {
    margin-bottom: var(--gap-md);
}

.filter-group h4 {
    font-size: 13px;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.filter-group ul {
    list-style: none;
}

.filter-group li {
    margin-bottom: 0.5rem;
}

.filter-group a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
}

.filter-group a:hover {
    background: var(--bg-tertiary);
    color: var(--primary);
    transform: translateX(4px);
}

.filter-group a.ativo {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    font-weight: 600;
}

.btn-novo {
    display: block;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-lg);
    text-align: center;
    font-weight: 600;
    margin-bottom: var(--gap-sm);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 14px;
    box-shadow: var(--shadow-md);
}

.btn-novo:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   CHAMADOS LIST
   ======================================== */

.chamados-list {
    flex: 1;
}

.chamados-list h2 {
    margin-bottom: var(--gap-lg);
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
}

.active-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin: -6px 0 14px;
    padding: 10px 12px;
    border: 1px solid #dbe4ff;
    background: #f6f9ff;
    border-radius: 12px;
}

.active-filters-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.active-filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 12px;
    color: #1e3a8a;
    background: #e8efff;
    border: 1px solid #c7d7ff;
    border-radius: 999px;
    font-weight: 600;
}

.chamados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--gap-lg);
}

/* ========================================
   CHAMADO CARD
   ======================================== */

.chamado-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--gap-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.chamado-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-6px);
    border-color: var(--primary-light);
}

.chamado-header {
    margin-bottom: var(--gap-md);
    padding-bottom: var(--gap-md);
    border-bottom: 2px solid var(--border);
}

.chamado-header h3 {
    margin-bottom: 0.5rem;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.chamado-header a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.chamado-header a:hover {
    color: var(--secondary);
}

.chamado-meta {
    display: flex;
    gap: var(--gap-xs);
    flex-wrap: wrap;
    margin-bottom: var(--gap-md);
}

/* ========================================
   BADGES
   ======================================== */

.badge-status, .badge-priority {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-status.aberto {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.badge-status.em_andamento {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.badge-status.resolvido {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.badge-status.fechado {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.badge-priority.baixa {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.badge-priority.media {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.badge-priority.alta {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.badge-priority.critica {
    background: rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

.chamado-card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: var(--gap-md);
    line-height: 1.6;
    flex-grow: 1;
}

.chamado-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-light);
    padding-top: var(--gap-md);
    border-top: 1px solid var(--border);
}

/* ========================================
   BOTÕES
   ======================================== */

.btn-small {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.btn-small:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    font-size: 14px;
}

.btn-secondary:hover {
    background: var(--border);
}

.btn-voltar {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: var(--gap-md);
    transition: var(--transition);
    font-weight: 600;
}

.btn-voltar:hover {
    color: var(--secondary);
    transform: translateX(-4px);
}

/* ========================================
   FORMULÁRIOS
   ======================================== */

.form-container {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--gap-lg);
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--border);
}

.form-header {
    margin-bottom: var(--gap-lg);
}

.form-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.form-group {
    margin-bottom: var(--gap-md);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-buttons {
    display: flex;
    gap: var(--gap-sm);
    margin-top: var(--gap-lg);
}

.form-buttons button,
.form-buttons a {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
}

/* ========================================
   DETALHES DO CHAMADO
   ======================================== */

.chamado-detalhes {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--gap-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.chamado-title-section {
    margin-bottom: var(--gap-lg);
    border-bottom: 2px solid var(--border);
    padding-bottom: var(--gap-md);
}

.chamado-title-section h2 {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.chamado-title-section h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

.alert {
    padding: 1rem;
    border-radius: var(--radius-lg);
    margin-bottom: var(--gap-md);
    font-weight: 500;
}

.alert.erro {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert.sucesso {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert.aviso {
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.chamado-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--gap-lg);
    margin-bottom: var(--gap-lg);
}

.info-card {
    background: var(--bg-secondary);
    padding: var(--gap-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.info-label {
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
}

.select-status {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
}

.chamado-section {
    margin-bottom: var(--gap-lg);
    padding-bottom: var(--gap-lg);
    border-bottom: 1px solid var(--border);
}

.chamado-section:last-child {
    border-bottom: none;
}

.chamado-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: var(--gap-md);
    color: var(--text-primary);
}

.descricao {
    background: var(--bg-secondary);
    padding: var(--gap-md);
    border-radius: var(--radius-md);
    line-height: 1.8;
    color: var(--text-primary);
    border-left: 4px solid var(--primary);
}

/* ========================================
   COMENTÁRIOS
   ======================================== */

.form-comentario {
    background: var(--bg-secondary);
    padding: var(--gap-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--gap-lg);
    border: 1px solid var(--border);
}

.comentarios-list {
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
}

.comentario {
    background: var(--bg-secondary);
    padding: var(--gap-md);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.comentario:hover {
    box-shadow: var(--shadow-sm);
}

.comentario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.comentario-header strong {
    color: var(--text-primary);
    font-weight: 700;
}

.comentario-header small {
    color: var(--text-light);
    font-size: 12px;
}

.comentario-texto {
    color: var(--text-primary);
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.sem-comentarios {
    color: var(--text-light);
    text-align: center;
    padding: var(--gap-lg);
    font-style: italic;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

/* ========================================
   ESTADO VAZIO
   ======================================== */

.vazio {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    text-align: center;
    border: 2px dashed var(--border);
}

.vazio p {
    color: var(--text-light);
    margin-bottom: var(--gap-md);
    font-size: 16px;
}

/* ========================================
   IMAGENS GALLERY
   ======================================== */

.imagens-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--gap-md);
    margin: var(--gap-md) 0;
}

.imagem-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 200px;
}

.imagem-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.imagem-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   RESPONSIVO
   ======================================== */

@media (max-width: 768px) {
    .content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: static;
        top: auto;
    }
    
    .chamados-grid {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        gap: var(--gap-md);
        align-items: flex-start;
    }
    
    .user-info {
        width: 100%;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .form-buttons button,
    .form-buttons a {
        flex: auto;
    }
    
    .chamado-info {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: var(--gap-md);
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 22px;
    }
    
    .form-container,
    .chamado-detalhes {
        padding: var(--gap-md);
    }
    
    .chamado-card {
        padding: var(--gap-md);
    }
    
    .header-content {
        gap: var(--gap-sm);
    }

    /* Otimizações Mobile */
    input,
    textarea,
    select,
    button,
    .btn {
        min-height: 44px;
        font-size: 16px;
        padding: 0.75rem 1rem;
        width: 100%;
    }

    textarea {
        min-height: 100px;
    }

    .badge,
    .badge-status,
    .badge-priority {
        font-size: 11px;
        padding: 0.4rem 0.6rem;
    }

    table {
        font-size: 12px;
        display: block;
        overflow-x: auto;
    }

    th, td {
        padding: 0.5rem;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .modal {
        width: 95vw;
        margin: 0 auto;
    }

    .header h2,
    .header h3 {
        font-size: 18px;
    }

    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    ::-webkit-scrollbar-thumb {
        border-radius: 4px;
    }
}

/* ========================================
   MELHORIAS PARA USUÁRIOS LEIGOS - 2026
   ======================================== */

/* ========================================
   ONBOARDING E GUIAS
   ======================================== */

.onboarding-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.onboarding-modal {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--gap-xl);
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-2xl);
    border: 2px solid var(--primary);
    position: relative;
}

.onboarding-modal h2 {
    color: var(--primary);
    margin-bottom: var(--gap-lg);
    text-align: center;
    font-size: 24px;
}

.onboarding-steps {
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
}

.onboarding-step {
    display: flex;
    align-items: center;
    gap: var(--gap-md);
    padding: var(--gap-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
}

.onboarding-step-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    flex-shrink: 0;
}

.onboarding-step-content h3 {
    margin: 0 0 var(--gap-xs) 0;
    font-size: 16px;
    font-weight: 600;
}

.onboarding-step-content p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.onboarding-actions {
    display: flex;
    gap: var(--gap-md);
    margin-top: var(--gap-lg);
    justify-content: center;
}

.btn-skip {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

/* ========================================
   DASHBOARD AMIGÁVEL
   ======================================== */

.welcome-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: var(--gap-xl);
    border-radius: var(--radius-lg);
    margin-bottom: var(--gap-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(-50%, -50%) rotate(180deg); }
}

.welcome-content {
    position: relative;
    z-index: 1;
}

.welcome-section h1 {
    font-size: 32px;
    margin-bottom: var(--gap-sm);
    font-weight: 700;
}

.welcome-section p {
    font-size: 18px;
    margin-bottom: var(--gap-lg);
    opacity: 0.9;
}

.quick-actions {
    display: flex;
    gap: var(--gap-md);
    justify-content: center;
    flex-wrap: wrap;
}

.quick-action-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: var(--gap-md) var(--gap-lg);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.quick-action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.quick-action-btn.primary {
    background: white;
    color: var(--primary);
    font-weight: 700;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -8px;
    right: 10px;
    background: #d32f2f;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: var(--shadow-sm);
}

/* ========================================
   CARDS MAIS INTUITIVOS
   ======================================== */

.chamado-card-simple {
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--gap-lg);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
}

.chamado-card-simple:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.chamado-card-simple.publico-iluminacao {
    border-left-color: #f59e0b;
    background: linear-gradient(180deg, #ffffff, #fff8eb);
}

.chamado-origin-badge {
    position: absolute;
    top: var(--gap-md);
    left: var(--gap-md);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.14);
    color: #92400e;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.chamado-status-indicator {
    position: absolute;
    top: var(--gap-md);
    right: var(--gap-md);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
}

.chamado-status-indicator.aberto { background: var(--warning); }
.chamado-status-indicator.em_andamento { background: var(--info); }
.chamado-status-indicator.resolvido { background: var(--success); }
.chamado-status-indicator.fechado { background: var(--text-light); }

.chamado-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.8rem;
    margin-bottom: var(--gap-sm);
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
}

.chamado-title::before {
    content: '📋';
    font-size: 20px;
}

.chamado-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: var(--gap-md);
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.chamado-meta-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-light);
}

.chamado-priority-badge {
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.chamado-priority-badge.baixa {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.chamado-priority-badge.media {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.chamado-priority-badge.alta {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.chamado-priority-badge.critica {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
    animation: pulse 2s infinite;
}

/* ========================================
   SIDEBAR MAIS AMIGÁVEL
   ======================================== */

.sidebar-friendly {
    background: var(--bg-primary);
    padding: var(--gap-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.mobile-panel-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.mobile-action-bar {
    display: none;
}

.mobile-action-btn {
    border: 1px solid #dbe4ff;
    background: #ffffff;
    color: #1f2937;
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 700;
    text-decoration: none;
    font-size: 13px;
    min-width: 88px;
    text-align: center;
}

.mobile-action-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border-color: transparent;
}

.sidebar-section {
    margin-bottom: var(--gap-lg);
}

.sidebar-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--gap-md);
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
}

.sidebar-section h3::before {
    content: '🔍';
    font-size: 18px;
}

.filter-group-friendly {
    background: var(--bg-secondary);
    padding: var(--gap-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.filter-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap-sm);
}

.filter-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--gap-sm) var(--gap-md);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid transparent;
}

.filter-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transform: translateX(4px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    border-color: var(--primary);
}

.filter-btn .count {
    background: rgba(0, 0, 0, 0.1);
    color: inherit;
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
}

.filter-btn.active .count {
    background: rgba(255, 255, 255, 0.2);
}

/* ========================================
   TOOLTIPS EXPLICATIVOS
   ======================================== */

.tooltip-friendly {
    position: relative;
    cursor: help;
}

.tooltip-friendly::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: var(--gap-sm) var(--gap-md);
    border-radius: var(--radius-sm);
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    z-index: 1000;
    pointer-events: none;
}

.tooltip-friendly:hover::after,
.tooltip-friendly:focus::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

.tooltip-friendly::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--bg-primary);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.tooltip-friendly:hover::before,
.tooltip-friendly:focus::before {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   FEEDBACK VISUAL MELHORADO
   ======================================== */

.feedback-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: var(--gap-md) var(--gap-lg);
    border-radius: var(--radius-md);
    color: white;
    font-weight: 500;
    font-size: 14px;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
}

.feedback-message.show {
    transform: translateX(0);
}

.feedback-message.success {
    background: var(--success);
}

.feedback-message.error {
    background: var(--danger);
}

.feedback-message.info {
    background: var(--info);
}

.feedback-message.warning {
    background: var(--warning);
}

.feedback-message .icon {
    font-size: 18px;
}

/* ========================================
   LOADING STATES MAIS AMIGÁVEIS
   ======================================== */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.loading-content {
    background: var(--bg-primary);
    padding: var(--gap-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-2xl);
    border: 2px solid var(--primary);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--bg-tertiary);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--gap-md);
}

.loading-text {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
}

.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid currentColor;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ========================================
   MENSAGENS DE CONFIRMAÇÃO
   ======================================== */

.confirmation-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-primary);
    padding: var(--gap-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
    border: 2px solid var(--warning);
    z-index: 10001;
    max-width: 400px;
    width: 90%;
}

.confirmation-dialog h3 {
    color: var(--text-primary);
    margin-bottom: var(--gap-md);
    font-size: 18px;
}

.confirmation-dialog p {
    color: var(--text-secondary);
    margin-bottom: var(--gap-lg);
    line-height: 1.5;
}

.confirmation-actions {
    display: flex;
    gap: var(--gap-md);
    justify-content: flex-end;
}

.btn-confirm {
    background: var(--warning);
    color: white;
    border: none;
    padding: var(--gap-sm) var(--gap-md);
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-confirm:hover {
    background: var(--warning-dark, #d97706);
    transform: translateY(-1px);
}

.btn-cancel {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: var(--gap-sm) var(--gap-md);
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cancel:hover {
    background: var(--bg-secondary);
}

/* ========================================
   RESPONSIVIDADE PARA LEIGOS
   ======================================== */

@media (max-width: 768px) {
    .welcome-section {
        padding: var(--gap-lg);
        margin-bottom: var(--gap-lg);
    }

    .welcome-section h1 {
        font-size: 24px;
    }

    .welcome-section p {
        font-size: 16px;
    }

    .quick-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .quick-action-btn {
        justify-content: center;
        padding: var(--gap-md);
    }

    .active-filters {
        align-items: flex-start;
    }

    .sidebar-friendly {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: min(90vw, 380px);
        margin: 0;
        border-radius: 0;
        z-index: 120;
        overflow-y: auto;
        transform: translateX(105%);
        transition: transform 0.25s ease;
    }

    body.mobile-filters-open .sidebar-friendly {
        transform: translateX(0);
    }

    .mobile-panel-header {
        display: flex;
        position: sticky;
        top: 0;
        background: #fff;
        padding-bottom: 8px;
        border-bottom: 1px solid #edf1ff;
    }

    .mobile-action-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 110;
        display: flex;
        justify-content: space-between;
        gap: 8px;
        padding: 10px 12px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(8px);
        border-top: 1px solid #dbe4ff;
    }

    .chamados-list {
        padding-bottom: 76px;
    }

    .chamado-card-simple {
        padding: var(--gap-md);
    }

    .chamado-title {
        font-size: 16px;
    }

    .filter-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .filter-buttons {
        grid-template-columns: 1fr;
    }

    .onboarding-modal {
        padding: var(--gap-lg);
        margin: var(--gap-md);
    }

    .confirmation-dialog {
        margin: var(--gap-md);
        padding: var(--gap-lg);
    }
}

