/**
 * View Toggle Styles with Enhanced Animations
 */

.view-toggle-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-weight: 500;
}

.view-toggle-btn.active {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
    box-shadow: 0 0.25rem 0.5rem rgba(13, 110, 253, 0.25);
}

.view-toggle-btn:hover:not(.active) {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    transform: translateY(-1px);
}

.view-toggle-btn.active:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Transição entre views */
#tableView,
#cardView {
    opacity: 1;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#tableView {
    animation: fadeInDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#cardView {
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card View Styles */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.card-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-item .card {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-item .card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
    border-color: #0d6efd;
}

.card-item .card-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.card-item .card-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.card-item .card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    flex-shrink: 0;
}

.card-item .card-footer .card-actions {
    display: flex;
    width: 100%;
    gap: 0.75rem;
    flex-direction: row;
}

.card-item .card-actions .btn-action {
    flex: 1;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    padding: 0.5rem 0.75rem !important;
}

.card-item .card-actions .btn-action:hover {
    transform: translateY(-2px);
}
.badge-status-ativo {
    background-color: #28a745;
}

.badge-status-inativo {
    background-color: #6c757d;
}

.badge-status-pendente {
    background-color: #ffc107;
    color: #333;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Fade in initial state to prevent flashing */
@keyframes initialFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#tableView {
    animation: initialFadeIn 0.3s ease-in-out;
}

