﻿:root {
            --primary: #2865f4;
            --primary-light: #1b4fd4;
            --primary-dark: #1a3fa8;
            --accent: #fca810;
            --highlight: #fca810;
            --success: #037b44;
            --warning: #fca810;
            --danger: #e05040;
            --info: #2865f4;
            --bg: #f0f2f5;
            --card-bg: #ffffff;
            --text: #2d3436;
            --text-light: #636e72;
            --border: #dfe6e9;
            --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
            --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
            --radius: 12px;
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: var(--bg);
            color: var(--text);
            line-height: 1.6;
        }

        /* ========== HEADER ========== */
        .header {
            background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--primary-light) 100%);
            color: white;
            padding: 20px 32px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 16px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .header-left {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .header-logo {
            width: 64px;
            height: 44px;
            background: white;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 4px 6px;
            flex-shrink: 0;
        }

        .header-title h1 {
            font-size: 20px;
            font-weight: 700;
            letter-spacing: -0.3px;
        }

        .header-title span {
            font-size: 12px;
            opacity: 0.75;
            font-weight: 400;
        }

        .header-actions {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .btn {
            padding: 10px 20px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 600;
            transition: var(--transition);
            display: inline-flex;
            align-items: center;
            gap: 8px;
            white-space: nowrap;
        }

        .btn-primary {
            background: var(--primary);
            color: white;
        }

        .btn-primary:hover {
            background: var(--primary-light);
            transform: translateY(-1px);
            box-shadow: 0 4px 15px rgba(40, 101, 244, 0.4);
        }

        .btn-secondary {
            background: rgba(255, 255, 255, 0.15);
            color: white;
            backdrop-filter: blur(10px);
        }

        .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.25);
        }

        .btn-outline {
            background: transparent;
            color: var(--accent);
            border: 2px solid var(--accent);
        }

        .btn-outline:hover {
            background: var(--accent);
            color: white;
        }

        .btn-success {
            background: var(--success);
            color: white;
        }

        .btn-success:hover {
            background: #00a386;
        }

        .btn-danger-outline {
            background: transparent;
            color: var(--danger);
            border: 2px solid var(--danger);
        }

        .btn-danger-outline:hover {
            background: var(--danger);
            color: white;
        }

        /* ========== TABS ========== */
        .tabs-container {
            background: white;
            border-bottom: 1px solid var(--border);
            padding: 0 32px;
            display: flex;
            gap: 0;
            overflow-x: auto;
        }

        .tab-btn {
            padding: 16px 24px;
            background: none;
            border: none;
            border-bottom: 3px solid transparent;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            color: var(--text-light);
            transition: var(--transition);
            white-space: nowrap;
            position: relative;
        }

        .tab-btn:hover {
            color: var(--primary);
            background: rgba(40, 101, 244, 0.04);
        }

        .tab-btn.active {
            color: var(--primary);
            border-bottom-color: var(--primary);
        }

        .tab-btn .badge {
            background: var(--primary);
            color: white;
            font-size: 11px;
            padding: 2px 8px;
            border-radius: 20px;
            margin-left: 8px;
            font-weight: 700;
        }

        /* ========== SUMMARY CARDS ========== */
        .summary-bar {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 16px;
            padding: 24px 32px;
        }

        .summary-card {
            background: white;
            border-radius: var(--radius);
            padding: 20px;
            box-shadow: var(--shadow);
            display: flex;
            align-items: center;
            gap: 16px;
            transition: var(--transition);
        }

        .summary-card:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-hover);
        }

        .summary-icon {
            width: 48px;
            height: 48px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            flex-shrink: 0;
        }

        .summary-card .info h3 {
            font-size: 26px;
            font-weight: 800;
            line-height: 1;
        }

        .summary-card .info span {
            font-size: 12px;
            color: var(--text-light);
            font-weight: 500;
        }

        /* ========== FILTERS ========== */
        .filters-bar {
            padding: 0 32px 16px;
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            align-items: center;
        }

        .filter-group {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .filter-group label {
            font-size: 12px;
            font-weight: 600;
            color: var(--text-light);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .filter-select,
        .filter-input {
            padding: 8px 12px;
            border: 2px solid var(--border);
            border-radius: 8px;
            font-size: 13px;
            background: white;
            color: var(--text);
            transition: var(--transition);
            outline: none;
        }

        .filter-select:focus,
        .filter-input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(40, 101, 244, 0.1);
        }

        /* ========== KANBAN / ESTEIRA ========== */
        .kanban-wrapper {
            padding: 0 32px 32px;
            overflow-x: auto;
        }

        .kanban-board {
            display: flex;
            gap: 20px;
            min-height: 500px;
            padding-bottom: 16px;
        }

        .kanban-column {
            min-width: 300px;
            max-width: 320px;
            flex: 1;
            background: #f8f9fb;
            border-radius: var(--radius);
            display: flex;
            flex-direction: column;
            border: 1px solid var(--border);
        }

        .kanban-column-header {
            padding: 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid var(--border);
        }

        .kanban-column-header .col-title {
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 700;
            font-size: 14px;
        }

        .col-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .col-count {
            background: rgba(0, 0, 0, 0.08);
            font-size: 12px;
            font-weight: 700;
            padding: 2px 10px;
            border-radius: 20px;
            color: var(--text-light);
        }

        .kanban-column-body {
            padding: 12px;
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 12px;
            overflow-y: auto;
            max-height: 65vh;
        }

        .kanban-card {
            background: white;
            border-radius: 10px;
            padding: 16px;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
            cursor: grab;
            transition: var(--transition);
            border-left: 4px solid transparent;
            position: relative;
            user-select: none;
        }

        .kanban-card:hover {
            box-shadow: var(--shadow-hover);
            transform: translateY(-2px);
        }

        .kanban-card.dragging {
            opacity: 0.5;
            transform: rotate(3deg) scale(1.02);
            box-shadow: 0 12px 40px rgba(40, 101, 244, 0.25);
            cursor: grabbing;
        }

        .kanban-column-body.drag-over {
            background: rgba(40, 101, 244, 0.06);
            border: 2px dashed var(--primary);
            border-radius: 8px;
        }

        .kanban-card .card-ticket {
            font-size: 11px;
            font-weight: 700;
            color: var(--primary);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .kanban-card .card-title {
            font-size: 14px;
            font-weight: 600;
            margin: 6px 0 10px;
            line-height: 1.4;
            color: var(--text);
        }

        .kanban-card .card-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            align-items: center;
        }

        .meta-tag {
            font-size: 11px;
            padding: 3px 10px;
            border-radius: 20px;
            font-weight: 600;
        }

        .tag-interna {
            background: #dae4ff;
            color: #2865f4;
        }

        .tag-externa {
            background: #fff3db;
            color: #d4900e;
        }

        .card-analyst {
            font-size: 12px;
            color: var(--text-light);
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .card-dates {
            font-size: 11px;
            color: var(--text-light);
            margin-top: 8px;
            display: flex;
            justify-content: space-between;
        }

        .kanban-card.atrasado {
            border-left-color: var(--danger);
        }

        .kanban-card.atrasado::after {
            content: "ATRASADO";
            position: absolute;
            top: 8px;
            right: 8px;
            background: var(--danger);
            color: white;
            font-size: 9px;
            padding: 2px 8px;
            border-radius: 20px;
            font-weight: 800;
            letter-spacing: 0.5px;
        }

        .kanban-card.no-prazo {
            border-left-color: var(--success);
        }

        .kanban-empty {
            text-align: center;
            padding: 40px 20px;
            color: var(--text-light);
            font-size: 13px;
        }

        .kanban-empty svg {
            width: 48px;
            height: 48px;
            margin-bottom: 8px;
            opacity: 0.3;
        }

        /* ========== GANTT / TIMELINE ========== */
        .gantt-container {
            padding: 0 32px 32px;
            overflow-x: auto;
        }

        .gantt-chart {
            background: white;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            min-width: 900px;
            overflow: hidden;
        }

        .gantt-header {
            display: flex;
            background: var(--primary);
            color: white;
            font-size: 12px;
            font-weight: 600;
        }

        .gantt-label-col {
            min-width: 260px;
            max-width: 260px;
            padding: 12px 16px;
            border-right: 1px solid rgba(255, 255, 255, 0.1);
        }

        .gantt-timeline-header {
            flex: 1;
            display: flex;
            overflow: hidden;
        }

        .gantt-week {
            flex: 1;
            text-align: center;
            padding: 12px 4px;
            min-width: 80px;
            border-left: 1px solid rgba(255, 255, 255, 0.05);
            font-size: 11px;
        }

        .gantt-row {
            display: flex;
            border-bottom: 1px solid var(--border);
            align-items: stretch;
            transition: var(--transition);
        }

        .gantt-row:hover {
            background: rgba(40, 101, 244, 0.02);
        }

        .gantt-row-label {
            min-width: 260px;
            max-width: 260px;
            padding: 14px 16px;
            border-right: 1px solid var(--border);
        }

        .gantt-row-label .row-ticket {
            font-size: 11px;
            color: var(--primary);
            font-weight: 700;
        }

        .gantt-row-label .row-title {
            font-size: 13px;
            font-weight: 600;
            white-space: normal;
            word-wrap: break-word;
            line-height: 1.3;
            margin: 4px 0;
            max-width: 100%;
        }

        .gantt-row-label .row-analyst {
            font-size: 11px;
            color: var(--text-light);
        }

        .gantt-row-timeline {
            flex: 1;
            position: relative;
            min-height: 56px;
            overflow: hidden;
        }

        .gantt-bar {
            position: absolute;
            height: 28px;
            top: 50%;
            transform: translateY(-50%);
            border-radius: 6px;
            display: flex;
            align-items: center;
            padding: 0 10px;
            font-size: 11px;
            font-weight: 600;
            color: white;
            cursor: pointer;
            transition: var(--transition);
            min-width: 30px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .gantt-bar:hover {
            filter: brightness(1.1);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        }

        .gantt-bar.status-backlog {
            background: linear-gradient(135deg, #b2bec3, #636e72);
        }

        .gantt-bar.status-desenvolvimento {
            background: linear-gradient(135deg, #5e94ff, #2865f4);
        }

        .gantt-bar.status-review {
            background: linear-gradient(135deg, #fcc94d, #fca810);
        }

        .gantt-bar.status-teste {
            background: linear-gradient(135deg, #a29bfe, #6c5ce7);
        }

        .gantt-bar.status-concluido {
            background: linear-gradient(135deg, #2dd47a, #037b44);
        }

        .gantt-bar.status-atrasado {
            background: linear-gradient(135deg, #f08070, #e05040);
        }

        .gantt-today-line {
            position: absolute;
            top: 0;
            bottom: 0;
            width: 2px;
            background: var(--highlight);
            z-index: 5;
        }

        .gantt-today-line::before {
            content: "HOJE";
            position: absolute;
            top: -22px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 9px;
            font-weight: 800;
            color: var(--highlight);
            background: white;
            padding: 2px 6px;
            border-radius: 4px;
            white-space: nowrap;
        }

        .gantt-legend {
            padding: 16px;
            display: flex;
            gap: 16px;
            flex-wrap: wrap;
            border-top: 1px solid var(--border);
            justify-content: center;
        }

        .legend-item {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 12px;
            color: var(--text-light);
        }

        .legend-color {
            width: 14px;
            height: 14px;
            border-radius: 4px;
        }

        /* ========== TABLE CONCLUÍDOS ========== */
        .table-container {
            padding: 0 32px 32px;
        }

        .data-table-wrapper {
            background: white;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            overflow: hidden;
        }

        .data-table {
            width: 100%;
            border-collapse: collapse;
        }

        .data-table thead {
            background: var(--primary);
            color: white;
        }

        .data-table th {
            padding: 14px 16px;
            text-align: left;
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            white-space: nowrap;
        }

        .data-table td {
            padding: 14px 16px;
            font-size: 13px;
            border-bottom: 1px solid var(--border);
            vertical-align: middle;
        }

        .data-table tbody tr:hover {
            background: rgba(40, 101, 244, 0.02);
        }

        .status-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 4px 14px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 700;
        }

        .status-no-prazo {
            background: #e0f5ea;
            color: #037b44;
        }

        .status-fora-prazo {
            background: #ffe8e4;
            color: #e05040;
        }

        .status-badge::before {
            content: "";
            width: 8px;
            height: 8px;
            border-radius: 50%;
            display: inline-block;
        }

        .status-no-prazo::before {
            background: #037b44;
        }

        .status-fora-prazo::before {
            background: #e05040;
        }

        /* ========== MODAL ========== */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
            z-index: 999;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .modal-overlay.active {
            display: flex;
        }

        .modal {
            background: white;
            border-radius: var(--radius);
            width: 100%;
            max-width: 680px;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: modalIn 0.3s ease;
        }

        @keyframes modalIn {
            from {
                opacity: 0;
                transform: translateY(20px) scale(0.98);
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 20px 24px;
            border-bottom: 1px solid var(--border);
        }

        .modal-header h2 {
            font-size: 18px;
            font-weight: 700;
            color: var(--primary);
        }

        .modal-close {
            width: 36px;
            height: 36px;
            border: none;
            background: var(--bg);
            border-radius: 8px;
            cursor: pointer;
            font-size: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }

        .modal-close:hover {
            background: var(--danger);
            color: white;
        }

        .modal-body {
            padding: 24px;
        }

        .form-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .form-group.full-width {
            grid-column: 1 / -1;
        }

        .form-group label {
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: var(--text-light);
        }

        .form-group label .required {
            color: var(--highlight);
        }

        .form-control {
            padding: 10px 14px;
            border: 2px solid var(--border);
            border-radius: 8px;
            font-size: 14px;
            font-family: inherit;
            transition: var(--transition);
            outline: none;
            color: var(--text);
            background: white;
        }

        .form-control:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(40, 101, 244, 0.1);
        }

        textarea.form-control {
            resize: vertical;
            min-height: 80px;
        }

        .modal-footer {
            padding: 16px 24px;
            border-top: 1px solid var(--border);
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            background: #fafafa;
            border-radius: 0 0 var(--radius) var(--radius);
        }

        /* ========== DETAIL MODAL ========== */
        .detail-section {
            margin-bottom: 20px;
        }

        .detail-section h4 {
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--text-light);
            margin-bottom: 6px;
        }

        .detail-section p,
        .detail-section span {
            font-size: 14px;
        }

        .detail-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }

        /* ========== VIEW TOGGLE ========== */
        .view-toggle {
            display: flex;
            align-items: center;
            gap: 0;
            background: var(--bg);
            border-radius: 8px;
            padding: 3px;
            border: 1px solid var(--border);
        }

        .view-toggle-btn {
            padding: 6px 14px;
            border: none;
            background: transparent;
            cursor: pointer;
            font-size: 12px;
            font-weight: 600;
            border-radius: 6px;
            color: var(--text-light);
            transition: var(--transition);
        }

        .view-toggle-btn.active {
            background: var(--primary);
            color: white;
            box-shadow: 0 2px 6px rgba(40, 101, 244, 0.3);
        }

        /* ========== CONTENT AREAS ========== */
        .content-area {
            display: none;
        }

        .content-area.active {
            display: block;
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        /* ========== TOAST ========== */
        .toast-container {
            position: fixed;
            bottom: 24px;
            right: 24px;
            z-index: 9999;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .toast {
            padding: 14px 20px;
            border-radius: 10px;
            color: white;
            font-size: 14px;
            font-weight: 600;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
            animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .toast-success {
            background: var(--success);
        }

        .toast-error {
            background: var(--danger);
        }

        .toast-info {
            background: var(--info);
        }

        @keyframes toastIn {
            from {
                opacity: 0;
                transform: translateX(100px);
            }

            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes toastOut {
            from {
                opacity: 1;
            }

            to {
                opacity: 0;
            }
        }

        /* ========== RESPONSIVE ========== */
        @media (max-width: 768px) {
            .header {
                padding: 16px;
            }

            .summary-bar,
            .kanban-wrapper,
            .gantt-container,
            .table-container,
            .filters-bar {
                padding-left: 16px;
                padding-right: 16px;
            }

            .form-grid {
                grid-template-columns: 1fr;
            }

            .detail-grid {
                grid-template-columns: 1fr;
            }

            .modal {
                margin: 10px;
            }
        }

        /* ========== EMPTY STATE ========== */
        .empty-state {
            text-align: center;
            padding: 80px 20px;
            color: var(--text-light);
        }

        .empty-state svg {
            width: 80px;
            height: 80px;
            opacity: 0.3;
            margin-bottom: 16px;
        }

        .empty-state h3 {
            font-size: 18px;
            margin-bottom: 8px;
            color: var(--text);
        }

        .empty-state p {
            font-size: 14px;
        }

        /* scrollbar custom */
        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }

        ::-webkit-scrollbar-track {
            background: transparent;
        }

        ::-webkit-scrollbar-thumb {
            background: #ccc;
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #aaa;
        }

        /* Export button area */
        .toolbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 32px 8px;
            flex-wrap: wrap;
            gap: 12px;
        }

        .toolbar-right {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .search-input {
            padding: 8px 14px 8px 36px;
            border: 2px solid var(--border);
            border-radius: 8px;
            font-size: 13px;
            width: 240px;
            background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23636e72' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242.656a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") 12px center no-repeat;
            transition: var(--transition);
            outline: none;
        }

        .search-input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(40, 101, 244, 0.1);
        }

        .progress-bar-mini {
            width: 100%;
            height: 4px;
            background: var(--border);
            border-radius: 2px;
            margin-top: 8px;
            overflow: hidden;
        }

        .progress-bar-mini .fill {
            height: 100%;
            border-radius: 2px;
            transition: width 0.6s ease;
        }