/* ===== ATENDIMENTOS VIEW ===== */
.atendimentos-container-atendimento {
    padding: 20px;
    background-color: #f8f9fa;
    min-height: 100vh;
}

.atendimentos-header-atendimento {
    background-color: #ffffff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.atendimentos-title-atendimento {
    font-size: 24px;
    font-weight: bold;
    color: #1a1a1a;
    margin: 0 0 20px 0;
}

.filters-section-atendimento {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.filter-button-atendimento {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    color: #374151;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-button-atendimento:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.filter-button-atendimento.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.search-and-button-section-atendimento {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
}

.search-container-atendimento {
    position: relative;
    flex: 1;
}

.search-icon-atendimento {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 16px;
    z-index: 1;
    padding-left: 10px !important;
}

.search-input-atendimento {
    width: 100%;
    border: 1px solid #d1d5db !important;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
    transition: border-color 0.2s ease;
    max-width: 300px;
    padding-left: 30px !important;
}

.search-input-atendimento:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    max-width: 300px;
}

.btn-novo-chat-atendimento {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-novo-chat-atendimento:hover {
    background: #2563eb;
}

.btn-novo-chat-atendimento i {
    font-size: 14px;
}

.atendimento-card-atendimento {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.atendimento-card-atendimento:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.atendimento-card-atendimento.closed {
    background: #f8f9fa;
    opacity: 0.8;
}

.atendimento-content-atendimento {
    padding: 20px;
}

.atendimento-header-atendimento {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.atendimento-icon-atendimento {
    position: relative;
    margin-right: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.atendimento-numero {
  font-weight: bold;
  font-size: 12px;
}

.atendimento-icon-atendimento i {
    font-size: 32px;
    color: #6b7280;
}

.unread-badge-atendimento {
    position: absolute;
    top: 8px;
    right: -15px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid white;
}

.atendimento-info-atendimento {
    flex: 1;
}

.atendimento-tags-atendimento {
    margin-bottom: 8px;
}

.tag-atendimento {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 6px;
}

.tag-channel-atendimento {
    background-color: #cce4ff;
    color: #1e40af;
}

.tag-status-atendimento {
    background-color: #f3f4f6;
    color: #374151;
}

.atendimento-subject-atendimento {
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.4;
}

.atendimento-meta-atendimento {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #195588;
    font-size: 12px;
}

.atendimento-meta-atendimento i {
    background-color: #f4f4f4;
    padding: 4px;
    border-radius: 50%;
}

.atendimento-actions-atendimento {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.atendimento-date-atendimento {
    font-size: 12px;
    color: #6b7280;
    text-align: right;
}

.action-buttons-atendimento {
    display: flex;
    gap: 8px;
}

.action-button-atendimento {
    padding: 6px 12px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #195588;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-button-atendimento:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.atendimento-date-side-atendimento {
    font-size: 12px;
    color: #6b7280;
    margin-right: 12px;
    font-weight: 500;
    align-self: center;
}

.rating-stars-atendimento {
    display: flex;
    gap: 2px;
}

.star-atendimento {
    color: #ffd700;
    font-size: 14px;
}

.empty-state-atendimento {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.empty-state-atendimento i {
    font-size: 48px;
    color: #9ca3af;
    margin-bottom: 16px;
}

.empty-state-atendimento h4 {
    color: #374151;
    margin-bottom: 8px;
}

.empty-state-atendimento p {
    color: #6b7280;
    margin-bottom: 20px;
}

.empty-state-atendimento .btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.empty-state-atendimento .btn:hover {
    background: #2563eb;
}

/* Responsivo */
@media (max-width: 768px) {
    .atendimentos-container-atendimento {
        padding: 15px;
    }

    .atendimentos-header-atendimento {
        padding: 15px;
        margin-bottom: 15px;
    }

    .atendimentos-title-atendimento {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .filters-section-atendimento {
        gap: 6px;
        margin-bottom: 15px;
    }

    .filter-button-atendimento {
        padding: 6px 12px;
        font-size: 12px;
    }

    .search-and-button-section-atendimento {
        flex-direction: column;
        gap: 10px;
    }

    .search-container-atendimento {
        width: 100%;
    }

    .btn-novo-chat-atendimento {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    .atendimento-content-atendimento {
        padding: 15px;
    }

    .atendimento-header-atendimento {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .atendimento-actions-atendimento {
        align-items: flex-start;
        width: 100%;
    }

    .action-buttons-atendimento {
        width: 100%;
        justify-content: center;
    }

    .action-button-atendimento {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .atendimentos-container-atendimento {
        padding: 10px;
    }

    .atendimentos-header-atendimento {
        padding: 12px;
    }

    .atendimentos-title-atendimento {
        font-size: 18px;
    }

    .atendimento-content-atendimento {
        padding: 12px;
    }

    .atendimento-icon-atendimento i {
        font-size: 28px;
    }

    .unread-badge-atendimento {
        width: 16px;
        height: 16px;
        font-size: 9px;
    }
}

.form-section {
        display: flex;
        padding-left: 15px;
      }

      .form-label {
        display: block;
        font-size: 14px;
        font-weight: 600;
        color: #374151;
        margin-top: 20px;
      }

       .form-input {
        width: 100%;
        padding: 12px 16px;
        border: 1px solid #d1d5db;
        border-radius: 8px;
        font-size: 14px;
        background: #ffffff;
        transition: border-color 0.2s ease;
        margin-left: 10px;
      }

      .form-input:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
      }

      @media (max-width: 768px) {
         .form-section {
            display: flex;
            padding-left: 0;
         }

         .form-label {
            display: block;
            font-size: 14px;
            font-weight: 600;
            color: #374151;
            margin-top: 20px;
         }

         .form-input {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid #d1d5db;
            border-radius: 8px;
            font-size: 14px;
            background: #ffffff;
            transition: border-color 0.2s ease;
         }

         .form-input:focus {
            outline: none;
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
         }
      }

        /* ===== MODAL PARTICIPANTES ===== */
      .modal-adicionar-participantes {
        max-width: 90%;
        max-height: 85%;
      }

      .participantes-header {
        background-color: #ffffff !important;
        padding: 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid #e0e0e0;
      }

      .participantes-title {
        font-size: 18px;
        font-weight: bold;
        color: #333;
        margin: 0;
      }

      .participantes-close-modal {
        background: transparent;
        border: none;
        font-size: 24px;
        color: #333 !important;
        cursor: pointer;
        padding: 5px;
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 1 !important;
        visibility: visible !important;
      }

      .participantes-close-modal:hover {
        color: #000 !important;
        background-color: rgba(0, 0, 0, 0.1);
        border-radius: 50%;
      }

      .participantes-content {
        padding: 30px 20px;
        background-color: #f8f9fa;
      }

      .info-section {
        margin-bottom: 20px;
      }

      .info-item {
        margin-bottom: 16px;
      }

      .info-label {
        font-size: 14px;
        font-weight: 600;
        color: #374151;
        margin: 0 0 4px 0;
        display: block;
      }

      .info-value {
        font-size: 14px;
        color: #1f2937;
        margin: 0;
        line-height: 1.4;
      }

      .participants-section {
        border: 1px solid #e5e7eb;
        padding: 0px 5px 0px 5px;
      }

      .participants-title {
        font-size: 16px;
        font-weight: 600;
        color: #374151;
        margin: 0 0 16px 0;
        padding: 10px 5px 0px 5px;
      }

      .participant-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 0;
        border-bottom: 1px solid #f3f4f6;
      }

      .participant-item:last-child {
        border-bottom: none;
      }

      .participant-info {
        display: flex;
        align-items: center;
        gap: 12px;
        flex: 1;
      }

      .participant-avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: #e5e7eb;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        font-weight: 500;
        color: #6b7280;
      }

      .participant-name {
        font-size: 14px;
        color: #374151;
        font-weight: 500;
      }

      .participant-role {
        font-size: 12px;
        color: #6b7280;
        margin-top: 2px;
      }

      .participant-actions {
        display: flex;
        gap: 8px;
      }

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

      .action-btn.add {
        background: #dbeafe;
        color: #1d4ed8;
      }

      .action-btn.add:hover {
        background: #bfdbfe;
      }

      .action-btn.remove {
        background: #fee2e2;
        color: #dc2626;
      }

      .action-btn.remove:hover {
        background: #fecaca;
      }

      /* Responsivo */
      @media (max-width: 768px) {
        .participantes-content {
          padding: 20px 15px;
        }

        .participantes-title {
          font-size: 16px;
        }
      }

       .modal-detalhes-atendimento {
        max-width: 90%;
        max-height: 85%;
      }

      .detalhes-header {
        background-color: #ffffff !important;
        padding: 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid #e0e0e0;
      }

      .detalhes-title {
        font-size: 18px;
        font-weight: bold;
        color: #333;
        margin: 0;
      }

      .detalhes-close-modal {
        background: transparent;
        border: none;
        font-size: 24px;
        color: #333 !important;
        cursor: pointer;
        padding: 5px;
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 1 !important;
        visibility: visible !important;
      }

      .detalhes-close-modal:hover {
        color: #000 !important;
        background-color: rgba(0, 0, 0, 0.1);
        border-radius: 50%;
      }

      .detalhes-content {
        padding: 30px 20px;
        background-color: #f8f9fa;
      }

      .info-section {
        margin-bottom: 20px;
      }

      .info-item {
        margin-bottom: 16px;
      }

      .info-label {
        font-size: 14px;
        font-weight: 600;
        color: #374151;
        margin: 0 0 4px 0;
        display: block;
      }

      .info-value {
        font-size: 14px;
        color: #1f2937;
        margin: 0;
        line-height: 1.4;
      }

      .participants-section {
        border: 1px solid #e5e7eb;
        padding: 0px 5px 0px 5px;
      }

      .participants-title {
        font-size: 16px;
        font-weight: 600;
        color: #374151;
        margin: 0 0 16px 0;
        padding: 10px 5px 0px 5px;
      }

      .participant-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 0;
        border-bottom: 1px solid #f3f4f6;
      }

      .participant-item:last-child {
        border-bottom: none;
      }

      .participant-info {
        display: flex;
        align-items: center;
        gap: 12px;
        flex: 1;
      }

      .participant-avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: #e5e7eb;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        font-weight: 500;
        color: #6b7280;
      }

      .participant-name {
        font-size: 14px;
        color: #374151;
        font-weight: 500;
      }

      .participant-role {
        font-size: 12px;
        color: #6b7280;
        margin-top: 2px;
      }

      .participant-actions {
        display: flex;
        gap: 8px;
      }

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

      .action-btn.add {
        background: #dbeafe;
        color: #1d4ed8;
      }

      .action-btn.add:hover {
        background: #bfdbfe;
      }

      .action-btn.remove {
        background: #fee2e2;
        color: #dc2626;
      }

      .action-btn.remove:hover {
        background: #fecaca;
      }

      /* Responsivo */
      @media (max-width: 768px) {
        .detalhes-content {
          padding: 20px 15px;
        }

        .detalhes-title {
          font-size: 16px;
        }
      }