/* Modal de Adicionar Cartão - Layout Corrigido */
.card-modal-large {
    max-width: 900px;
    margin: 20px;
}

.card-form-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    margin-bottom: 25px;
    padding: 0 25px;
}

.form-section {
    display: flex;
    flex-direction: column;
}

.main-section {
    gap: 30px;
    padding: 10px 0;
}

.sidebar-section {
    gap: 25px;
    padding: 10px 0;
}

/* Settings Card Corrigido */
.settings-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e3e6f0;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin: 0;
}

.settings-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0079bf;
}

.settings-icon {
    font-size: 20px;
}

.settings-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
}

.settings-group {
    margin-bottom: 25px;
}

.settings-group:last-child {
    margin-bottom: 0;
}

.settings-label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.4;
}

.label-icon {
    margin-right: 8px;
    font-size: 14px;
}

.optional-badge {
    background: #6c757d;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    margin-left: 8px;
}

/* Inputs Melhorados com Espaçamento */
.form-group {
    margin-bottom: 25px;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    line-height: 1.4;
}

.card-title-input {
    font-size: 16px;
    font-weight: 600;
    padding: 14px 16px;
    border: 2px solid #e3e6f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.card-title-input:focus {
    border-color: #0079bf;
    box-shadow: 0 0 0 3px rgba(0, 121, 191, 0.1);
    background: #fff;
    outline: none;
}

.card-description-input {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
    font-size: 14px;
    padding: 14px 16px;
    border: 2px solid #e3e6f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

.card-description-input:focus {
    border-color: #0079bf;
    box-shadow: 0 0 0 3px rgba(0, 121, 191, 0.1);
    outline: none;
}

.input-hint {
    font-size: 12px;
    color: #6c757d;
    margin-top: 8px;
    line-height: 1.4;
}

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.char-count {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.char-count-warning {
    color: #dc3545;
    font-weight: bold;
}

/* Color Picker Grid Melhorado */
.color-picker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 8px 0 12px 0;
}

.color-option {
    width: 100%;
    height: 45px;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.color-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.color-option.active {
    border-color: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.color-option.active::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #2c3e50;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.settings-hint {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
    margin-top: 8px;
}

/* Campos de Data Melhorados */
.date-fields-compact {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 8px 0 12px 0;
}

.date-field-compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.date-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-icon {
    font-size: 14px;
}

.date-text {
    font-size: 13px;
    font-weight: 600;
    color: #495057;
}

.compact-date {
    padding: 12px 14px;
    font-size: 14px;
    border: 2px solid #e3e6f0;
    border-radius: 6px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

.compact-date:focus {
    border-color: #0079bf;
    box-shadow: 0 0 0 2px rgba(0, 121, 191, 0.1);
    outline: none;
}

.date-hint {
    font-size: 11px;
    color: #6c757d;
    line-height: 1.3;
    margin-top: 4px;
}

/* Tips Section Melhorada */
.settings-tips {
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f8ff 100%);
    border: 1px solid #cfe2ff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 25px;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.tip-item:last-child {
    margin-bottom: 0;
}

.tip-icon {
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

.tip-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.tip-content strong {
    font-size: 12px;
    color: #2c3e50;
    font-weight: 600;
}

.tip-content span {
    font-size: 11px;
    color: #6c757d;
    line-height: 1.4;
}

/* Form Actions Melhorados */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-top: 1px solid #e9ecef;
    margin-top: 10px;
    background: #fafbfc;
    border-radius: 0 0 8px 8px;
}

.actions-left, .actions-right {
    display: flex;
    gap: 12px;
}

.create-card-btn {
    padding: 12px 24px;
    font-weight: 600;
    font-size: 14px;
    min-width: 140px;
}

.cancel-btn {
    padding: 12px 24px;
    font-weight: 600;
    font-size: 14px;
    min-width: 120px;
}

/* Botões com Ícones */
.btn-icon {
    margin-right: 8px;
    font-size: 14px;
}

/* Ajustes para o Modal Body */
.modal-body {
    padding: 0;
}

/* Header do Modal Corrigido */
.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #ebecf0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafbfc;
    border-radius: 8px 8px 0 0;
}

.modal-title {
    margin: 0;
    font-size: 18px;
    color: #172b4d;
    font-weight: 700;
}

/* Ajustes de Espaçamento para Todo o Modal */
.kanban-modal-content.card-modal-large .modal-body > * {
    padding-left: 25px;
    padding-right: 25px;
}

.kanban-modal-content.card-modal-large .card-form-grid {
    padding-left: 0;
    padding-right: 0;
    margin-left: 25px;
    margin-right: 25px;
}

/* Estados de Foco Melhorados */
.form-input:focus, 
.form-textarea:focus,
.card-title-input:focus,
.card-description-input:focus,
.compact-date:focus {
    border-color: #0079bf;
    box-shadow: 0 0 0 3px rgba(0, 121, 191, 0.1);
    outline: none;
}

/* Placeholders Melhorados */
.card-title-input::placeholder,
.card-description-input::placeholder,
.compact-date::placeholder {
    color: #a0a0a0;
    opacity: 1;
}

/* ===== SISTEMA DE NOTIFICAÇÕES ===== */
.kanban-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.kanban-notification-success {
    background: #28a745;
    border-left: 4px solid #1e7e34;
}

.kanban-notification-error {
    background: #dc3545;
    border-left: 4px solid #c82333;
}

.kanban-notification-warning {
    background: #ffc107;
    color: #212529;
    border-left: 4px solid #e0a800;
}

.notification-message {
    flex: 1;
    margin-right: 15px;
    font-size: 14px;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== ESTADOS DE LOADING ===== */
.kanban-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0079bf;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.updating {
    position: relative;
    opacity: 0.7;
}

.updating::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== SEÇÃO DE ANEXOS MELHORADA ===== */
.upload-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    border: 2px dashed #dee2e6;
}

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

.upload-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.upload-icon {
    font-size: 20px;
}

.upload-title h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 16px;
}

.upload-limits {
    font-size: 12px;
    color: #6c757d;
}

.max-size {
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.upload-area {
    transition: all 0.3s ease;
}

.upload-area.has-file {
    border-color: #28a745;
    background: #f8fff9;
}

.upload-area.uploading {
    border-color: #0079bf;
    background: #f0f8ff;
}

.upload-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.upload-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* Botões separados para selecionar e salvar */
#select-file-btn {
    background: #0079bf;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#select-file-btn:hover {
    background: #026aa7;
    transform: translateY(-1px);
}

#save-file-btn {
    background: #6c757d;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    cursor: not-allowed;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 0.6;
}

#save-file-btn:not(:disabled) {
    cursor: pointer;
    opacity: 1;
}

#save-file-btn.kanban-btn-success {
    background: #28a745;
}

#save-file-btn.kanban-btn-success:hover:not(:disabled) {
    background: #218838;
    transform: translateY(-1px);
}

.file-display {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 6px;
    padding: 15px;
    border: 1px solid #e9ecef;
}

.no-file {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6c757d;
    font-size: 14px;
}

.no-file-icon {
    font-size: 18px;
}

.file-selected {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.file-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.file-details {
    flex: 1;
}

.file-name-text {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
    word-break: break-word;
}

.file-meta {
    font-size: 12px;
    color: #6c757d;
}

.upload-info {
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
}

.supported-formats {
    font-size: 13px;
}

.supported-formats strong {
    display: block;
    margin-bottom: 8px;
    color: #495057;
}

.formats-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.format-tag {
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    color: #495057;
}

/* Lista de Anexos Existentes */
.existing-attachments-section {
    margin-top: 30px;
}

.section-header {
    margin-bottom: 20px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon {
    font-size: 18px;
}

.section-title h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 16px;
}

.attachments-count {
    background: #0079bf;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.attachments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.attachment-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.attachment-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.attachment-info {
    flex: 1;
}

.attachment-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
    word-break: break-word;
}

.attachment-meta {
    font-size: 12px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.separator {
    color: #adb5bd;
}

.attachment-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.download-btn, .delete-attachment-btn {
    padding: 6px 12px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.download-btn {
    background: #6c757d;
    color: white;
}

.download-btn:hover {
    background: #5a6268;
}

.delete-attachment-btn {
    background: #dc3545;
    color: white;
}

.delete-attachment-btn:hover {
    background: #c82333;
}

.no-attachments {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.no-attachments-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-attachments-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
}

.no-attachments-description {
    font-size: 14px;
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto;
}

/* ===== RESPONSIVIDADE MELHORADA ===== */
@media (max-width: 968px) {
    .card-modal-large {
        max-width: 95%;
        margin: 10px;
    }
    
    .card-form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
        margin-left: 0;
        margin-right: 0;
    }
    
    .settings-card {
        order: -1;
        margin: 0;
    }
    
    .main-section,
    .sidebar-section {
        padding: 0;
    }

    .kanban-notification {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .kanban-notification.show {
        transform: translateY(0);
    }

    .upload-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    #select-file-btn,
    #save-file-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .card-modal-large {
        max-width: 100%;
        margin: 5px;
    }
    
    .card-form-grid {
        padding: 0 15px;
        gap: 15px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .form-actions {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .actions-left, .actions-right {
        width: 100%;
        justify-content: center;
    }
    
    .create-card-btn,
    .cancel-btn {
        width: 100%;
        min-width: auto;
    }
    
    .color-picker-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .date-fields-compact {
        gap: 15px;
    }
    
    .settings-card {
        padding: 20px;
    }
    
    .settings-tips {
        padding: 15px;
    }

    /* Layout responsivo para kanban */
    .kanban-lists {
        flex-direction: column;
        overflow-x: hidden;
    }
    
    .kanban-list {
        min-width: 100%;
        margin-bottom: 15px;
    }
    
    .modal-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .attachment-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .attachment-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .upload-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .card-form-grid {
        padding: 0 10px;
    }
    
    .modal-header {
        padding: 12px 15px;
    }
    
    .form-actions {
        padding: 15px;
    }
    
    .settings-card {
        padding: 15px;
    }
    
    .color-picker-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .color-option {
        height: 40px;
    }

    .kanban-notification {
        padding: 12px 15px;
        right: 5px;
        left: 5px;
    }
    
    .notification-message {
        font-size: 13px;
    }

    .upload-section {
        padding: 15px;
    }

    .attachment-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .separator {
        display: none;
    }
}

/* ===== ANIMAÇÕES SUAVES ===== */
.card-title-input,
.card-description-input,
.compact-date,
.color-option {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estados de Loading */
.create-card-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Foco Acessível */
.form-input:focus-visible,
.form-textarea:focus-visible,
.card-title-input:focus-visible,
.card-description-input:focus-visible,
.compact-date:focus-visible {
    outline: 2px solid #0079bf;
    outline-offset: 2px;
}

/* ===== MELHORIAS DE ACESSIBILIDADE ===== */
@media (prefers-reduced-motion: reduce) {
    .kanban-notification,
    .color-option,
    .card-title-input,
    .card-description-input,
    .compact-date {
        transition: none;
    }
    
    .kanban-loading {
        animation: none;
        border: 2px solid #0079bf;
        border-right-color: transparent;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .color-option {
        border: 2px solid #000;
    }
    
    .color-option.active {
        border-width: 4px;
    }
    
    .settings-card {
        border: 2px solid #000;
    }
}

/* ===== ESTILOS PARA KANBAN BOARD ===== */
.kanban-container {
    padding: 20px;
    background: #f8f9fa;
    min-height: 80vh;
}

.kanban-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.kanban-title {
    margin: 0;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 700;
}

.kanban-actions {
    display: flex;
    gap: 10px;
}

.kanban-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.kanban-btn-primary {
    background: #0079bf;
    color: white;
}

.kanban-btn-primary:hover {
    background: #026aa7;
    transform: translateY(-1px);
}

.kanban-btn-secondary {
    background: #6c757d;
    color: white;
}

.kanban-btn-secondary:hover {
    background: #5a6268;
}

.kanban-btn-success {
    background: #28a745;
    color: white;
}

.kanban-btn-success:hover {
    background: #218838;
}

.kanban-btn-danger {
    background: #dc3545;
    color: white;
}

.kanban-btn-danger:hover {
    background: #c82333;
}

.kanban-lists {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
    min-height: 400px;
}

.kanban-list {
    background: #ebecf0;
    border-radius: 8px;
    padding: 15px;
    min-width: 280px;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kanban-list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.list-actions {
    display: flex;
    gap: 5px;
}

.add-card-btn, .delete-list-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    font-size: 16px;
    transition: background 0.2s ease;
}

.add-card-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.delete-list-btn:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.kanban-cards {
    flex: 1;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kanban-card {
    background: white;
    border-radius: 6px;
    padding: 12px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    position: relative;
}

.kanban-card:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.card-color-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 6px 6px 0 0;
}

.card-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
}

.card-description {
    font-size: 13px;
    color: #5e6c84;
    margin-bottom: 8px;
    line-height: 1.4;
}

.card-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.card-badge {
    font-size: 11px;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    color: #5e6c84;
}

.date-indicator {
    font-size: 11px;
    color: #5e6c84;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.date-overdue {
    color: #dc3545;
    font-weight: 600;
}

.date-today {
    color: #ffc107;
    font-weight: 600;
}

.empty-list-message {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}

.kanban-add-card {
    background: none;
    border: none;
    padding: 10px;
    color: #6c757d;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s ease;
    text-align: left;
}

.kanban-add-card:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #2c3e50;
}

.kanban-add-list {
    background: rgba(0, 0, 0, 0.1);
    border: none;
    padding: 20px;
    color: #6c757d;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    width: 100%;
    font-size: 14px;
}

.kanban-add-list:hover {
    background: rgba(0, 0, 0, 0.15);
    color: #2c3e50;
}

/* Modal Styles */
.kanban-modal {
    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: 9999;
    padding: 20px;
}

.kanban-modal-content {
    background: white;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.large-modal {
    width: 800px;
    max-width: 90%;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    padding: 5px;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.modal-tabs {
    display: flex;
    border-bottom: 1px solid #ebecf0;
    background: #fafbfc;
}

.tab-button {
    background: none;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    font-weight: 600;
    color: #5e6c84;
}

.tab-button.active {
    color: #0079bf;
    border-bottom-color: #0079bf;
    background: white;
}

.tab-button:hover:not(.active) {
    background: rgba(0, 0, 0, 0.05);
}

.tab-content {
    display: none;
    padding: 25px;
}

.tab-content.active {
    display: block;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-size: 16px;
}

.kanban-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 8px;
}

/* Sortable Placeholder */
.kanban-placeholder {
    background: rgba(0, 121, 191, 0.1);
    border: 2px dashed #0079bf;
    border-radius: 6px;
    margin: 5px 0;
}

.moving {
    transform: rotate(5deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive improvements for mobile */
@media (max-width: 768px) {
    .kanban-container {
        padding: 10px;
    }
    
    .kanban-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .kanban-lists {
        flex-direction: column;
        overflow-x: visible;
    }
    
    .kanban-list {
        min-width: 100%;
        max-width: 100%;
    }
    
    .modal-tabs {
        flex-wrap: wrap;
    }
    
    .tab-button {
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
}

/* Print styles */
@media print {
    .kanban-actions,
    .kanban-add-card,
    .kanban-add-list,
    .list-actions {
        display: none !important;
    }
    
    .kanban-list {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .kanban-card {
        box-shadow: none;
        border: 1px solid #eee;
    }
}