
/* ========================================
   Kanban Container & Layout
   ======================================== */
.kanban-container {
    display: flex;
    gap: 20px;
    padding: 20px;
    overflow-x: auto;
    min-height: 70vh;
    background-color: #f5f5f5;
}

/* ========================================
   Kanban Columns
   ======================================== */
.kanban-column {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    background-color: #e8e8e8;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.kanban-column-header {
    padding: 15px;
    color: white;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.kanban-column-header h3 {
    margin: 0;
    font-size: 16px;
    color: white;
}

.kanban-count {
    background-color: rgba(255, 255, 255, 0.3);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: bold;
}

.kanban-column-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    min-height: 200px;
    transition: background-color 0.3s ease;
}

.kanban-column-body.drag-over {
    background-color: #d0d0d0;
    border: 2px dashed #666;
}

/* ========================================
   Kanban Cards
   ======================================== */
.kanban-card {
    background-color: white;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    cursor: move;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    border-left: 4px solid #3498db;
}

.kanban-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

.kanban-card.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
}

.kanban-card-header {
    margin-bottom: 8px;
    font-size: 14px;
}

.kanban-card-header a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: bold;
}

.kanban-card-header a:hover {
    color: #3498db;
    text-decoration: underline;
}

.kanban-card-body {
    font-size: 13px;
    color: #555;
}

.kanban-card-company {
    margin-bottom: 6px;
    color: #7f8c8d;
}

.kanban-card-company a {
    color: #7f8c8d;
    text-decoration: none;
}

.kanban-card-company a:hover {
    color: #2c3e50;
    text-decoration: underline;
}

.kanban-card-amount {
    font-size: 15px;
    font-weight: bold;
    color: #27ae60;
    margin-bottom: 6px;
}

.kanban-card-date {
    font-size: 12px;
    color: #95a5a6;
}

/* ========================================
   Empty State
   ======================================== */
.kanban-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-style: italic;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1200px) {
    .kanban-container {
        flex-wrap: wrap;
    }
    
    .kanban-column {
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .kanban-container {
        flex-direction: column;
        padding: 10px;
    }
    
    .kanban-column {
        max-width: 100%;
        min-width: 100%;
        margin-bottom: 20px;
    }
}

/* ========================================
   Animations
   ======================================== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

.kanban-card {
    animation: slideIn 0.3s ease;
}

/* ========================================
   Loading Spinner (si besoin)
   ======================================== */
.kanban-loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

.kanban-loading::after {
    content: "⏳";
    font-size: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}