/* ======================================
   Mobile CSS - Sistema de Demandas
   Arquivo 100% isolado para dispositivos móveis
   Carregado apenas em telas ≤768px
====================================== */

/* ======================================
   Mobile Sidebar
====================================== */
.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    z-index: 999;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
}

.mobile-sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.sidebar-header h2 {
    font-size: 18px;
    color: var(--accent);
    margin: 0;
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.sidebar-menu {
    flex: 1;
    padding: 20px 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    min-height: 50px;
    padding: 16px 20px;
    /* Liquid Glass Background */
    background: linear-gradient(145deg,
            rgba(40, 40, 40, 0.9) 0%,
            rgba(30, 30, 30, 0.95) 50%,
            rgba(35, 35, 35, 0.9) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* LED Glow sutil */
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* LED Glow de fundo */
.sidebar-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0%;
    height: 0%;
    background: radial-gradient(circle, rgba(230, 126, 34, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.sidebar-item:hover {
    background: linear-gradient(145deg,
            rgba(50, 40, 35, 0.95) 0%,
            rgba(40, 35, 30, 0.98) 50%,
            rgba(45, 38, 32, 0.95) 100%);
    border-color: rgba(230, 126, 34, 0.4);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow:
        0 0 25px rgba(230, 126, 34, 0.3),
        0 0 50px rgba(230, 126, 34, 0.15),
        0 8px 25px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.sidebar-item:hover::before {
    width: 150%;
    height: 300%;
}

.sidebar-item:active {
    transform: translateY(-1px);
    box-shadow:
        0 0 15px rgba(230, 126, 34, 0.25),
        0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Esconde os ícones emoji */
.sidebar-icon {
    display: none;
}

/* ======================================
   Header Mobile - Linha Única
====================================== */
.header {
    padding: 12px 15px;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap !important;
}

/* Hamburger Button - Esquerda */
.mobile-hamburger {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
    flex-shrink: 0;
    order: 0;
}

.mobile-hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-hamburger:hover span {
    background: var(--accent-hover);
}

/* Logo - Centro */
.header-left {
    flex: 1;
    text-align: center;
    order: 1;
}

.header-left .logo {
    font-size: 16px;
    margin: 0;
}

/* Esconde botões do header-center no mobile (vão para sidebar) */
.header-center {
    display: none !important;
}

/* Header Right - Sair à Direita */
.header-right {
    display: flex !important;
    align-items: center;
    gap: 8px;
    order: 2;
    flex-shrink: 0;
}

#user-info {
    display: none !important;
}

.header-right .btn {
    padding: 8px 12px;
    font-size: 11px;
}

/* Botão Toggle de Tema - Liquid Glass */
.btn-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: linear-gradient(145deg,
            rgba(40, 40, 40, 0.9) 0%,
            rgba(30, 30, 30, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-theme-toggle:hover {
    border-color: rgba(230, 126, 34, 0.5);
    box-shadow:
        0 0 15px rgba(230, 126, 34, 0.3),
        0 0 30px rgba(230, 126, 34, 0.15),
        0 4px 15px rgba(0, 0, 0, 0.4);
    transform: scale(1.1);
}

.btn-theme-toggle:active {
    transform: scale(0.95);
}

/* ======================================
   Kanban Container Mobile - CARROSSEL COM ABAS
====================================== */

/* Barra de Abas Mobile - Liquid Glass Container */
.mobile-kanban-tabs {
    display: flex;
    gap: 4px;
    padding: 8px 10px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: sticky;
    top: 0;
    z-index: 50;
    /* Container para o indicador líquido */
    position: relative;
}

/* Indicador Liquid Glass - Sliding Pill */
.liquid-indicator {
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 10px;
    width: calc(20% - 4px);
    border-radius: 25px;
    background: linear-gradient(135deg,
            rgba(230, 126, 34, 0.35) 0%,
            rgba(230, 126, 34, 0.2) 50%,
            rgba(230, 126, 34, 0.3) 100%);
    border: 1px solid rgba(230, 126, 34, 0.5);
    box-shadow:
        0 0 25px rgba(230, 126, 34, 0.4),
        0 0 50px rgba(230, 126, 34, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.1s ease-out, width 0.2s ease;
    pointer-events: none;
    z-index: 0;
    /* Posição controlada via JS */
    transform: translateX(var(--liquid-offset, 0px));
    animation: liquidPulse 2s ease-in-out infinite;
}

/* Animação de pulso no indicador líquido */
@keyframes liquidPulse {

    0%,
    100% {
        box-shadow:
            0 0 25px rgba(230, 126, 34, 0.4),
            0 0 50px rgba(230, 126, 34, 0.2);
    }

    50% {
        box-shadow:
            0 0 35px rgba(230, 126, 34, 0.5),
            0 0 70px rgba(230, 126, 34, 0.25);
    }
}

/* Efeito de "stretch" durante movimento rápido */
.liquid-indicator.stretching {
    transition: transform 0.05s linear;
}

/* Aba Individual - Liquid Glass Style */
.mobile-tab {
    flex: 1;
    min-width: 0;
    padding: 10px 6px;
    background: transparent;
    border: none;
    border-radius: 25px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.mobile-tab:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Aba Ativa - Apenas destaque de texto */
.mobile-tab.active {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(230, 126, 34, 0.5);
}

/* Container do Kanban - CARROSSEL */
.kanban-container {
    display: flex;
    flex-direction: row;
    padding: 10px;
    gap: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    height: calc(100vh - 140px);
    max-height: calc(100vh - 140px);
}

/* Colunas do Carrossel */
.kanban-column {
    display: flex !important;
    flex-direction: column;
    flex: 0 0 calc(100vw - 20px);
    width: calc(100vw - 20px);
    min-width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    padding: 12px;
    border-radius: 16px;
    height: 100%;
    max-height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
}

.column-header {
    margin-bottom: 15px;
    padding-bottom: 12px;
    flex-shrink: 0;
}

.column-title {
    font-size: 16px;
}

.column-count {
    padding: 4px 12px;
    font-size: 12px;
}

.column-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    padding-right: 8px;
    padding-bottom: 20px;
}

/* Scrollbar visível no mobile */
.column-cards::-webkit-scrollbar {
    width: 6px;
}

.column-cards::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.column-cards::-webkit-scrollbar-thumb {
    background: rgba(230, 126, 34, 0.5);
    border-radius: 3px;
}

.column-cards::-webkit-scrollbar-thumb:hover {
    background: rgba(230, 126, 34, 0.7);
}

/* ======================================
   Demand Cards Mobile - Otimizado para Toque
====================================== */
.demand-card {
    padding: 14px;
    border-radius: 12px;
    flex-shrink: 0;
    /* Área de toque maior */
    min-height: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.demand-card:hover {
    transform: none;
}

.demand-card:active {
    transform: scale(0.98);
    background: var(--bg-tertiary);
}

.demand-card-id {
    font-size: 10px;
    margin-bottom: 6px;
}

.demand-card-title {
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.demand-card-info {
    margin-bottom: 10px;
}

.info-row {
    font-size: 11px;
    margin-bottom: 3px;
}

.demand-card-timer {
    font-size: 13px;
    padding: 8px 0;
    margin-bottom: 10px;
}

.demand-card-footer {
    flex-wrap: wrap;
    gap: 8px;
}

.demand-card-requester {
    flex: 1;
    min-width: 100px;
}

.requester-name {
    font-size: 11px;
}

.user-avatar {
    width: 24px;
    height: 24px;
    font-size: 10px;
}

.btn-sm {
    padding: 8px 12px;
    font-size: 11px;
}

/* Column Tabs Mobile */
.column-tabs {
    gap: 5px;
}

.column-tab {
    font-size: 12px;
    padding: 4px 6px;
}

/* ======================================
   Modais Mobile
====================================== */
.modal {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.modal-content {
    width: 95%;
    max-width: 95%;
    max-height: 80vh;
    margin: auto;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 15px;
    background: var(--bg-secondary);
    z-index: 10;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 18px;
}

.modal-body {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

/* Scrollbar visível no modal */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(230, 126, 34, 0.5);
    border-radius: 3px;
}

/* Modal de ver demanda - garantir scroll */
#modal-ver-demanda .modal-content {
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    max-height: 85dvh;
    overflow: hidden;
}

#modal-ver-demanda .modal-header {
    flex-shrink: 0;
}

#modal-ver-demanda .modal-tabs {
    flex-shrink: 0;
}

#modal-ver-demanda .modal-tab-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

#modal-ver-demanda .modal-tab-content.active {
    display: flex;
}

#modal-ver-demanda .modal-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
}

#modal-ver-demanda .modal-footer {
    flex-shrink: 0;
}

#modal-ver-demanda .demand-actions {
    flex-shrink: 0;
}

/* Form dentro do modal - permite scroll */
.modal-content form {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.modal-content form .form-group {
    flex-shrink: 0;
}

/* Wrapper scrollável para os campos do form */
.modal-content form {
    overflow-y: auto;
    padding: 15px;
    -webkit-overflow-scrolling: touch;
    max-height: calc(80vh - 60px);
}

.modal-footer {
    padding: 15px;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.modal-footer select,
.modal-footer button {
    width: 100%;
}

.modal-tabs {
    padding: 0 10px;
    gap: 5px;
}

.modal-tab {
    font-size: 13px;
    padding: 10px 15px;
}

.form-actions {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    margin: 0 -15px -15px -15px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    position: sticky;
    bottom: 0;
}

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

.demand-actions {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
}

.demand-actions .actions-left,
.demand-actions .actions-right {
    display: flex;
    gap: 10px;
    width: 100%;
}

.demand-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 12px;
}

/* ======================================
   User Kanban (Por Usuário) Mobile
====================================== */
.user-kanban-container {
    flex-direction: column;
    overflow-x: hidden;
    gap: 15px;
}

.user-kanban-column {
    min-width: 100%;
    max-width: 100%;
}

.user-column-header {
    padding: 12px 15px;
}

.user-column-name {
    font-size: 14px;
}

/* ======================================
   BI Dashboard Mobile
====================================== */
.bi-dashboard-section {
    padding: 15px;
}

.bi-header {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
}

.bi-header-left h2 {
    font-size: 20px;
}

.bi-header-right {
    flex-direction: column;
    gap: 10px;
}

.bi-header-right select,
.bi-header-right button {
    width: 100%;
}

.bi-kpi-row {
    flex-direction: column;
    gap: 12px;
}

.bi-kpi-card {
    padding: 15px;
}

.kpi-icon {
    font-size: 24px;
}

.kpi-label {
    font-size: 12px;
}

.kpi-value {
    font-size: 24px;
}

.bi-charts-row {
    flex-direction: column;
    gap: 15px;
}

.bi-chart-card {
    padding: 15px;
}

.bi-chart-card h3 {
    font-size: 14px;
}

.bi-table-card {
    padding: 15px;
    overflow-x: auto;
}

.bi-table {
    font-size: 12px;
    min-width: 500px;
}

.bi-table th,
.bi-table td {
    padding: 10px 8px;
}

/* ======================================
   Funcionários Section Mobile
====================================== */
.funcionarios-section {
    padding: 15px;
    overflow-x: auto;
}

.section-header {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
}

.section-header h2 {
    font-size: 20px;
}

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

.table {
    font-size: 12px;
    min-width: 600px;
}

.table th,
.table td {
    padding: 10px 12px;
}

/* ======================================
   Tarefas por Usuário Mobile
====================================== */
.tarefas-usuario-section {
    padding: 15px;
}

.tarefas-usuario-section .section-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

/* ======================================
   Form Groups Mobile
====================================== */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    font-size: 13px;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    font-size: 16px;
    /* Previne zoom automático no iOS */
}

/* ======================================
   Demanda Info Grid Mobile
====================================== */
.demanda-info-grid {
    grid-template-columns: 1fr;
    gap: 8px;
}

/* ======================================
   Empty Messages Mobile
====================================== */
.empty-message {
    padding: 30px 15px;
    font-size: 13px;
}

/* ======================================
   Footer Mobile
====================================== */
.footer {
    padding: 15px;
    font-size: 11px;
    text-align: center;
}

/* ======================================
   Login Page Mobile
====================================== */
.login-card {
    margin: 20px;
    padding: 25px;
    max-width: calc(100% - 40px);
}

.login-card h1 {
    font-size: 22px;
    margin-bottom: 25px;
}

/* ======================================
   Light Theme Mobile Overrides
====================================== */
body.light-theme .mobile-sidebar {
    background: #ffffff;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
}

body.light-theme .sidebar-header {
    background: #f8f8f8;
    border-bottom-color: #e0e0e0;
}

body.light-theme .sidebar-header h2 {
    color: #d35400;
}

body.light-theme .sidebar-item {
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(245, 245, 245, 0.98) 100%);
    border-color: rgba(0, 0, 0, 0.08);
    color: #333333;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body.light-theme .sidebar-item:hover {
    background: linear-gradient(145deg,
            rgba(255, 248, 240, 0.98) 0%,
            rgba(255, 245, 235, 1) 100%);
    border-color: rgba(211, 84, 0, 0.4);
    color: #d35400;
}

body.light-theme .mobile-kanban-tabs {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .mobile-tab {
    color: rgba(0, 0, 0, 0.5);
}

body.light-theme .mobile-tab.active {
    color: #d35400;
}

body.light-theme .liquid-indicator {
    background: linear-gradient(135deg,
            rgba(211, 84, 0, 0.25) 0%,
            rgba(211, 84, 0, 0.15) 50%,
            rgba(211, 84, 0, 0.2) 100%);
    border-color: rgba(211, 84, 0, 0.4);
    box-shadow:
        0 0 20px rgba(211, 84, 0, 0.2),
        0 0 40px rgba(211, 84, 0, 0.1);
}

body.light-theme .btn-theme-toggle {
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(245, 245, 245, 0.98) 100%);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.light-theme .btn-theme-toggle:hover {
    border-color: rgba(211, 84, 0, 0.5);
    box-shadow:
        0 0 15px rgba(211, 84, 0, 0.2),
        0 0 30px rgba(211, 84, 0, 0.1);
}

/* Light Theme - BI Dashboard */
body.light-theme .bi-dashboard-section,
body.light-theme .funcionarios-section,
body.light-theme .tarefas-usuario-section {
    background: var(--bg-primary);
}

body.light-theme .kpi-card,
body.light-theme .chart-container,
body.light-theme .table-container {
    background: var(--bg-card);
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

body.light-theme .kpi-value,
body.light-theme .kpi-label,
body.light-theme .chart-title,
body.light-theme .section-title {
    color: var(--text-primary);
}

body.light-theme .form-group label,
body.light-theme .form-group select,
body.light-theme .form-group input {
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border-color: var(--border-color);
}

body.light-theme .btn-primary,
body.light-theme .btn-success {
    background: var(--accent);
    color: #ffffff;
}

body.light-theme .kanban-column {
    background: var(--bg-card);
    border-color: var(--border-color);
}

body.light-theme .demand-card {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
}

body.light-theme .header {
    background: var(--bg-secondary);
    border-bottom-color: var(--border-color);
}

body.light-theme .footer {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

/* Light Theme - Modais */
body.light-theme .modal-content {
    background: #ffffff;
    border: 1px solid #e0e0e0;
}

body.light-theme .modal-header {
    background: #f8f8f8;
    border-bottom-color: #e0e0e0;
}

body.light-theme .modal-header h2 {
    color: #1a1a1a;
}

body.light-theme .modal-close {
    color: #666666;
}

body.light-theme .modal-tabs {
    background: #f5f5f5;
    border-bottom-color: #e0e0e0;
}

body.light-theme .modal-tab {
    color: #666666;
}

body.light-theme .modal-tab.active {
    color: #d35400;
    border-bottom-color: #d35400;
}

body.light-theme .modal-body {
    background: #ffffff;
}

body.light-theme .demand-detail-card {
    background: #f8f8f8;
    border-color: #e0e0e0;
}

body.light-theme .detail-label {
    color: #666666;
}

body.light-theme .detail-value {
    color: #1a1a1a;
}

body.light-theme .demand-actions {
    background: #f8f8f8;
    border-top-color: #e0e0e0;
}

body.light-theme .btn-secondary,
body.light-theme .btn-outline-danger {
    background: #ffffff;
    border-color: #d0d0d0;
    color: #333333;
}

body.light-theme .btn-outline-danger {
    border-color: #c0392b;
    color: #c0392b;
}

body.light-theme select {
    background: #ffffff;
    border-color: #d0d0d0;
    color: #1a1a1a;
}

/* ======================================
   Responsive Breakpoints para dispositivos específicos
====================================== */

/* iPhone SE, iPhone 5/5S/5C (320-375px) - Telas muito pequenas */
@media screen and (max-width: 375px) {
    .mobile-kanban-tabs {
        padding: 6px 8px;
        gap: 3px;
    }

    .mobile-tab {
        font-size: 9px;
        padding: 6px 8px;
    }

    .kanban-container {
        padding: 8px;
        height: calc(100vh - 130px);
        height: calc(100dvh - 130px);
    }

    .kanban-column {
        flex: 0 0 calc(100vw - 16px);
        width: calc(100vw - 16px);
        min-width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
        padding: 10px;
    }

    .demand-card {
        padding: 10px;
    }

    .demand-card-title {
        font-size: 13px;
    }

    .info-row {
        font-size: 10px;
    }

    .modal-content {
        max-height: 85vh;
        max-height: 85dvh;
    }

    .header {
        padding: 8px 10px;
    }

    .header-title {
        font-size: 16px;
    }
}

/* iPhone 6/7/8, iPhone X/XS/11 Pro (375-414px) */
@media screen and (min-width: 376px) and (max-width: 414px) {
    .kanban-container {
        height: calc(100vh - 135px);
        height: calc(100dvh - 135px);
    }

    .modal-content {
        max-height: 82vh;
        max-height: 82dvh;
    }
}

/* iPhone 11/12/13/14, iPhone Plus models (414-430px) */
@media screen and (min-width: 415px) and (max-width: 430px) {
    .kanban-container {
        height: calc(100vh - 140px);
        height: calc(100dvh - 140px);
    }
}

/* iPhone 14 Pro Max, Galaxy S series (430px+) */
@media screen and (min-width: 431px) and (max-width: 768px) {
    .kanban-container {
        height: calc(100vh - 145px);
        height: calc(100dvh - 145px);
    }

    .kanban-column {
        flex: 0 0 calc(100vw - 30px);
        width: calc(100vw - 30px);
        min-width: calc(100vw - 30px);
        max-width: calc(100vw - 30px);
    }
}

/* Altura dinâmica para dispositivos com notch/dynamic island */
@supports (height: 100dvh) {
    .kanban-container {
        height: calc(100dvh - 140px);
    }

    .modal-content {
        max-height: 80dvh;
    }
}

/* Safe area para dispositivos com bordas arredondadas */
@supports (padding: env(safe-area-inset-bottom)) {
    .kanban-container {
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
    }

    .modal-content {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .form-actions {
        padding-bottom: calc(15px + env(safe-area-inset-bottom));
    }
}

/* Landscape mobile */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .kanban-container {
        height: calc(100vh - 100px);
        height: calc(100dvh - 100px);
    }

    .kanban-column {
        flex: 0 0 50vw;
        width: 50vw;
        min-width: 50vw;
        max-width: 50vw;
    }

    .modal-content {
        max-height: 90vh;
        max-height: 90dvh;
    }
}