/* Reset básico e variáveis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    background-color: #F8F9FA;
}

:root {
    --header-bg: #01354D;
    --sidebar-bg: #FFFFFF;
    --main-bg: #F8F9FA;
    --text-primary: #171A1F;
    --text-secondary: #9095A1;
    --border-color: #E8E9EA;
    --card-bg: #FFFFFF;
    --accent-purple: #CBC9FA;
    --accent-green: #9095A1;
    --sidebar-width: 280px;
    --header-height: 64px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--main-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--main-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    max-width: 400px;
    padding: 32px;
}

.loading-content h3 {
    margin: 24px 0 8px 0;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 600;
}

.loading-content p {
    color: var(--text-secondary);
    font-size: 16px;
    margin: 0;
}

/* Access Denied Screen */
.access-denied {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--main-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.access-denied-content {
    text-align: center;
    max-width: 500px;
    padding: 48px 32px;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.access-denied-icon {
    margin-bottom: 24px;
}

.access-denied-content h2 {
    margin: 0 0 16px 0;
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 600;
}

.access-denied-content p {
    color: var(--text-secondary);
    font-size: 16px;
    margin: 0 0 32px 0;
    line-height: 1.5;
}

.access-denied-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    min-width: 120px;
}

.btn-primary {
    background-color: var(--header-bg);
    color: white;
}

.btn-primary:hover {
    background-color: #014663;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--header-bg);
    color: var(--header-bg);
}

.user-name {
    color: white;
    font-weight: 500;
    margin-left: 8px;
}

/* Fix para evitar elementos aparecendo por trás do dashboard */
.dashboard-container {
    position: relative;
    background-color: #F8F9FA;
    min-height: 100vh;
    z-index: 0;
}

.main-content::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #F8F9FA;
    z-index: -1;
}

/* Garantir que cards e elementos principais estejam sempre visíveis */
.cards-grid,
.users-section,
.content-header {
    position: relative;
    z-index: 2;
    background-color: transparent;
}

.main-card {
    position: relative;
    z-index: 3;
}

/* Header adjustments */
.header-right .user-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Main Menu Styles */
.main-menu {
    position: relative;
    display: inline-block;
}

.main-menu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    min-width: 320px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 8px;
}

.main-menu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
    border-radius: 12px 12px 0 0;
}

.main-menu-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.menu-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    color: #6b7280;
    transition: all 0.2s ease;
}

.menu-close:hover {
    background-color: #e5e7eb;
    color: #374151;
}

.main-menu-content {
    padding: 12px 0;
}

.main-menu-item {
    width: 100%;
    padding: 16px 20px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: background-color 0.2s ease;
    color: #374151;
}

.main-menu-item:hover {
    background-color: #f3f4f6;
}

.menu-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-item-title {
    font-weight: 500;
    font-size: 14px;
    color: #1f2937;
}

.menu-item-description {
    font-size: 12px;
    color: #6b7280;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--header-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Decorative element below header */
.header-decoration {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    height: 10px;
    background-image: url('../svg/queixo.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto;
    z-index: 999;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.hamburger-menu:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.logo {
    height: 40px;
    max-width: 140px;
    /* filter: brightness(0) invert(1); */
}

.header-center {
    flex: 1;
    max-width: 480px;
    margin: 0 32px;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 0 16px;
    gap: 12px;
    transition: background-color 0.2s;
}

.search-container:focus-within {
    background-color: rgba(255, 255, 255, 0.15);
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    padding: 12px 0;
    color: white;
    font-size: 14px;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.close-search {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.close-search:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.header-right {
    display: flex;
    align-items: center;
}

.user-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-btn, .user-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    color: white;
    transition: background-color 0.2s;
}

.notification-btn:hover, .user-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: calc(var(--header-height) + 10px);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height) - 10px);
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    padding: 24px 0;
    overflow-y: auto;
    z-index: 998;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateX(0);
    opacity: 1;
}

.sidebar.closed {
    transform: translateX(-100%);
    opacity: 0;
}

.sidebar-section {
    padding: 0 24px;
    margin-bottom: 32px;
}

.sidebar-section h3 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    text-decoration: none;
    color: var(--text-primary);
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 13px;
    font-weight: 500;
    width: auto;
}

.nav-item:hover {
    background-color: #F8F9FA;
    color: var(--header-bg);
}

.nav-item.active {
    background-color: var(--header-bg);
    color: white;
}

.favorite-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.sidebar-footer {
    padding: 0 24px;
    margin-top: auto;
}

.create-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background-color: var(--header-bg);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.create-btn:hover {
    background-color: #014663;
}

/* Main Content */
.main-content, .backup-main-content {
    margin-left: var(--sidebar-width);
    margin-top: calc(var(--header-height) + 10px);
    padding: 32px;
    min-height: calc(100vh - var(--header-height) - 10px);
    background-color: #f8f9fa;
    position: relative;
    z-index: 1;
    transition: margin-left 0.3s ease !important;
}

.main-content.sidebar-closed, .backup-main-content.sidebar-closed {
    margin-left: 0 !important;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.content-header h1 {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
}

.close-content {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.close-content:hover {
    background-color: var(--border-color);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.main-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.2s;
}

.main-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--header-bg);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.card-icon {
    width: 48px;
    height: 48px;
    background-color: #F8F9FA;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--header-bg);
}

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.main-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

/* Bottom Section */
.bottom-section {
    margin-top: 48px;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.stat-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 12px;
    color: var(--text-secondary);
}

.stat-dots {
    font-size: 16px;
    color: var(--text-secondary);
}

.stat-content h4 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.progress-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--border-color);
}

.dot.active {
    background-color: var(--header-bg);
}

.add-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--header-bg);
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.add-btn:hover {
    background-color: #014663;
}

/* Users Management Section */
.users-section {
    margin-top: 48px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.refresh-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background-color: var(--header-bg);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.close-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.close-btn:hover {
    background-color: #c82333;
}

.refresh-btn:hover {
    background-color: #014663;
}

.users-table-container {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: visible;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table th,
.users-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.users-table th {
    background-color: #F8F9FA;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.users-table tbody tr:last-child td {
    border-bottom: none;
}

.users-table tbody tr:hover {
    background-color: #FAFBFC;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    background-color: var(--header-bg);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.user-name {
    font-weight: 500;
    color: var(--text-primary);
}

.user-email {
    color: var(--text-secondary);
    font-size: 14px;
}

.user-date {
    color: var(--text-secondary);
    font-size: 14px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.ativo {
    background-color: #E8F5E8;
    color: #2E7D2E;
}

.status-badge.inativo {
    background-color: #FFF2F2;
    color: #D32F2F;
}

.status-badge.pendente {
    background-color: #FFF8E1;
    color: #F57C00;
}

.user-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.action-btn.approve {
    background-color: #E8F5E8;
    color: #2E7D2E;
}

.action-btn.approve:hover {
    background-color: #2E7D2E;
    color: white;
}

.action-btn.reject {
    background-color: #FFF2F2;
    color: #D32F2F;
}

.action-btn.reject:hover {
    background-color: #D32F2F;
    color: white;
}

.action-btn.activate {
    background-color: #E8F5E8;
    color: #2E7D2E;
}

.action-btn.activate:hover {
    background-color: #2E7D2E;
    color: white;
}

.action-btn.deactivate {
    background-color: #FFF2F2;
    color: #D32F2F;
}

.action-btn.deactivate:hover {
    background-color: #D32F2F;
    color: white;
}

.loading-row td {
    text-align: center;
    padding: 48px;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: var(--text-secondary);
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--header-bg);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: var(--text-secondary);
    padding: 24px;
}

.no-data p {
    font-size: 16px;
    margin: 0;
}

/* Notifications */
.notification {
    position: fixed;
    top: 80px;
    right: 24px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

.notification.success {
    border-left: 4px solid #2E7D2E;
}

.notification.error {
    border-left: 4px solid #D32F2F;
}

.notification-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
}

.notification-content span {
    color: var(--text-primary);
    font-weight: 500;
}

.notification-content button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive for users table */
@media (max-width: 768px) {
    .users-table-container {
        overflow-x: auto;
    }
    
    .users-table {
        min-width: 600px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .notification {
        right: 16px;
        left: 16px;
        min-width: auto;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%) !important;
        top: calc(var(--header-height) + 10px);
        height: calc(100vh - var(--header-height) - 10px);
    }
    
    .sidebar.closed {
        transform: translateX(-100%) !important;
    }
    
    .main-content, .backup-main-content {
        margin-left: 0 !important;
        margin-top: calc(var(--header-height) + 10px);
    }
    
    .main-content.sidebar-closed, .backup-main-content.sidebar-closed {
        margin-left: 0 !important;
    }
}

@media (min-width: 769px) {
    .sidebar {
        transform: translateX(0);
    }
    
    .sidebar.closed {
        transform: translateX(-100%) !important;
    }
    
    .main-content, .backup-main-content {
        margin-left: var(--sidebar-width);
    }
    
    .main-content.sidebar-closed, .backup-main-content.sidebar-closed {
        margin-left: 0 !important;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 16px;
        margin-top: calc(var(--header-height) + 8px);
    }
    
    .content-header h1 {
        font-size: 24px;
    }
    
    .main-card {
        padding: 16px;
    }
    
    .header-decoration {
        height: 6px;
    }
}

/* User Menu Dropdown */
.user-menu {
    position: relative;
    display: inline-block;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #E5E7EB;
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease-in-out;
    margin-top: 8px;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 12px;
    width: 12px;
    height: 12px;
    background: white;
    border: 1px solid #E5E7EB;
    border-bottom: none;
    border-right: none;
    transform: rotate(45deg);
}

.user-dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid #E5E7EB;
    background: #F9FAFB;
    border-radius: 8px 8px 0 0;
}

.user-dropdown-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-dropdown-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--header-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.user-dropdown-details h4 {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.user-dropdown-details p {
    font-size: 12px;
    color: #6B7280;
    margin: 0;
}

.user-dropdown-menu {
    padding: 8px 0;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    transition: background-color 0.2s;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 14px;
}

.user-dropdown-item:hover {
    background: #F3F4F6;
}

.user-dropdown-item.danger {
    color: #DC2626;
}

.user-dropdown-item.danger:hover {
    background: #FEF2F2;
}

.user-dropdown-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Overlay para fechar dropdown quando clicar fora */
.dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: transparent;
    display: none;
}

.dropdown-overlay.show {
    display: block;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 98%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

/* Task Modal Styles - New Design */
.task-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.task-modal-overlay.show {
    display: flex !important;
    opacity: 1;
    visibility: visible;
}

.task-modal-content {
    background: white;
    border-radius: 16px;
    width: 95%;
    max-width: 700px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.task-modal-overlay.show .task-modal-content {
    transform: scale(1);
}

.task-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
}

.task-modal-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #1f2937;
}

.task-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    color: #6b7280;
    transition: all 0.2s ease;
}

.task-modal-close:hover {
    background-color: #e5e7eb;
    color: #374151;
}

.task-modal-gallery {
    position: relative;
    background: #f3f4f6;
    height: 280px;
    overflow: hidden;
}

.gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0;
}

.no-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #9ca3af;
    font-size: 16px;
    font-weight: 500;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 16px;
}

.gallery-next {
    right: 16px;
}

.task-modal-body {
    padding: 24px;
    max-height: 400px;
    overflow-y: auto;
}

.task-modal-section {
    margin-bottom: 20px;
}

.task-modal-section:last-child {
    margin-bottom: 0;
}

.task-modal-section label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.task-modal-field {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    min-height: 20px;
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
}

.task-modal-field select {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
    width: 100%;
    font-size: 14px;
    color: #374151;
}

.task-modal-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.task-link {
    color: #3b82f6;
    text-decoration: none;
    word-break: break-all;
}

.task-link:hover {
    text-decoration: underline;
}

.task-no-link {
    color: #9ca3af;
    font-style: italic;
}

.task-modal-actions {
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: #f8f9fa;
}

.task-modal-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.task-modal-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.task-modal-btn-secondary:hover {
    background: #e5e7eb;
}

.task-modal-btn-primary {
    background: #7c3aed;
    color: white;
}

.task-modal-btn-primary:hover {
    background: #6d28d9;
}

/* Drag and Drop Styles */
.task-card {
    transition: all 0.2s ease;
    cursor: move;
}

.task-card.dragging {
    opacity: 0.5;
    transform: rotate(3deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.task-card.drag-over {
    border: 2px dashed #3b82f6;
    background-color: #eff6ff;
}

.task-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 4px 0;
}

.drag-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #9ca3af;
    cursor: grab;
    transition: color 0.2s ease;
}

.drag-handle:hover {
    color: #374151;
}

.drag-handle:active {
    cursor: grabbing;
}

.task-priority {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.task-priority.alta {
    background-color: #ef4444;
}

.task-priority.media {
    background-color: #f59e0b;
}

.task-priority.normal {
    background-color: #10b981;
}

.task-priority.baixa {
    background-color: #6b7280;
}

/* Responsive adjustments for drag and drop */
@media (max-width: 768px) {
    .drag-handle {
        width: 24px;
        height: 24px;
    }
    
    .task-card.dragging {
        transform: rotate(2deg);
    }
}

/* Task Image Styling */
.task-image {
    width: 100%;
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
}

.task-image img {
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

/* Task Card Enhanced Styling */
.task-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.task-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.task-responsible {
    color: #6b7280;
    font-size: 14px;
    margin: 8px 0;
}

.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.task-date {
    font-size: 12px;
    color: #9ca3af;
}

.task-actions {
    display: flex;
    gap: 8px;
}

.task-actions button {
    background: none;
    border: none;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
}

.task-actions button:hover {
    background: #f3f4f6;
    color: #374151;
}

.modal-header {
    padding: 32px 40px 24px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 20px solid #e5e7eb;
    margin-bottom: 24px;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    color: #6b7280;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.modal-body {
    padding: 0 40px 40px 40px;
}

/* Main Menu Modal Styles */
.menu-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.menu-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.menu-option:hover {
    border-color: #10b981;
    background: #f0fdfa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.menu-option i {
    font-size: 24px;
    color: #10b981;
    width: 32px;
    text-align: center;
}

.menu-option div {
    flex: 1;
}

.menu-option h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.menu-option p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
}

/* Role Create Modal Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group label input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    margin-bottom: 0;
}

.form-group small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
    margin-top: 32px;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: #10b981;
    color: white;
}

.btn-primary:hover {
    background: #059669;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

/* Loading roles styles */
.loading-roles {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    color: #6b7280;
    font-size: 14px;
}

.loading-roles .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #01354d;
    box-shadow: 0 0 0 3px rgba(1, 53, 77, 0.1);
}

.form-group input:readonly {
    background-color: #f9fafb;
    color: #6b7280;
    cursor: not-allowed;
}

.form-help {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.btn-secondary, .btn-primary {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-secondary {
    background-color: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background-color: #e5e7eb;
}

.btn-primary {
    background-color: #01354d;
    color: white;
}

.btn-primary:hover {
    background-color: #012a3a;
}

/* Status Dropdown Styles */
.status-dropdown {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: white;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.status-dropdown:focus {
    outline: none;
    border-color: #01354d;
    box-shadow: 0 0 0 3px rgba(1, 53, 77, 0.1);
}

/* Actions Dropdown Styles */
.actions-dropdown {
    position: relative;
    display: inline-block;
}

.actions-dropdown-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
}

.actions-dropdown-btn:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.actions-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.actions-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.actions-dropdown-item {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    text-align: left;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
}

.actions-dropdown-item:hover {
    background-color: #f3f4f6;
}

.actions-dropdown-item.danger {
    color: #dc2626;
}

.actions-dropdown-item.danger:hover {
    background-color: #fef2f2;
}

.actions-dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.actions-dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

/* Manage Modal Styles */
.user-info-section {
    margin-bottom: 24px;
    padding: 16px;
    background-color: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #01354d;
}

.user-info-section h3 {
    margin: 0 0 8px 0;
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
}

.user-info-text {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

/* Role checkbox styles */
.role-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.role-checkbox:hover {
    background-color: #f9fafb;
}

.role-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
    background-color: white;
}

.checkmark::after {
    content: "";
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s ease;
}

.role-checkbox input[type="checkbox"]:checked + .checkmark {
    background-color: currentColor;
    border-color: currentColor;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.role-checkbox input[type="checkbox"]:checked + .checkmark::after {
    transform: rotate(45deg) scale(1);
}

.role-checkbox:hover .checkmark {
    border-color: currentColor;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.role-info {
    flex: 1;
}

.role-name {
    display: block;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 2px;
}

.role-description {
    display: block;
    font-size: 12px;
    color: #6b7280;
}

.roles-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.role-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s ease;
}

.role-item:hover {
    border-color: #01354d;
    background-color: #f8fafc;
}

.role-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin: 0;
}

.role-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.role-checkbox input[type="checkbox"]:checked + .checkmark {
    background-color: #01354d;
    border-color: #01354d;
}

.role-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.role-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.role-name {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.role-description {
    color: #6b7280;
    font-size: 12px;
}

/* Role Badges */
.role-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 4px;
    position: relative;
}

.role-badge.user {
    background-color: #dbeafe;
    color: #1e40af;
}

.role-badge.admin {
    background-color: #fef3c7;
    color: #92400e;
}

.role-badge.additional {
    background-color: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d5db;
    cursor: help;
}

/* Role Manager Modal Styles */
.role-manager-section {
    margin-bottom: 32px;
}

.role-manager-section h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.existing-roles {
    display: grid;
    gap: 12px;
}

.role-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.role-card:hover {
    border-color: #01354d;
    background: #f1f5f9;
}

.role-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.role-edit-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    color: #6b7280;
    transition: all 0.2s ease;
}

.role-edit-btn:hover {
    background-color: #e5e7eb;
    color: #374151;
}

.role-card .role-description {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.section-header h3 {
    margin: 0;
}

.section-description {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.btn-primary svg {
    margin-right: 8px;
}

/* Salas Styles */
.sala-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 6px;
    text-decoration: none;
    color: var(--text-primary);
    border-radius: 3px;
    transition: all 0.2s;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 1px;
    width: auto;
}

.sala-item:hover {
    background-color: #F8F9FA;
    color: var(--header-bg);
}

.sala-item.active {
    background-color: var(--header-bg);
    color: white;
}

.sala-icon {
    width: 4px;
    height: 4px;
    flex-shrink: 0;
}

.empty-salas {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.empty-salas svg {
    margin-bottom: 8px;
    opacity: 0.5;
}

/* Color Picker Styles */
.color-picker-container {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.color-picker-container input[type="color"] {
    width: 50px;
    height: 40px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    background: none;
    padding: 0;
}

.color-picker-container input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
    border-radius: 6px;
}

.color-picker-container input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
}

.color-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
}

/* Sala Content Styles */
.sala-content {
    text-align: center;
    padding: 60px 20px;
}

.sala-content h1 {
    font-size: 32px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.sala-content p {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 32px;
}

.sala-placeholder {
    background: white;
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    padding: 40px;
    margin: 20px 0;
}

.sala-placeholder h3 {
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 18px;
}

.sala-placeholder p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

/* Loading Salas Animation */
.loading-salas {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Responsive adjustments for salas */
@media (max-width: 768px) {
    .sala-item {
        padding: 12px 16px;
        font-size: 16px;
    }
    
    .color-picker-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* Context Menu Styles */
.context-menu {
    position: fixed !important;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    z-index: 10000 !important;
    min-width: 160px;
    padding: 0;
    display: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.context-menu.show {
    display: block !important;
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #dc2626;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: white;
    width: 100%;
    text-align: left;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    margin: 0;
    border: 1px solid #e5e7eb;
}

.context-menu-item:hover {
    background: white;
    color: #b91c1c;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.context-menu-item svg {
    color: #dc2626;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.context-menu-item:hover svg {
    color: #b91c1c;
}

/* ================================
   KANBAN BOARD STYLES
   ================================ */

.sala-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--main-bg);
}

.content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    background: white;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
}

.content-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-add-task {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--header-bg);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add-task:hover {
    background: #024761;
    transform: translateY(-1px);
}

.close-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.close-content:hover {
    background: #e5e5e5;
    color: var(--text-primary);
}

.kanban-board {
    display: flex;
    gap: 24px;
    padding: 32px;
    height: calc(100vh - 120px);
    overflow-x: auto;
    overflow-y: hidden;
}

.board-column {
    min-width: 280px;
    flex: 1;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: fit-content;
    max-height: 100%;
}

.column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: #fafbfc;
    border-radius: 12px 12px 0 0;
}

.column-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.task-count {
    background: var(--text-secondary);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.column-content {
    padding: 20px 24px;
    flex: 1;
    min-height: 200px;
    max-height: calc(100vh - 280px);
    overflow-y: auto;
}

.empty-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    text-align: center;
}

.empty-column svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-column p {
    font-size: 14px;
    margin: 0;
}

/* Task Cards */
.task-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: grab;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.task-card:hover {
    border-color: var(--header-bg);
    box-shadow: 0 4px 12px rgba(1, 53, 77, 0.15);
    transform: translateY(-1px);
}

.task-card:active {
    cursor: grabbing;
}

.task-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 8px;
}

.task-header h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
    line-height: 1.4;
    flex: 1;
}

.task-priority {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 8px;
    flex-shrink: 0;
}

.task-priority.alta {
    background: #ef4444;
}

.task-priority.media {
    background: #f59e0b;
}

.task-priority.baixa {
    background: #10b981;
}

.task-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.task-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.task-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.task-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.task-card:hover .task-actions {
    opacity: 1;
}

.task-actions button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.task-actions button:hover {
    background: #f1f2f4;
    color: var(--text-primary);
}

.task-actions button.delete-btn:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* Column status indicators */
.board-column[data-status="pedido"] .column-header {
    border-left: 4px solid #6b7280;
}

.board-column[data-status="andamento"] .column-header {
    border-left: 4px solid #f59e0b;
}

.board-column[data-status="convertendo"] .column-header {
    border-left: 4px solid #3b82f6;
}

.board-column[data-status="concluido"] .column-header {
    border-left: 4px solid #10b981;
}

/* Responsive board */
@media (max-width: 1200px) {
    .kanban-board {
        padding: 16px;
        gap: 16px;
    }
    
    .board-column {
        min-width: 240px;
    }
}

@media (max-width: 768px) {
    .content-header {
        padding: 16px 20px;
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .kanban-board {
        flex-direction: column;
        height: auto;
        padding: 16px;
    }
    
    .board-column {
        min-width: 100%;
        margin-bottom: 16px;
    }
    
    .column-content {
        max-height: 300px;
    }
}

/* ================================
   NOVA TAREFA MODAL STYLES
   ================================ */

.task-modal {
    max-width: 600px;
    width: 90%;
	padding: 10px
}

.task-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.required {
    color: #ef4444;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--header-bg);
    box-shadow: 0 0 0 3px rgba(1, 53, 77, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    background: #fafbfc;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: var(--text-secondary);
}

.file-upload:hover .file-upload-label {
    border-color: var(--header-bg);
    background: #f0f9ff;
    color: var(--header-bg);
}

.image-preview {
    position: relative;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fafbfc;
}

.remove-image-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.remove-image-btn:hover {
    background: #ef4444;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: var(--header-bg);
    color: white;
}

.btn-primary:hover {
    background: #024761;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f1f2f4;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: #e5e7eb;
    color: var(--text-primary);
}

/* Responsive task modal */
@media (max-width: 768px) {
    .task-modal {
        width: 95%;
        margin: 20px auto;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}
