:root {
    --primary-color: #026aa7;
    --secondary-color: #0079bf;
    --light-color: #f4f5f7;
    --dark-color: #172b4d;
    --success-color: #00d4aa;
    --warning-color: #ffb800;
    --danger-color: #ff4757;
    --info-color: #0fbcf9;
    
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--dark-color);
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--success-color), var(--info-color));
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
}

.logo-text h1 {
    font-size: 24px;
    color: var(--dark-color);
}

.logo-text p {
    font-size: 12px;
    color: #6b778c;
}

/* Botões */
.btn-futuristic {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-futuristic.primary {
    background: linear-gradient(135deg, var(--success-color), var(--info-color));
    color: white;
}

.btn-futuristic.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 24px;
    overflow-x: auto;
}

/* Boards Container */
.boards-container {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 500px;
    margin: 40px auto;
}

.empty-state-icon {
    font-size: 64px;
    color: var(--info-color);
    margin-bottom: 24px;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.empty-state p {
    color: #6b778c;
    margin-bottom: 24px;
}

/* Board */
.board {
    background: #f4f5f7;
    border-radius: var(--border-radius-lg);
    width: 320px;
    min-width: 280px;
    padding: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.board:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
}

.board-title {
    flex: 1;
    font-size: 18px;
    font-weight: 700;
    padding: 8px 12px;
    border: 2px solid transparent;
    border-radius: var(--border-radius-md);
    background: white;
    cursor: pointer;
}

.board-title:focus {
    outline: none;
    border-color: var(--info-color);
    box-shadow: var(--shadow-sm);
}

.delete-board-btn {
    background: rgba(255, 71, 87, 0.1);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 8px 10px;
    color: var(--danger-color);
    transition: var(--transition);
    flex-shrink: 0;
}

.delete-board-btn:hover {
    background: rgba(255, 71, 87, 0.2);
    transform: scale(1.05);
}

/* Cards Container */
.cards-container {
    min-height: 100px;
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    margin-bottom: 12px;
}

.cards-container::-webkit-scrollbar {
    width: 6px;
}

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

.cards-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

/* ========== CARDS - VERSÃO CORRIGIDA (SEM DUPLICAÇÕES) ========== */
.card {
    background: white;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.card.completed {
    opacity: 0.7;
    background: #f8f9fa;
}

.card.completed .card-text {
    text-decoration: line-through;
    color: #6b778c;
}

/* Card Content */
.card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 16px 12px 12px;
    width: 100%;
}

/* Lado esquerdo */
.card-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

/* Checkbox */
.complete-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

/* Texto */
.card-text {
    flex: 1;
    word-break: break-word;
    line-height: 1.4;
    font-size: 14px;
}

/* Botão deletar - VERSÃO ÚNICA E DEFINITIVA */
.delete-card-btn {
    background: rgba(255, 71, 87, 0.1);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 8px 10px;
    color: var(--danger-color);
    transition: var(--transition);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-right: 8px;
}

.delete-card-btn:hover {
    background: rgba(255, 71, 87, 0.2);
    transform: scale(1.05);
}

.delete-card-btn i {
    font-size: 14px;
    pointer-events: none;
}

/* Add Card Button */
.add-card-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

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

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 500px;
    padding: 24px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--danger-color);
    transform: rotate(90deg);
}

.modal-body input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    margin-bottom: 16px;
    transition: var(--transition);
}

.modal-body input:focus {
    outline: none;
    border-color: var(--info-color);
    box-shadow: 0 0 0 3px rgba(15, 188, 249, 0.1);
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    max-width: 400px;
    min-width: 280px;
}

.notification.show {
    transform: translateX(0);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.notification.success .notification-icon {
    background: rgba(0, 212, 170, 0.1);
    color: var(--success-color);
}

.notification.warning .notification-icon {
    background: rgba(255, 184, 0, 0.1);
    color: var(--warning-color);
}

.notification.info .notification-icon {
    background: rgba(15, 188, 249, 0.1);
    color: var(--info-color);
}

.notification.error .notification-icon {
    background: rgba(255, 71, 87, 0.1);
    color: var(--danger-color);
}

.notification-content h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

.notification-content p {
    font-size: 13px;
    color: #6b778c;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 16px 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .boards-container {
        justify-content: center;
    }
    
    .board {
        width: 100%;
        max-width: 400px;
    }
    
    .main-content {
        padding: 16px;
    }
    
    .notification {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .board {
        min-width: auto;
    }
    
    .empty-state {
        padding: 40px 20px;
    }
    
    .empty-state h3 {
        font-size: 20px;
    }
    
    .card-content {
        padding: 10px;
    }
    
    .delete-card-btn {
        width: 30px;
        height: 30px;
        padding: 6px;
        margin-right: 4px;
    }
}