/* =============================================
   ControleMas - Design System
   Cores: Lilás (#7C3AED, #8B5CF6, #A78BFA) + Branco
   Full Responsive
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #7C3AED;
    --primary-dark: #6D28D9;
    --primary-darker: #5B21B6;
    --primary-light: #8B5CF6;
    --primary-lighter: #A78BFA;
    --primary-50: #F5F3FF;
    --primary-100: #EDE9FE;
    --primary-200: #DDD6FE;

    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    --success: #10B981;
    --success-light: #D1FAE5;
    --danger: #EF4444;
    --danger-light: #FEE2E2;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --info: #3B82F6;
    --info-light: #DBEAFE;

    --sidebar-width: 260px;
    --header-height: 64px;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --transition: all 0.2s ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

.page-content svg {
    flex-shrink: 0;
}

/* --- Layout Principal --- */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--primary-darker) 0%, var(--primary-dark) 100%);
    color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.sidebar-brand {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-brand-icon {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.sidebar-brand-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.sidebar-brand-text small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    opacity: 0.7;
    letter-spacing: 0;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
}

.sidebar-section {
    margin-bottom: 8px;
}

.sidebar-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.4);
    padding: 8px 12px 4px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: rgba(255,255,255,0.75);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.sidebar-link:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.sidebar-link.active {
    background: rgba(255,255,255,0.15);
    color: var(--white);
}

.sidebar-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.8;
}

.sidebar-link.active svg {
    opacity: 1;
}

.sidebar-link-sub {
    display: block;
    font-size: 10px;
    font-weight: 400;
    opacity: 0.55;
    line-height: 1.3;
    margin-top: 1px;
}

.sidebar-submenu {
    padding-left: 20px;
}

.sidebar-submenu .sidebar-link {
    font-size: 13px;
    padding: 7px 12px;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-empresa {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 10px 12px;
    font-size: 12px;
}

.sidebar-empresa-label {
    color: rgba(255,255,255,0.5);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-empresa-name {
    color: var(--white);
    font-weight: 600;
    margin-top: 2px;
}

/* --- Main Content --- */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Header --- */
.header {
    height: var(--header-height);
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gray-600);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius);
}

.header-toggle:hover {
    background: var(--gray-100);
}

.header-toggle svg {
    width: 24px;
    height: 24px;
}

.header-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.header-user:hover {
    background: var(--gray-100);
}

.header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-100);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.header-user-info {
    text-align: right;
}

.header-user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
}

.header-user-role {
    font-size: 11px;
    color: var(--gray-400);
}

/* --- Page Content --- */
.page-content {
    flex: 1;
    padding: 24px;
}

/* --- Cards --- */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
}

/* --- Stats Cards --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.stat-icon.purple {
    background: var(--primary-100);
    color: var(--primary);
}

.stat-icon.green {
    background: var(--success-light);
    color: var(--success);
}

.stat-icon.blue {
    background: var(--info-light);
    color: var(--info);
}

.stat-icon.orange {
    background: var(--warning-light);
    color: var(--warning);
}

.stat-icon svg {
    width: 24px;
    height: 24px;
    max-width: 24px;
    max-height: 24px;
    flex-shrink: 0;
}

.stat-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-800);
    line-height: 1.2;
}

.stat-info p {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 2px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-success:hover {
    background: #059669;
    color: var(--white);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: #DC2626;
    color: var(--white);
}

.btn-warning {
    background: var(--warning);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}

.btn-outline:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-sm svg {
    width: 16px;
    height: 16px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* --- Tables --- */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
}

.table th {
    font-weight: 600;
    color: var(--gray-600);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--gray-50);
}

.table tbody tr:hover {
    background: var(--primary-50);
}

.table-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* --- Forms --- */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--gray-800);
    background: var(--white);
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px var(--primary-200);
}

.form-control::placeholder {
    color: var(--gray-400);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 36px;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.form-check label {
    font-size: 14px;
    color: var(--gray-700);
    cursor: pointer;
}

/* --- Badges --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: var(--success-light);
    color: #065F46;
}

.badge-danger {
    background: var(--danger-light);
    color: #991B1B;
}

.badge-warning {
    background: var(--warning-light);
    color: #92400E;
}

.badge-info {
    background: var(--info-light);
    color: #1E40AF;
}

.badge-purple {
    background: var(--primary-100);
    color: var(--primary-darker);
}

/* --- Alerts --- */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: var(--success-light);
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.alert-error {
    background: var(--danger-light);
    color: #991B1B;
    border: 1px solid #FECACA;
}

.alert-warning {
    background: var(--warning-light);
    color: #92400E;
    border: 1px solid #FDE68A;
}

.alert-info {
    background: var(--info-light);
    color: #1E40AF;
    border: 1px solid #BFDBFE;
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--gray-400);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 18px;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    margin-bottom: 20px;
}

/* --- Auth Pages --- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary) 50%, var(--primary-light) 100%);
    padding: 20px;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
    padding: 40px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo-icon {
    width: 64px;
    height: 64px;
    background: var(--primary);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.auth-logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-800);
}

.auth-logo p {
    font-size: 14px;
    color: var(--gray-500);
    margin-top: 4px;
}

/* --- Select Company Page --- */
.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.company-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.company-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.company-card-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-100);
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.company-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.company-card p {
    font-size: 13px;
    color: var(--gray-500);
}

/* --- Sidebar Overlay (mobile) --- */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.sidebar-overlay.active {
    display: block;
}

/* --- Permissions Grid --- */
.permissions-empresa {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    overflow: hidden;
}

.permissions-empresa-header {
    background: var(--primary-50);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--gray-200);
}

.permissions-empresa-header label {
    font-weight: 600;
    color: var(--gray-800);
}

.permissions-modulo {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
}

.permissions-modulo:last-child {
    border-bottom: none;
}

.permissions-modulo-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

.permissions-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 6px;
}

/* --- Utilities --- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--gray-500); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-primary { color: var(--primary); }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .header-toggle {
        display: flex;
    }

    .page-content {
        padding: 16px;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .auth-card {
        padding: 28px 24px;
    }

    .card-header {
        padding: 16px 20px;
    }

    .card-body {
        padding: 16px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .table th,
    .table td {
        padding: 10px 12px;
        font-size: 13px;
    }

    .header-user-info {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-info h3 {
        font-size: 20px;
    }

    .permissions-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .company-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .table-actions {
        flex-direction: column;
    }
}

/* =============================================
   TAREFAS - Kanban Board (Trello-like)
   ============================================= */

/* --- Barra de ferramentas --- */
.tarefas-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tarefas-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* --- Filtros inline --- */
.tarefas-filtros-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.filtro-inline {
    padding: 8px 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 13px;
    font-family: inherit;
    color: var(--gray-700);
    background: var(--white);
    transition: var(--transition);
    height: 38px;
}

select.filtro-inline {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 28px;
    cursor: pointer;
    min-width: 130px;
}

.filtro-inline:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px var(--primary-200);
}

.filtro-busca-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.filtro-busca-wrap svg {
    position: absolute;
    left: 10px;
    width: 16px;
    height: 16px;
    color: var(--gray-400);
    pointer-events: none;
}

.filtro-busca {
    padding-left: 32px !important;
    width: 180px;
}

.filtro-limpar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    background: var(--danger-light);
    color: var(--danger);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
}

.filtro-limpar:hover {
    background: var(--danger);
    color: var(--white);
}

/* --- View Switch (botões Kanban/Tabela) --- */
.view-switch {
    display: flex;
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 3px;
    gap: 2px;
}

.view-switch-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--gray-400);
    cursor: pointer;
    transition: var(--transition);
}

.view-switch-btn svg {
    width: 18px;
    height: 18px;
}

.view-switch-btn:hover {
    color: var(--gray-600);
    background: var(--white);
}

.view-switch-btn.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 1px 3px rgba(124, 58, 237, 0.3);
}

/* --- Kanban Board --- */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    min-height: 400px;
}

.kanban-column {
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.kanban-column-header {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    font-weight: 600;
    font-size: 14px;
}

.kanban-header-pendente {
    background: var(--warning-light);
    color: #92400E;
    border-bottom: 3px solid var(--warning);
}

.kanban-header-andamento {
    background: var(--info-light);
    color: #1E40AF;
    border-bottom: 3px solid var(--info);
}

.kanban-header-finalizado {
    background: var(--success-light);
    color: #065F46;
    border-bottom: 3px solid var(--success);
}

.kanban-column-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kanban-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-pendente { background: var(--warning); }
.dot-andamento { background: var(--info); }
.dot-finalizado { background: var(--success); }

.kanban-count {
    background: rgba(0,0,0,0.1);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.kanban-cards {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 100px;
    transition: background 0.2s;
}

.kanban-cards.drag-over {
    background: rgba(124, 58, 237, 0.06);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.kanban-empty {
    text-align: center;
    color: var(--gray-400);
    font-size: 13px;
    padding: 24px 12px;
    font-style: italic;
}

/* --- Kanban Card --- */
.kanban-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    cursor: grab;
    transition: box-shadow 0.2s, transform 0.15s;
    border-left: 4px solid transparent;
    position: relative;
}

.kanban-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.kanban-card.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
    box-shadow: var(--shadow-lg);
}

.kanban-card:active {
    cursor: grabbing;
}

/* Borda de prioridade */
.kanban-card.prio-normal { border-left-color: var(--info); }
.kanban-card.prio-media { border-left-color: var(--warning); }
.kanban-card.prio-alta { border-left-color: var(--danger); }

.kanban-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.kanban-prio-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.kanban-prio-tag.prio-normal {
    background: var(--info-light);
    color: #1E40AF;
}

.kanban-prio-tag.prio-media {
    background: var(--warning-light);
    color: #92400E;
}

.kanban-prio-tag.prio-alta {
    background: var(--danger-light);
    color: #991B1B;
}

.kanban-card-edit {
    color: var(--gray-400);
    padding: 4px;
    border-radius: 4px;
    display: flex;
    opacity: 0;
    transition: var(--transition);
    background: none;
    border: none;
    cursor: pointer;
}

.kanban-card:hover .kanban-card-edit {
    opacity: 1;
}

.kanban-card-edit:hover {
    color: var(--primary);
    background: var(--primary-50);
}

.kanban-card-edit svg {
    width: 16px;
    height: 16px;
}

.kanban-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.4;
    margin-bottom: 4px;
    word-break: break-word;
}

.kanban-card-desc {
    font-size: 12px;
    color: var(--gray-500);
    line-height: 1.5;
    margin-bottom: 8px;
    word-break: break-word;
}

.kanban-card-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 10px;
}

.kanban-card-meta svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.kanban-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--gray-100);
    gap: 8px;
}

.kanban-card-user {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.kanban-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary-100);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.kanban-user-name {
    font-size: 12px;
    color: var(--gray-600);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kanban-card-date {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--gray-400);
    white-space: nowrap;
    flex-shrink: 0;
}

.kanban-card-date svg {
    width: 14px;
    height: 14px;
}

.kanban-card-date.date-vencido {
    color: var(--danger);
    font-weight: 600;
}

.kanban-card-status {
    font-size: 11px;
}

/* --- Responsive Kanban --- */
@media (max-width: 1024px) {
    .kanban-board {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .kanban-column {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .tarefas-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .tarefas-filtros-inline {
        flex-wrap: wrap;
    }

    .filtro-inline {
        flex: 1;
        min-width: 0;
    }

    .filtro-busca {
        width: 100%;
    }

    .tarefas-bar-right {
        justify-content: space-between;
    }
}

/* --- Tarefas Dashboard --- */
.tarefas-dash-table td {
    vertical-align: middle;
}

.colab-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.colab-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-100);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.colab-avatar-gray {
    background: var(--gray-200);
    color: var(--gray-500);
}

.colab-nome {
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-800);
}

.dash-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
}

.num-pendente {
    background: var(--warning-light);
    color: #92400E;
}

.num-andamento {
    background: var(--info-light);
    color: #1E40AF;
}

.num-atrasada {
    background: var(--danger-light);
    color: #991B1B;
}

.num-finalizado {
    background: var(--success-light);
    color: #065F46;
}

.num-zero {
    background: transparent;
    color: var(--gray-300);
    font-weight: 500;
}

.row-sem-resp {
    border-top: 2px solid var(--gray-200);
}

/* --- Tarefas Dashboard: Gráficos --- */
.charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.chart-card {
    min-height: 0;
}

.chart-body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
}

.chart-donut-wrap {
    position: relative;
    width: 100%;
    max-width: 240px;
    height: 240px;
    margin: 0 auto;
}

.chart-donut-center {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.chart-donut-pct {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-800);
    line-height: 1;
}

.chart-donut-label {
    display: block;
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 2px;
}

/* --- Indicadores 7 dias --- */
.indicadores-7d {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 16px 0 20px;
}

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

.indicador-num {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.indicador-label {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 4px;
}

.indicador-divider {
    width: 1px;
    height: 48px;
    background: var(--gray-200);
}

.indicador-bar-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 4px;
}

.indicador-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.indicador-bar-label {
    font-size: 12px;
    color: var(--gray-500);
    width: 75px;
    flex-shrink: 0;
    text-align: right;
}

.indicador-bar-track {
    flex: 1;
    height: 10px;
    background: var(--gray-100);
    border-radius: 5px;
    overflow: hidden;
}

.indicador-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.6s ease;
    min-width: 4px;
}

.indicador-bar-val {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    width: 28px;
    text-align: right;
}

/* --- Responsive Charts --- */
@media (max-width: 1024px) {
    .charts-row {
        grid-template-columns: 1fr;
    }

    .stats-grid[style*="repeat(5"] {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .chart-donut-wrap {
        max-width: 200px;
        height: 200px;
    }

    .indicador-num {
        font-size: 24px;
    }
}

/* --- Modal --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.2s ease;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-100);
    flex-shrink: 0;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--gray-700);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-body .form-group:last-child {
    margin-bottom: 0;
}

.modal-body textarea.form-control {
    min-height: 70px;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-top: 1px solid var(--gray-100);
    flex-shrink: 0;
    gap: 12px;
}

.modal-footer-left {
    flex-shrink: 0;
}

.modal-footer-right {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.modal-alert {
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    margin-top: 12px;
}

.modal-alert.alert-error {
    background: var(--danger-light);
    color: #991B1B;
    border: 1px solid #FECACA;
}

.modal-alert.alert-success {
    background: var(--success-light);
    color: #065F46;
    border: 1px solid #A7F3D0;
}

/* Tabela: linhas clicáveis */
.tarefas-table-row {
    cursor: pointer;
}

.tarefas-table-row:hover {
    background: var(--primary-50) !important;
}

@media (max-width: 640px) {
    .modal-container {
        max-width: 100%;
        max-height: 95vh;
    }

    .modal-body {
        padding: 16px;
    }

    .modal-footer {
        flex-direction: column-reverse;
        gap: 8px;
    }

    .modal-footer-right {
        width: 100%;
    }

    .modal-footer-right .btn {
        flex: 1;
        justify-content: center;
    }
}

/* --- Avaliação de Desempenho --- */
.desempenho-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.desempenho-card {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid var(--gray-100);
}

.desempenho-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.desempenho-top .colab-cell {
    gap: 10px;
}

.desempenho-top .colab-nome {
    display: block;
    font-size: 14px;
    line-height: 1.3;
}

.desempenho-classificacao {
    display: block;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.desempenho-nota {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
    margin-left: 12px;
}

.desempenho-bar-track {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.desempenho-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease;
}

.desempenho-detalhes {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: var(--gray-500);
}

@media (max-width: 640px) {
    .desempenho-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Checklist --- */
.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
}

.checklist-item:last-child {
    border-bottom: none;
}

.checklist-item.checklist-done {
    opacity: 0.6;
}

.checklist-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    border: none;
    cursor: default;
}

.checklist-icon.done {
    background: var(--success-light);
    color: var(--success);
}

.checklist-icon.pending {
    background: var(--gray-100);
    color: var(--gray-400);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.checklist-icon.pending:hover {
    background: var(--primary-100);
    color: var(--primary);
}

.checklist-info {
    flex: 1;
}

.checklist-desc {
    font-size: 14px;
    color: var(--gray-800);
    display: block;
}

.checklist-done .checklist-desc {
    text-decoration: line-through;
}

.checklist-info small {
    display: block;
    margin-top: 2px;
}

/* --- Timeline --- */
.timeline {
    position: relative;
    padding-left: 24px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--gray-200);
}

.timeline-item {
    position: relative;
    padding-bottom: 16px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -20px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-light);
    border: 2px solid var(--white);
    box-shadow: 0 0 0 2px var(--primary-200);
}

.timeline-content {
    padding-left: 4px;
}

.timeline-date {
    font-size: 11px;
    color: var(--gray-400);
    margin-bottom: 2px;
}

.timeline-desc {
    font-size: 14px;
    color: var(--gray-800);
}

.timeline-user {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 1px;
}

/* --- Icon Picker --- */
.icon-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.icon-pick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 6px;
    width: 80px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-500);
}

.icon-pick-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    background: var(--primary-50);
}

.icon-pick-btn.selected {
    border-color: var(--primary);
    background: var(--primary-100);
    color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-200);
}

.icon-pick-btn svg {
    flex-shrink: 0;
}

.icon-pick-label {
    font-size: 9px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sistema-icone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    background: var(--primary-50);
    color: var(--primary);
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .icon-pick-btn {
        width: 64px;
        padding: 6px 4px;
    }

    .icon-pick-btn svg {
        width: 18px;
        height: 18px;
    }

    .icon-pick-label {
        font-size: 8px;
    }
}

/* --- Acesso Rows (form colaborador) --- */
.acesso-row {
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-100);
}

.acesso-row:last-child {
    border-bottom: none;
}

.acesso-row:hover {
    background: var(--gray-50);
}

.acesso-row-fields {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.acesso-field {
    flex: 1;
    min-width: 0;
}

.acesso-field .form-label {
    font-size: 12px;
    margin-bottom: 4px;
}

.acesso-field .form-control {
    font-size: 13px;
    padding: 8px 10px;
}

.acesso-field-sistema { flex: 2; }
.acesso-field-login { flex: 2; }
.acesso-field-senha { flex: 2; }
.acesso-field-tipo { flex: 1; min-width: 100px; }
.acesso-field-remove { flex: 0 0 auto; }

.senha-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.senha-wrap input {
    padding-right: 38px;
}

.senha-toggle {
    position: absolute;
    right: 6px;
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 4px;
    display: flex;
    transition: var(--transition);
}

.senha-toggle:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .acesso-row-fields {
        flex-wrap: wrap;
    }

    .acesso-field-sistema,
    .acesso-field-login,
    .acesso-field-senha {
        flex: 1 1 100%;
    }

    .acesso-field-tipo {
        flex: 1;
    }
}

/* --- Senha display inline --- */
.senha-display {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.senha-mask {
    color: var(--gray-400);
    letter-spacing: 2px;
}

.senha-text {
    font-family: 'Courier New', monospace;
    color: var(--gray-800);
    font-weight: 500;
}

.senha-toggle-sm {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 2px;
    display: inline-flex;
    transition: var(--transition);
}

.senha-toggle-sm:hover {
    color: var(--primary);
}

/* --- Matriz de Acessos --- */
.matriz-acessos th,
.matriz-acessos td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--gray-100);
}

.matriz-th {
    min-width: 80px;
    max-width: 120px;
}

.matriz-sistema-nome {
    display: block;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    word-break: break-word;
}

.matriz-dot {
    font-size: 18px;
    line-height: 1;
}

.matriz-ativo {
    color: var(--success);
}

.matriz-inativo {
    color: var(--gray-200);
}

.matriz-acessos tbody tr:hover {
    background: var(--primary-50) !important;
}

.matriz-acessos tbody tr:hover td:first-child {
    background: var(--primary-50) !important;
}

/* --- Treinamentos --- */
.treinamentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.treinamento-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.treinamento-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.treinamento-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: var(--danger-light);
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.treinamento-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 6px;
}

.treinamento-card-desc {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.5;
    flex: 1;
}

.treinamento-card-meta {
    margin-top: 8px;
}

/* PDF Viewer */
.pdf-viewer-card {
    overflow: hidden;
}

.pdf-viewer-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 180px);
    min-height: 500px;
}

.pdf-viewer-frame {
    width: 100%;
    height: 100%;
    border: none;
}

/* Acesso select grid */
.acesso-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 8px;
}

.acesso-select-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.acesso-select-item:hover {
    background: var(--primary-50);
    border-color: var(--primary-light);
}

.acesso-select-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

/* --- PDF Fullscreen --- */
.pdf-viewer-card:fullscreen,
.pdf-viewer-card:-webkit-full-screen {
    background: #000;
    border-radius: 0;
    box-shadow: none;
}

.pdf-viewer-card:fullscreen .pdf-viewer-container,
.pdf-viewer-card:-webkit-full-screen .pdf-viewer-container {
    height: 100vh;
    min-height: 100vh;
}

.pdf-fullscreen-exit {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 9999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.6);
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.pdf-fullscreen-exit:hover {
    background: rgba(0,0,0,0.85);
}

/* --- Reuniões --- */
.reuniao-pergunta-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    margin-right: 8px;
    flex-shrink: 0;
    vertical-align: middle;
}

.reuniao-resposta-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-100);
}

.reuniao-resposta-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.reuniao-resposta-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.reuniao-resposta-texto {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
    padding-left: 32px;
}

/* Resumo IA */
.resumo-ia-texto {
    font-size: 14px;
    line-height: 1.8;
    color: var(--gray-700);
    white-space: pre-wrap;
}

/* Loading animation */
.ia-loading {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.ia-loading-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-light);
    animation: iaBounce 1.4s infinite ease-in-out both;
}

.ia-loading-dot:nth-child(1) { animation-delay: -0.32s; }
.ia-loading-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes iaBounce {
    0%, 80%, 100% { transform: scale(0.4); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Apresentação Viewer --- */
.apresentacao-viewer {
    background: #1a1a1a;
}

#apresentacaoContainer:fullscreen,
#apresentacaoContainer:-webkit-full-screen {
    background: #000;
}

#apresentacaoContainer:fullscreen .apresentacao-viewer,
#apresentacaoContainer:-webkit-full-screen .apresentacao-viewer {
    height: 100vh;
}

#apresentacaoContainer:fullscreen .apresentacao-viewer iframe,
#apresentacaoContainer:-webkit-full-screen .apresentacao-viewer iframe {
    height: 100vh;
}

#apresentacaoContainer:fullscreen .apresentacao-viewer img,
#apresentacaoContainer:-webkit-full-screen .apresentacao-viewer img {
    max-height: 100vh;
    padding: 0;
}

/* --- Upload Progress Bar --- */
.upload-progress {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.upload-progress-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--gray-700);
}

.upload-progress-info span:last-child {
    margin-left: auto;
    font-weight: 700;
    color: var(--primary);
    font-size: 15px;
}

.upload-progress-track {
    width: 100%;
    height: 12px;
    background: var(--gray-100);
    border-radius: 6px;
    overflow: hidden;
}

.upload-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
    border-radius: 6px;
    transition: width 0.3s ease;
}

/* --- Participantes Tags --- */
.participante-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: var(--primary-50);
    color: var(--primary-darker);
    border: 1px solid var(--primary-200);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.participante-remove {
    background: none;
    border: none;
    color: var(--primary-lighter);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0 2px;
    margin-left: 2px;
    transition: var(--transition);
}

.participante-remove:hover {
    color: var(--danger);
}

/* --- Header User Dropdown --- */
.header-user-dropdown {
    position: relative;
}

.header-user-dropdown .header-user {
    cursor: pointer;
}

.header-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    min-width: 180px;
    z-index: 200;
    overflow: hidden;
}

.header-user-dropdown.open .header-dropdown-menu {
    display: block;
}

.header-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--gray-700);
    transition: var(--transition);
    text-decoration: none;
}

.header-dropdown-item:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.header-dropdown-item svg {
    flex-shrink: 0;
    color: var(--gray-400);
}

.header-dropdown-item:hover svg {
    color: var(--primary);
}

/* --- Perfil Avatar --- */
.perfil-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary-100);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
}
