/* Estilos melhorados para cards de solicitações */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.team-panel {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.team-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.team-header {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.team-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--team-color-primary) 0%, var(--team-color-secondary) 100%);
    z-index: 1;
}

.team-header > * {
    position: relative;
    z-index: 2;
}

.team-header.manutencao {
    --team-color-primary: #f59e0b;
    --team-color-secondary: #d97706;
}

.team-header.nutricao {
    --team-color-primary: #10b981;
    --team-color-secondary: #059669;
}

.team-header.higienizacao {
    --team-color-primary: #3b82f6;
    --team-color-secondary: #2563eb;
}

.team-header.hotelaria {
    --team-color-primary: #8b5cf6;
    --team-color-secondary: #7c3aed;
}

.team-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.team-header i {
    font-size: 1.25rem;
    opacity: 0.9;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.team-content {
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.team-content::-webkit-scrollbar {
    width: 6px;
}

.team-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.team-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.team-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: #64748b;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
}

.empty-state i {
    font-size: 2.5rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
    display: block;
}

.empty-state p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
}

.solicitacao-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.solicitacao-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

.solicitacao-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--status-color);
    transition: width 0.2s ease;
}

.solicitacao-card:hover::before {
    width: 6px;
}

.solicitacao-card[data-status="pendente"] {
    --status-color: #ef4444;
}

.solicitacao-card[data-status="em-andamento"] {
    --status-color: #f59e0b;
}

.solicitacao-card[data-status="finalizada"] {
    --status-color: #10b981;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.card-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.status-pendente {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.status-em-andamento {
    background: #fefbf2;
    color: #d97706;
    border: 1px solid #fed7aa;
}

.status-finalizada {
    background: #f0fdf4;
    color: #059669;
    border: 1px solid #bbf7d0;
}

.card-priority {
    color: #6b7280;
    font-size: 0.875rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.solicitacao-card:hover .card-priority {
    opacity: 1;
}

.card-title {
    font-weight: 600;
    color: #111827;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.card-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.card-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.825rem;
    color: #6b7280;
}

.card-detail i {
    width: 14px;
    text-align: center;
    opacity: 0.7;
}

.card-detail.highlight {
    color: #059669;
    font-weight: 500;
}

.card-meta {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #9ca3af;
}

.card-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.solicitacao-card:hover .card-actions {
    opacity: 1;
}

.action-btn {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.action-btn.view {
    background: #eff6ff;
    color: #2563eb;
}

.action-btn.view:hover {
    background: #dbeafe;
    transform: scale(1.1);
}

.action-btn.edit {
    background: #fef3c7;
    color: #d97706;
}

.action-btn.edit:hover {
    background: #fde68a;
    transform: scale(1.1);
}

/* Estilos para prioridades */
.priority-alta {
    color: #dc2626 !important;
    font-weight: 600;
}

.priority-media {
    color: #d97706 !important;
    font-weight: 500;
}

.priority-normal {
    color: #059669 !important;
}

.priority-baixa {
    color: #6b7280 !important;
}

/* Animações e transições */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-panel {
    animation: slideIn 0.3s ease-out;
}

.solicitacao-card {
    animation: slideIn 0.2s ease-out;
}

/* Loading states */
.loading-card {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Estados de hover melhorados */
.solicitacao-card:hover {
    border-color: var(--status-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.team-panel:hover .badge {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Melhorias para dispositivos móveis */
@media (max-width: 480px) {
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .card-details {
        font-size: 0.775rem;
    }
    
    .team-header h3 {
        font-size: 1rem;
    }
    
    .badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
}