/* Kanban Board Styles - Budget Module */
.kanban-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kanban-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.kanban-header h1 {
    margin: 0 0 1rem 0;
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.kanban-controls {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,0.8);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filter-group label {
    margin: 0;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.875rem;
}

.filter-group .form-select {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    font-weight: 500;
    color: #2d3748;
    background-color: white;
    transition: all 0.2s ease;
    min-width: 150px;
}

.filter-group .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

/* Kanban Board Layout */
.kanban-board {
    flex: 1;
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    overflow-x: auto;
    overflow-y: hidden;
    min-height: 0;
}

.kanban-column {
    flex: 1;
    min-width: 320px;
    max-width: 380px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
}

.kanban-column-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-bottom: 3px solid;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.kanban-column-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: inherit;
}

.kanban-column-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #2d3748;
    letter-spacing: -0.025em;
}

.item-count {
    background: rgba(45, 55, 72, 0.1);
    color: #2d3748;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    min-width: 2rem;
    text-align: center;
}

/* Status-spezifische Farben */
.status-not-started .kanban-column-header {
    border-bottom-color: #a0aec0;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.status-not-started .item-count {
    background: rgba(160, 174, 192, 0.2);
    color: #4a5568;
}

.status-completed .kanban-column-header {
    border-bottom-color: #48bb78;
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
}

.status-completed .item-count {
    background: rgba(72, 187, 120, 0.2);
    color: #2f855a;
}

.status-partial .kanban-column-header {
    border-bottom-color: #ed8936;
    background: linear-gradient(135deg, #fffaf0 0%, #feebc8 100%);
}

.status-partial .item-count {
    background: rgba(237, 137, 54, 0.2);
    color: #c05621;
}

.status-in-progress .kanban-column-header {
    border-bottom-color: #4299e1;
    background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
}

.status-in-progress .item-count {
    background: rgba(66, 153, 225, 0.2);
    color: #2b6cb0;
}

.status-attention .kanban-column-header {
    border-bottom-color: #f56565;
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
}

.status-attention .item-count {
    background: rgba(245, 101, 101, 0.2);
    color: #c53030;
}

.status-stopped .kanban-column-header {
    border-bottom-color: #718096;
    background: linear-gradient(135deg, #f7fafc 0%, #e2e8f0 100%);
}

.status-stopped .item-count {
    background: rgba(113, 128, 150, 0.2);
    color: #4a5568;
}

/* Kanban Column Content */
.kanban-column-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    min-height: 200px;
    background: rgba(255,255,255,0.5);
}

/* Kanban Cards */
.kanban-card {
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    cursor: move;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

.kanban-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kanban-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.kanban-card:hover::before {
    opacity: 1;
}

.kanban-card.dragging {
    opacity: 0.6;
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.card-title {
    font-weight: 700;
    color: #2d3748;
    font-size: 1rem;
    line-height: 1.4;
    flex: 1;
    margin: 0;
}

.card-amount {
    font-weight: 800;
    color: #667eea;
    font-size: 1.125rem;
    white-space: nowrap;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
}

.card-body {
    margin-bottom: 1rem;
}

.department-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.price-info, .schedule-info {
    font-size: 0.875rem;
    color: #4a5568;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(113, 128, 150, 0.05);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

.price-info i, .schedule-info i {
    font-size: 1rem;
    color: #667eea;
}

.card-footer {
    display: flex;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.kanban-container .btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.kanban-container .btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.kanban-container .btn-link {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.kanban-container .btn-link:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #5a67d8;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

/* Summary Section */
.kanban-summary {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.summary-card {
    text-align: center;
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.summary-card:hover {
    transform: translateY(-2px);
}

.summary-card h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.875rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.summary-amount {
    font-size: 1.875rem;
    font-weight: 800;
    color: #2d3748;
    margin: 0;
}

.summary-amount.success {
    color: #48bb78;
}

.summary-amount.warning {
    color: #ed8936;
}

.summary-amount.info {
    color: #4299e1;
}

/* Drag and Drop Visual Feedback */
.kanban-column-content.drag-over {
    background: rgba(102, 126, 234, 0.1);
    border: 2px dashed #667eea;
    border-radius: 12px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .kanban-board {
        padding: 1.5rem;
    }
    
    .kanban-column {
        min-width: 300px;
    }
    
    .kanban-header {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .kanban-header {
        padding: 1rem;
    }
    
    .kanban-header h1 {
        font-size: 1.5rem;
    }
    
    .kanban-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .filter-group {
        justify-content: space-between;
    }
    
    .kanban-board {
        padding: 1rem;
        gap: 1rem;
    }
    
    .kanban-column {
        min-width: 280px;
    }
    
    .kanban-summary {
        padding: 1.5rem;
        gap: 1rem;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .summary-card {
        padding: 1rem;
    }
    
    .summary-amount {
        font-size: 1.5rem;
    }
    
    .card-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .card-amount {
        align-self: flex-end;
    }
}

/* Scrollbar Styling */
.kanban-board::-webkit-scrollbar,
.kanban-column-content::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.kanban-board::-webkit-scrollbar-track,
.kanban-column-content::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.kanban-board::-webkit-scrollbar-thumb,
.kanban-column-content::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 4px;
}

.kanban-board::-webkit-scrollbar-thumb:hover,
.kanban-column-content::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

/* Animation für neue Karten */
@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.kanban-card {
    animation: cardAppear 0.3s ease-out;
}

/* Spezielle Hover-Effekte nur für Buttons im Kanban-Container */
.kanban-container .btn.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.kanban-container .btn.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.kanban-container .btn.btn-outline-primary {
    border: 2px solid #667eea;
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.kanban-container .btn.btn-outline-primary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.kanban-container .btn.btn-outline-info {
    border: 2px solid #4299e1;
    color: #4299e1;
    background: rgba(66, 153, 225, 0.05);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.kanban-container .btn.btn-outline-info:hover {
    background: #4299e1;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.3);
}