/* Kanban Board Styles */
.kanban-board {
    padding: 0;
}

.kanban-column {
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

.kanban-header {
    padding: 12px 16px;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.kanban-body {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.kanban-items {
    flex: 1;
    min-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
}

.kanban-items::-webkit-scrollbar {
    width: 6px;
}

.kanban-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.kanban-items::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.kanban-items::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.kanban-card {
    background: white;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 4px solid #e9ecef;
}

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

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

.kanban-card-header .order-id {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

.client-info {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.client-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    margin-right: 8px;
    font-size: 1.1rem;
}

.client-details {
    flex: 1;
}

.client-name {
    font-weight: 600;
    color: #343a40;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.company-name {
    color: #6c757d;
    font-size: 0.8rem;
}

.order-value {
    text-align: right;
    color: #28a745;
    font-size: 1.1rem;
    font-weight: 600;
}

.kanban-card-footer {
    border-top: 1px solid #e9ecef;
    padding-top: 8px;
}

.card-actions {
    display: flex;
    gap: 2px;
}

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

.kanban-actions {
    margin-top: auto;
    padding-top: 16px;
}

/* Drag and Drop Styles */
.sortable-ghost {
    opacity: 0.5;
    transform: rotate(3deg);
}

.sortable-chosen {
    transform: scale(1.02);
}

.sortable-drag {
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .kanban-board .row {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 20px;
    }
    
    .kanban-board .col-md-3 {
        min-width: 300px;
        flex: 0 0 300px;
    }
}

@media (max-width: 768px) {
    .kanban-board .row {
        flex-direction: column;
        overflow-x: visible;
    }
    
    .kanban-board .col-md-3 {
        min-width: 100%;
        flex: 1;
        margin-bottom: 20px;
    }
    
    .kanban-column {
        margin-bottom: 20px;
        min-height: 300px;
    }
    
    .kanban-card {
        padding: 12px;
    }
    
    .client-avatar {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .client-name {
        font-size: 0.85rem;
    }
    
    .company-name {
        font-size: 0.75rem;
    }
    
    .order-value {
        font-size: 1rem;
    }
    
    .kanban-header {
        padding: 10px 12px;
    }
    
    .kanban-body {
        padding: 12px;
    }
}

/* Source badge specific colors */
.badge.bg-primary {
    background-color: #0d6efd !important;
}

.badge.bg-info {
    background-color: #0dcaf0 !important;
}

/* Status specific card border colors */
.kanban-card[data-status="ordem_de_servico"] {
    border-left-color: #ffc107;
}

.kanban-card[data-status="em_execucao"] {
    border-left-color: #0dcaf0;
}

.kanban-card[data-status="executada"] {
    border-left-color: #198754;
}

.kanban-card[data-status="faturar"] {
    border-left-color: #0d6efd;
}

.kanban-card[data-status="faturado"] {
    border-left-color: #6c757d;
}

.kanban-card[data-status="cancelada"] {
    border-left-color: #dc3545;
}

/* Filter card animation */
.collapse {
    transition: all 0.3s ease;
}

/* Statistics cards */
.card.text-white h3 {
    font-size: 2rem;
    font-weight: 700;
}

.card.text-white .fs-2 {
    opacity: 0.8;
}

/* Buttons styling */
.btn-outline-primary:hover,
.btn-outline-danger:hover {
    transform: scale(1.05);
}

/* Animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Order Edit Page Styles */
.client-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.list-group-item-action {
    transition: all 0.3s ease;
    border: none;
    background: none;
    text-align: left;
    width: 100%;
}

.list-group-item-action:hover {
    background-color: rgba(0, 123, 255, 0.1);
    transform: translateX(5px);
}

.nav-pills .nav-link {
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-pills .nav-link:hover {
    transform: translateY(-2px);
}

.nav-pills .nav-link.active {
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.card {
    transition: all 0.3s ease;
}

/* .card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
} */

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* .modal-header.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
} */

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    color: #6c757d;
    font-size: 0.75rem;
}

.badge {
    font-size: 0.75rem;
    padding: 0.5em 0.75em;
}

.alert {
    border-radius: 10px;
}

.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.spinner-border {
    animation: spin 1s linear infinite;
}

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

/* Responsive improvements */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .card-header h6 {
        font-size: 0.9rem;
    }
    
    .nav-pills .nav-link {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
    
    .table-responsive {
        font-size: 0.85rem;
    }
}

/* Status specific colors */
.bg-warning {
    background-color: #ffc107 !important;
}

.bg-success {
    background-color: #198754 !important;
}

.bg-info {
    background-color: #0dcaf0 !important;
}

.bg-danger {
    background-color: #dc3545 !important;
}

.bg-secondary {
    background-color: #6c757d !important;
}

/* Form improvements */
.form-floating > .form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-floating > .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Loading states */
.loading-blur {
    opacity: 0.6;
    pointer-events: none;
}

/* Custom scrollbar */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
